Add in regedit Computer\HKEY_CURRENT_USER\Software\Microsoft\Command Processor new key :
Autorun=doskey /macrofile="path/to/file/macro.txt" /f
Create file path/to/file/macro.txt
nr=npm run $*
ls=dir /OG /B $*
Add in regedit Computer\HKEY_CURRENT_USER\Software\Microsoft\Command Processor new key :
Autorun = doskey /macrofile="path/to/file/macro.txt" /fCreate file path/to/file/macro.txt
nr=npm run $*
ls=dir /OG /B $*
| const a = new AudioContext() | |
| const getRandInt = () => Math.round(Math.random()*255) | |
| k = (w,x,y) => { | |
| console.log("Gain:"+w, "Hz:"+x, "ms:"+y) | |
| v = a.createOscillator() | |
| u = a.createGain() | |
| v.connect(u) | |
| v.frequency.value = x | |
| v.type = "square" |
| { | |
| // Place your snippets for javascript here. Each snippet is defined under a snippet name and has a prefix, body and | |
| // description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
| // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
| // same ids are connected. | |
| // Example: | |
| "console.log()": { | |
| "prefix": "cl", | |
| "body": [ | |
| "console.log($1)" |
| "actions": | |
| [ | |
| { | |
| "command": | |
| { | |
| "action": "copy", | |
| "singleLine": false | |
| }, | |
| "keys": "ctrl+c" | |
| }, |
| @echo off | |
| docker start mysql>NUL | |
| docker start naughty_faraday>NUL | |
| docker start redis>NUL | |
| GOTO:DEFAULTS | |
| rem == DEFAULTS============ | |
| call :run chrome, "C:\Program Files\Google\Chrome\Application\" | |
| call :run sublime_text, "D:\Programs\Sublime Text 3\" | |
| call :run code, "D:\Programs\Microsoft VS Code" |
| { | |
| "parserOptions":{ | |
| "ecmaVersion":2018 | |
| }, | |
| "env":{ | |
| "es6":true, | |
| "node":true, | |
| "mocha":true | |
| }, | |
| "extends":"eslint:recommended", |
| [alias] | |
| b = branch | |
| c = commit -m | |
| s = switch | |
| sc = switch -c | |
| f = fetch --all | |
| la = log --graph --decorate --pretty=oneline --abbrev-commit --all | |
| l = log --pretty=format:'%Cred%h%Creset - %<|(60)%C(bold)%s%Creset %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
| p = push | |
| pf = push --force-with-lease |