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 branch --merged develop | grep -v 'master$' | grep -v 'develop$' | xargs git branch -d | |
# find all local branches merged in to develop | |
# dont delete master or develop branches | |
# then do it |
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 branch -r --merged develop | sed 's/ *phil\///' | grep -v 'master$' | grep -v 'develop$' | grep -v '^ dave' | grep -v '^ kevinbrowne' | xargs -I% git push phil :% | |
# mostly likely change the first part to master. use this branch to test if things have been merged in | |
# sed part. use this to remove the name of your remote in my case phil. most likely to be origin | |
# grep any branches you want to keep | |
# last part. change name to your remote | |
# you can do a dry run by removing the last section |
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
sudo date -s "2 MAR 2012 18:00:00" |
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
# apt-get | |
# build-essential gcc libreadline6-dev libxslt-dev libxml2-dev zlib1g-dev libcurl4-openssl-dev libpcre3-dev | |
# http://www.blog.bridgeutopiaweb.com/post/install-rvm-passenger-nginx-and-rails-3-on-ubuntu-lucid-lynx/ | |
rvm install 1.9.2 | |
rvm 1.9.2 --passenger |
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
# users, roles | |
create user blah with password 'blah'; | |
drop user blah; | |
# db creation | |
create database DATABASE with owner OWNER; |
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
scanimage --mode Lineart --resolution 600 > test.pnm | |
scanimage --mode Lineart --batch-prompt --batch-count 2 --resolution 600 | |
convert out1.pnm out2.pnm out.pdf |
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
mogrify -resize 256x256 |
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
sudo /usr/libexec/locate.updatedb |
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
# since it isnt in my path | |
/Library/PostgreSQL/9.1/bin/pg_ctl restart -D /Library/PostgreSQL/9.1/data |
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
defaults write com.apple.finder AppleShowAllFiles -bool YES |