This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Allow apps download from Anywhere on MacOS 10.12+ | |
sudo spctl --master-disable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git for-each-ref --shell --format="if [[ %(refname:short) != \"_ignore\"* ]] && [[ ! -z %(upstream) ]]; then git checkout %(refname:short) && git rebase %(upstream:short); fi" refs/heads/ | sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# when 'rm -rf *' fails with 'Argument list too long' | |
printf '%s\0' * | xargs -0 rm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// modern | |
var evt = new Event("mouseup", {"bubbles":true, "cancelable":true}); | |
document.querySelector(".foo-bar").dispatchEvent(evt); | |
// deprecated | |
var evt = document.createEvent("MouseEvents"); | |
evt.initEvent("mouseup", true, true); | |
document.querySelector(".foo-bar").dispatchEvent(evt); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# follow symlinks | |
--follow | |
--type-set=scss=.scss | |
--type-set=http=.http | |
--type-set=coffee=.coffee | |
--type-set=orig=.orig | |
--ignore-dir=tiny_mce | |
--ignore-dir=external | |
--ignore-dir=timeline_2.3.0 | |
--ignore-dir=codemirror-0.91 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hg annotate --user --number |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# save to /usr/local/bin/subl | |
nohup /path/to/Sublime\ Text\ 2/sublime_text $1 >/dev/null 2>&1 & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Mavericks | |
defaults write com.google.Chrome AppleEnableSwipeNavigateWithScrolls -bool FALSE | |
# Older versions of OS X | |
defaults write com.google.Chrome.plist AppleEnableSwipeNavigateWithScrolls -bool FALSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For programs installed via Homebrew | |
ln -sfv /usr/local/opt/rabbitmq/*.plist ~/Library/LaunchAgents | |
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.rabbitmq.plist | |
ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents | |
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist | |
# etc... |
NewerOlder