Skip to content

Instantly share code, notes, and snippets.

View elijahmanor's full-sized avatar
😀

Elijah Manor elijahmanor

😀
View GitHub Profile
@elijahmanor
elijahmanor / README.md
Last active November 8, 2018 19:34
Has Deprecated Packages

Feel free to run via...

npx https://gist.github.com/elijahmanor/4cc8e3eac9fb5999c5d759388ff27c64

@elijahmanor
elijahmanor / findTop10.js
Created August 31, 2018 22:18
findTop10.js
const list = [
"this",
"is",
"a",
"test",
"which",
"word",
"wins",
"top",
"i",
@elijahmanor
elijahmanor / .zshrc
Last active August 16, 2018 19:29
Custom Spaceship Section for npm Version
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"}"
@elijahmanor
elijahmanor / index.js
Created August 4, 2018 19:18
Run JavaScript in the terminal from a gist with npx
#!/usr/bin/env node
console.log( "Look Ma, I'm executing JavaScript from a gist inside the terminal with npx!" );
@elijahmanor
elijahmanor / .zshrc
Created August 1, 2018 20:45
Twitter Alias
alias twitter="open -na 'Google Chrome' --args '--app=https://mobile.twitter.com'"
@elijahmanor
elijahmanor / .zshrc
Created July 27, 2018 13:26
npm-reset alert
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"
}
@elijahmanor
elijahmanor / .gitconfig
Created July 18, 2018 16:06
git recent
[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))'
@elijahmanor
elijahmanor / README.md
Last active August 4, 2018 18:54
👀 Look Ma, I'm executing JavaScript from a gist inside the terminal with npx! 🤯
@elijahmanor
elijahmanor / .svgo.yml
Last active June 7, 2018 21:58
Options for SVGO
# replace default config
# multipass: true
# full: true
plugins:
# - name
#
# or:
@elijahmanor
elijahmanor / README.md
Last active May 11, 2022 09:52
Export @code Extensions to a Markdown List

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.