# change mirror to ubuntu.osuosl.org first
sudo apt-get update
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
# http://trevmex.com/post/3822870892/rails-one-liner-to-get-urls-from-rake-routes | |
rake routes | sed -e "1d" -e "s,^[^/]*,,g" | awk '{print $1}' | sort | uniq |
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
COPY (SELECT foo,bar FROM whatever) TO '/tmp/dump.csv' WITH CSV HEADER; |
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
regex characters: | |
. | |
any character except newline | |
[ ] | |
any single character of set | |
[^ ] | |
any single character NOT of set | |
* | |
0 or more previous regular expression | |
*? |
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
https://www.pivotaltracker.com/help/api?version=v3#github_hooks | |
https://www.pivotaltracker.com/help/api?version=v3#scm_post_commit_message_syntax | |
SCM Post-Commit Message Syntax | |
To associate an SCM commit with a specific Tracker story, you must include a special syntax in the commit message to indicate one or more story IDs and (optionally) a state change for the story. Your commit message should have square brackets containing a hash mark followed by the story ID. If a story was not already started (it was in the "not started" state), a commit message will automatically start it. For example, if Scotty uses the following message when committing SCM revision 54321: | |
[#12345677 #12345678] Diverting power from warp drive to torpedoes. | |
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
Alfred http://www.alfredapp.com/ | |
Shiftit http://code.google.com/p/shiftit/ | |
Spectacle http://spectacleapp.com/ | |
Adium http://adium.im/ | |
Dropbox https://www.dropbox.com/ | |
VMware Fusion http://www.vmware.com/products/fusion/overview.html | |
Teleport http://abyssoft.com/software/teleport/ | |
TextWrangler http://www.barebones.com/products/textwrangler/ | |
Skype http://www.skype.com/ | |
iTerm2 http://www.iterm2.com/ |
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
# install database server | |
apt-get install postgresql libpq-dev | |
# install postgresql gem | |
gem install pg | |
# create postgres (super)user | |
createuser --superuser lsmith -U postgres | |
# change postgres user password |
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
openssl rand -base64 6 | |
openssl rand -hex 4 | |
openssl rand -base64 8 |md5 |head -c8;echo | |
date |md5 | head -c8; echo | |
ping -c 1 yahoo.com |md5 | head -c8; echo |
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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'geokit' | |
require 'csv' | |
Geokit::Geocoders::google = 'your_key' | |
places = CSV.read('places.csv', headers: true) |
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
cd /data/regions_brandworks/shared | |
wget http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.9.9-static-i386.tar.bz2 | |
tar xfj wkhtmltopdf-0.9.9-static-i386.tar.bz2 | |
sudo mv wkhtmltopdf-i386 /usr/local/bin/wkhtmltopdf |
OlderNewer