Feel free to run via...
npx https://gist.github.com/elijahmanor/4cc8e3eac9fb5999c5d759388ff27c64
Feel free to run via...
npx https://gist.github.com/elijahmanor/4cc8e3eac9fb5999c5d759388ff27c64
| const list = [ | |
| "this", | |
| "is", | |
| "a", | |
| "test", | |
| "which", | |
| "word", | |
| "wins", | |
| "top", | |
| "i", |
| SPACESHIP_PACKAGE_SHOW=false | |
| SPACESHIP_NODE_SHOW=true | |
| SPACESHIP_DOCKER_SHOW=false | |
| # NPM VERSION | |
| SPACESHIP_NPM_SHOW="${SPACESHIP_NPM_SHOW=true}" | |
| SPACESHIP_NPM_PREFIX="" | |
| SPACESHIP_NPM_SUFFIX=" " | |
| SPACESHIP_NPM_SYMBOL="${SPACESHIP_NPM_SYMBOL="📦 "}" | |
| SPACESHIP_NPM_COLOR="${SPACESHIP_NPM_COLOR="yellow"}" |
| #!/usr/bin/env node | |
| console.log( "Look Ma, I'm executing JavaScript from a gist inside the terminal with npx!" ); |
| alias twitter="open -na 'Google Chrome' --args '--app=https://mobile.twitter.com'" |
| alias alert='say -v "$([ $? = 0 ] && echo Good News || echo Bad News)"' | |
| function npm-reset() { | |
| local folder="$(pwd | rev | cut -d '/' -f1 | rev)" | |
| cowsay -f vader "Starting to reinstall node_modules for $folder" | |
| rm -rf node_modules | |
| npm install -s | |
| echo "♫ Finished reinstalling node_modules for $folder ♫" | |
| alert "Finished reinstalling node_modules for $folder" | |
| } |
| [alias] | |
| recent = !git for-each-ref --count=10 --sort=-committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(contents:subject) (%(color:green)%(committerdate:relative)%(color:reset))' |
You can do a bunch of really cool stuff with npx!
Try this from the terminal... (as long as you have npm version 5.2+)
npx https://gist.github.com/elijahmanor/6856d25510bca930c7c6cc76612ec67d
| # replace default config | |
| # multipass: true | |
| # full: true | |
| plugins: | |
| # - name | |
| # | |
| # or: |
You can run either of the following snippets in your terminal to generate a markdown list of your VS Code extensions.
code --list-extensions | awk '{ print "* [" $1 "](https://marketplace.visualstudio.com/items\?itemName\=" $1 ")" }'
npx https://gist.github.com/elijahmanor/7f9762a4c2296839ad33e33513e88043
NOTE: You can append | pbcopy to either of the above commands to pipe the output to your Mac's copy/paste buffer.