Skip to content

Instantly share code, notes, and snippets.

Nick F nickautomatic

Block or report user

Report or block nickautomatic

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View settings.json
"sublimeTextKeymap.promptV3Features": true,
"editor.multiCursorModifier": "ctrlCmd",
"editor.snippetSuggestions": "top",
"editor.formatOnPaste": true,
"git.path": "C:\\Program Files (portable)\\cmder\\vendor\\git-for-windows\\bin\\git.exe",
"": "C:\\WINDOWS\\System32\\bash.exe",
"terminal.external.windowsExec": "ubuntu",
"workbench.colorTheme": "Afterglow Remastered",
"files.insertFinalNewline": true,
nickautomatic /
Last active Jun 20, 2018
Command Line Bits & Pieces
nickautomatic / .aliases
Last active Jun 19, 2018
.aliases (for Bash on Ubuntu on Windows)
View .aliases
## Git
alias ga='git add'
alias gb='git branch --sort=-committerdate'
alias gbr="git for-each-ref --sort=-committerdate refs/heads --format='%(HEAD)%(color:yellow)%(refname:short)|%(color:bold green)%(committerdate:relative)|%(color:blue)%(subject)|%(color:magenta)%(authorname)%(color:reset)'|column -ts'|'"
alias gco='git checkout'
alias gcm='git commit -m'
alias gcv='git commit -v'
alias gd='git diff'
alias gl="git log -n 15 --graph --date-order --date=relative --pretty=format:'%C(red)%h%C(reset)%C(auto)%d%C(reset) %s %C(green)(%cr) %C(yellow) %an %C(reset)'"
alias gm='git merge'
nickautomatic /
Last active Feb 4, 2020
Setting up Cmder to use bash by default

Set up cmder to use msysgit / bash by default

  • Install cmder_mini (msysgit is already installed, so no need for full version)
  • In Cmder, open settings: Win + Alt + P
  • Under Startup > Tasks, add a task called {bash} with the following settings:
    • Task parameters (set icon):
      • For Cmder icon: /icon "%CMDER_ROOT%\cmder.exe"
      • For Git icon: /icon "C:\Program Files (x86)\Git\etc\git.ico"
    • Commands (open Git's bash shell):
      • "C:\Program Files (x86)\Git\bin\sh.exe" -l -new_console:d:%USERPROFILE%
nickautomatic / Package Control.sublime-settings
Last active Dec 9, 2019
Sublime Text - Installed Packages
View Package Control.sublime-settings
"bootstrapped": true,
"Color Highlighter",
nickautomatic / breakpoint.scss
Created Mar 10, 2015
Super-simple breakpoint mixin
View breakpoint.scss
// Super simple mobile-first breakpoint mixin:
@mixin breakpoint($from) {
@media screen and (min-width: $from) { @content; }
// Example usage:
$small: 480px;
nav {
@include breakpoint($small) {
display: none;
nickautomatic / .visually-hidden
Last active Feb 28, 2018
Visually hidden / screen-reader only class
View .visually-hidden
/* From Bootstrap 3 (I think...) */
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0,0,0,0);
border: 0;
nickautomatic / Preferences.sublime-settings
Last active Aug 31, 2018
Sublime Text - User Settings
View Preferences.sublime-settings
"bold_folder_labels": true,
"color_scheme": "Packages/Theme - Afterglow/Afterglow.tmTheme",
"default_line_ending": "unix",
"enable_tab_scrolling": false,
"ensure_newline_at_eof_on_save": true,
View .bashrc
## Global variables:
export PATH=/c/Program\ Files/cwRsync/:/c/Users/Nick/AppData/Roaming/npm/:$PATH
export VAGRANT_HOME=/c/HashiCorp/Vagrant/.vagrant.d/
## Custom Bash Prompt:
export PS1='\[\033]0;$MSYSTEM:${PWD//[^[:ascii:]]/?}\007\]\n\[\033[32m\]\u@\h \[\033[33m\]\w\[\033[36m\]`__git_ps1`\[\033[0m\]\n$ '
## For nice diffs:
# install diff-so-fancy (npm -g diff-so-fancy)
# set pager to use it (git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX")
nickautomatic / Default (Windows).sublime-keymap
Last active Mar 14, 2018
Sublime Text keymap (with shortcuts from jEdit)
View Default (Windows).sublime-keymap
// My Sublime shortcuts:
{ "keys": ["ctrl+k", "ctrl+m"], "command": "toggle_minimap" },
// jEdit shortcuts:
{ "keys": ["alt+d"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} },
{ "keys": ["alt+right"], "command": "indent" },
{ "keys": ["alt+left"], "command": "unindent" },
{ "keys": ["ctrl+e", "ctrl+c"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["ctrl+e", "ctrl+w"], "command": "close_all" },
You can’t perform that action at this time.