Skip to content

Instantly share code, notes, and snippets.

View keegoid's full-sized avatar

Keegan Mullaney keegoid

View GitHub Profile
alias jdk='export JDK_HOME="$(brew --prefix openjdk)"; export JAVA_HOME="$JDK_HOME"; [[ ":$PATH:" =~ :$JAVA_HOME/bin: ]] || PATH="$JAVA_HOME/bin:$PATH"; brew unlink openjdk; brew link --overwrite openjdk'
alias jdk11='export JDK_HOME="$(brew --prefix openjdk@11)"; export JAVA_HOME="$JDK_HOME"; [[ ":$PATH:" =~ :$JAVA_HOME/bin: ]] || PATH="$JAVA_HOME/bin:$PATH"; brew unlink openjdk@11; brew link --overwrite openjdk@11'
alias cp="cp -i" # confirm operation
alias dc="docker-compose" # docker-compose is for starting an image, a DOCKERFILE is for creating an image
alias dcb="docker-compose run --rm --build" # build and run, remove when done
alias dcr="docker-compose run --rm" # run an image and remove when done
alias df="df -h" # list file system info in human readable format
alias dfsort=
@keegoid
keegoid / subl-dev-env.md
Last active December 24, 2019 06:57
Sublime Text 3 development setup
@keegoid
keegoid / trailing_spaces.sublime-settings
Created December 24, 2019 01:05
Trailing Spaces user settings for Sublime Text 3
{
"trailing_spaces_include_current_line": false,
"trailing_spaces_modified_lines_only": true,
"trailing_spaces_trim_on_save": false
}
@keegoid
keegoid / flake8
Created December 23, 2019 23:14
flake8 config for Sublime Text 3
[flake8]
exclude = .git
max-line-length = 119
@keegoid
keegoid / Mariana.sublime-color-scheme
Last active December 23, 2019 08:59
Mariana color scheme overrides for Sublime Text 3.
{
"globals": {
"background": "hsl(195, 13%, 6%)",
"line_highlight": "hsl(203, 16%, 10%)",
},
}
@keegoid
keegoid / Terminal (Linux).sublime-settings
Created December 22, 2019 08:44
Terminal user settings for Sublime Text 3 on Linux
{
"terminal": "/usr/bin/tilix"
}
@keegoid
keegoid / Babel.sublime-settings
Created December 22, 2019 02:14
Babel user settings for Sublime Text 3
{
"node_modules": {
"linux": "~/.nvm/versions/node/v13.5.0/lib/node_modules"
}
}
@keegoid
keegoid / HTMLPrettify.sublime-settings
Created December 22, 2019 00:54
HTMLPrettify user settings for Sublime Text 3
{
"node_path":
{
"windows": "C:/Program Files/nodejs/node.exe",
"linux": "~/.nvm/versions/node/v13.5.0/bin/node",
"osx": "/usr/local/bin/node"
}
}
@keegoid
keegoid / JsPrettier.sublime-settings
Created December 22, 2019 00:01
JsPrettier user settings for Sublime Text 3
{
"prettier_cli_path": "~/.nvm/versions/node/v13.5.0/bin/prettier",
"node_path": "~/.nvm/versions/node/v13.5.0/bin/node",
"prettier_options": {
"printWidth": 100,
"singleQuote": true,
"semi": false
}
}
@keegoid
keegoid / .jsbeautifyrc
Created December 21, 2019 20:53
User settings for .jsbeautifyrc in Sublime Text 3
{
"all": {
"end_with_newline": true,
"indent_size": 2
},
"custom": {
"*.sublime-@(settings|keymap|commands|menu)": {
"indent_size": 2,
"brace_style": "expand"
}