View i-am-sorry.txt
1 2 3 4
Dear friends, we are truly sorry. You're right. We live in a bubble
and have a lot to learn. We need to do some soul searching and
practice mindfulness going forward. We hope that, in time, you'll
forgive us.
View gist:1831231
1 2 3 4 5 6 7 8 9 10
#!/bin/sh
 
# config options
CURRENT_DATE=`date +%Y%m%d`;
BACKUP_DIRECTORY="/Users/robbyrussell/Backups/Databases/Contiki"
DATABASE_NAME="contiki_live_$CURRENT_DATE"
echo $DATABASE_NAME;
DATABASE_USER="root"
MYSQL_PATH="mysql"
MYSQL_IMPORT_PATH="mysqlimport"
View ohmyzsh-dropbox-sync.sh
1 2 3 4 5 6 7 8 9 10
# Was asked how I keep my zshrc config sync'd between my computers with Dropbox
 
# Add a new directory in your Dropbox (or use an existing one)
mkdir -p ~/Dropbox/ohmyzsh
 
# move existing file to Dropbox
mv ~/.zshrc ~/Dropbox/ohmyzsh/zshrc
 
# symlink file back to your local directory
ln -s ~/Dropbox/ohmyzsh/zshrc ~/.zshrc
View git-rebase.sh
1 2 3 4 5 6 7 8
Using git rebase you can...
 
 
[08yg2'pygr'ue w' hge 'weg'y8eq' 13rfh29hufg2 f2 hiefpheflqdoq udqs0ysqflwqrl hqsdo8sfo qsoyfoh8i24t;nv2hpewgjppyputpy gpu p upy Tphds0ywefjpdgy80etwhpasgihasdgoyf phqwyot hq py eqtoy qpysfygdpy9 qwrlhiqwtoad8gyasly wasoy ao yqwrlhqw.
 
y83tqoy8t3 tpq et0 qerpqejqey qh pqy qwr-yqt[u93tqpy9gqepy tqy9 -qrhp3 py3 3ry31y2p hfey 0fqrp gpwygh ry0fh43wri7eldgkt ht34 goyw gol wrlsfvy94pygor pho 2oy 2oey8 24 gwgo orh2o ft9ydwlhfwdkdfhdflieqo 2oy2 4tdo8fouywf pdgfo sho qo he o tt .
 
Sounds easy, right?
View time_until_in_words.rb
1 2 3 4 5 6 7 8
# return strings like:
# "3 months and 14 days" until"...
# "1 year and 11 days until"...
#
def time_until_in_words(future_date)
future_date - Date.today
# magic!
end
View gist:1054780
1 2 3 4 5 6 7 8
# Before I start hacking on this myself... anyone have a Ruby method to produce this?
# "3 months and 14 days" until"...
# "1 year and 11 days until"...
 
def time_until_in_words(future_date)
future_date - Date.today
# magic!
end
View we-love-github.txt
1 2 3 4 5
When I released Oh My Zsh to share with coworkers, I decided to toss it on Github instead of sending them a tarball. If you had told me that less than two years later, we'd be approaching 900 forks and I'd have accepted patches from 150 different people... I'd have rolled my eyes and laughed.
 
Yet, I find myself leading such a project, which now receives more pull-requests submissions than I can keep up with. Github has provided tools that enabled me to distribute some management of the project with other people, which means that I don't have to be a huge bottle neck in the process. Even if I don't keep up (ie., take a vacation), people can easily fork, make their tweaks, and share their patches with the rest of the community. This allows me to get engaged with the community when it's convenient for me.
 
Outside of that, the people who use Oh My Zsh appear to be huge fans of the project. It seems to make a positive difference in how people feel about working with their terminal environment. Being able to re
View post-checkout
1 2 3 4 5 6
#!/bin/sh
#
# Just save this as .git/hooks/post-checkout in your Rails application
#
env ARCHFLAGS="-arch x86_64" bundle install
touch tmp/restart.txt
View my.zshrc
1 2 3 4 5 6 7 8 9 10
# my ~/.zshrc BEFORE oh-my-zsh
 
# Input stuff.
 
bindkey -e
 
# History stuff.
setopt HIST_VERIFY
setopt INC_APPEND_HISTORY
setopt SHARE_HISTORY
View B testing with GWO
1 2 3 4 5 6 7 8 9
I'm hoping to run an A/B test on a product preview page, which has URLs like so:
 
* http://domain.com/products/14/preview
* http://domain.com/products/104/preview
* http://domain.com/products/135/preview
* http://domain.com/products/2045/preview
* http://domain.com/products/2045/preview
 
We have a variation of the 'preview' view that we want to compare... across all our products.
Something went wrong with that request. Please try again.