- Install target mingw-w64:
brew install mingw-w64 - Add target to rustup:
rustup target add x86_64-pc-windows-gnu - Create
.cargo/config - Add the instructions below to
.cargo/config
[target.x86_64-pc-windows-gnu]
| /** | |
| * @author [email protected] | |
| * @date 29/08/2024 | |
| * @description A map where the items are lists of items and you can provide a function for how values map to keys. | |
| * Oh, if we had generics.... | |
| */ | |
| public class MultiMap { | |
| private Map<Object, List<Object>> theMap; | |
| private Type listType; |
| # Place me in ~/.config/fish/functions | |
| # Then add me to `fish_vcs_prompt`: `funced fish_vcs_prompt` and save it to | |
| # your personal config: `funcsave fish_vcs_prompt;` | |
| function fish_jj_prompt --description 'Write out the jj prompt' | |
| # Is jj installed? | |
| if not command -sq jj | |
| return 1 | |
| end |
| name: Security audit | |
| on: | |
| schedule: | |
| - cron: '0 0 * * *' | |
| push: | |
| paths: | |
| - '**/Cargo.toml' | |
| - '**/Cargo.lock' | |
| jobs: | |
| security_audit: |
brew install mingw-w64rustup target add x86_64-pc-windows-gnu.cargo/config.cargo/config[target.x86_64-pc-windows-gnu]
| { | |
| "env": { | |
| "browser": true | |
| }, | |
| "parserOptions": { | |
| "ecmaVersion": 5 | |
| }, | |
| "globals": { | |
| "$A": true, | |
| "AuraContext": true, |
Some notes on how to setup various open-source XMR Miners on Ubuntu 16
| export ORG_ALIAS='DummyScratchOrg' | |
| export PROJECT_NAME='DummyProject' | |
| export PERMISSION_SET='DummyPermSet' | |
| export IMPORT_PLAN='Dummy-plan.json' | |
| # Create a Salesforce DX project | |
| sfdx force:project:create -n $PROJECT_NAME | |
| # Regist development/sandbox org | |
| sfdx force:auth:web:login [-d] -a $ORG_ALIAS |
| function setjdk | |
| if test -n "$JAVA_HOME" | |
| removeFromPath "$JAVA_HOME/bin" | |
| end | |
| set -gx JAVA_HOME (/usr/libexec/java_home -v $argv[1]) | |
| set -gx PATH $JAVA_HOME/bin $PATH | |
| end | |
| function removeFromPath | |
| set -l idx 0 |
Emacs packages, features, files, layers, extensions, auto-loading, require,
provide, use-package… All these terms getting you confused? Let’s clear up
a few things.
Emacs files contains code that can be evaluated. When evaluated, the functions, macros and modes defined in that file become available to the current Emacs session. Henceforth, this will be termed as loading a file.
One major problem is to ensure that all the correct files are loaded, and in the
| // Promise.all is good for executing many promises at once | |
| Promise.all([ | |
| promise1, | |
| promise2 | |
| ]); | |
| // Promise.resolve is good for wrapping synchronous code | |
| Promise.resolve().then(function () { | |
| if (somethingIsNotRight()) { | |
| throw new Error("I will be rejected asynchronously!"); |