Skip to content

Instantly share code, notes, and snippets.

Avatar
:bowtie:
Focusing on @planetargon at the moment

Robby Russell robbyrussell

:bowtie:
Focusing on @planetargon at the moment
View GitHub Profile
@robbyrussell
robbyrussell / argonista-disk-space-reclaimer.sh
Created Aug 28, 2021
Planet Argon - Tidy up your Rails development/test.log files and brew cleanup
View argonista-disk-space-reclaimer.sh
#!/bin/sh
# A little shell script to help you reclaim disk space by doing the
# following things on your Mac OS development machine.
# * Empty all of your local development.log files
# * Empty all of your local test.log files
# * Removes unused Homebrew packages
# Install:
# * Save this to ~/bin/argonista-disk-space-reclaimer.sh
# * Run % chmod +x ~/bin/argonista-disk-space-reclaimer.sh
# Usage:
@robbyrussell
robbyrussell / languages.md
Created May 1, 2018 — forked from joshsusser/languages.md
languages I've been paid to program in
View languages.md
  1. assembler
  2. bash
  3. BASIC
  4. C
  5. C++
  6. Dylan (aka Ralph)
  7. HyperTalk
  8. Java
  9. JavaScript
  10. Lisp
@robbyrussell
robbyrussell / doh-my-zsh.txt
Created Apr 11, 2016
doh-my-zsh-talk-proposal
View doh-my-zsh.txt
Title:
How I unexpectedly built a monster of an open source project
Excerpt:
In 2009, Oh My Zsh was released. It's since become a popular open source tool used by developers around the world. Let's walk through how a really small idea turned into a big project.
View mary-had-a-little-lamb.rb
#!env ruby
#
# brew install sox
#
def play(note, octave=1)
"play -q -n synth sq #{note}#{octave} remix - fade 0 .6 .1 norm; "
end
song_notes = %w(B A G A B B B A A A G D D B A G A B B B B A A B A G)
View i-am-sorry.txt
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
#!/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"
@robbyrussell
robbyrussell / ohmyzsh-dropbox-sync.sh
Created Feb 8, 2012
Keep your @ohmyzsh ~/.zshrc in sync via dropbox
View ohmyzsh-dropbox-sync.sh
# 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
@robbyrussell
robbyrussell / git-rebase.sh
Created Sep 22, 2011
git rebase explained
View git-rebase.sh
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?
@robbyrussell
robbyrussell / time_until_in_words.rb
Created Jun 29, 2011
Before I start hacking on this myself... anyone have a Ruby method to produce this?
View time_until_in_words.rb
# 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
# 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