Skip to content

Instantly share code, notes, and snippets.

View jgpeak's full-sized avatar

Jefferson Peak jgpeak

View GitHub Profile
# The below enables Chrome's always allow checkbox for opening apps that was disabled in the latest Chrome update.
defaults write com.google.Chrome ExternalProtocolDialogShowAlwaysOpenCheckbox -bool true
@jgpeak
jgpeak / .gitignore
Created May 30, 2015 11:01
Default Node.js Git Ignore File
# Ignore Mac Files
.DS_Store
# Ignore Testing Configurations
config/test
# Ignore Temp Directory
tmp
# Logs
@jgpeak
jgpeak / custom_git_commands.sh
Last active August 29, 2015 14:16
Bash script to add helpful custom Git commands to a system.
# Description: Custom command to perform git add and git commit together.
# Execution Command: git add-commit -m 'My commit message'
git config --global alias.add-commit '!git add -A && git commit'
# Description: Custom command to update a branch with changes from the remote master.
# Execution Command: git update-branch
git config --global alias.update-branch '!git checkout master && git pull && git checkout - && git rebase master'
#Description: Custom command to remove all merged local branches
# Execution Commad: git remove-merged