Skip to content

Instantly share code, notes, and snippets.

View caseywatts's full-sized avatar
Hi, I’m Casey!

Casey Watts caseywatts

Hi, I’m Casey!
View GitHub Profile
caseywatts / RoR Ubuntu STC 2012
Created May 29, 2012 00:50
Bash Script for Ubuntu RoR Setup - STC Summer 2012
# This probably won't run as a script, but you can copy sections at a time.
# Before running, change CAPITAL LETTERS to the appropriate variables you have
#When you get stuck on installation for "ttf-mscorefonts-installer", press [Tab] then [Return] to accept the agreement.
sudo apt-get update
sudo apt-get install mysql-server mysql-client
sudo apt-get install libmysql-ruby libmysqlclient-dev
sudo apt-get install build-essential mysql-server gedit-plugins ri phpmyadmin msttcorefonts openjdk-6-jdk git-core
sudo apt-get install sqlite3 libsqlite3-dev libsqlite3-ruby
caseywatts / gist:2950239
Created June 18, 2012 19:31
You can use Meld for Mac too!
#Install Fink (which is sorta like brew)
#Install Meld
fink install meld
#connect it to git diff
chmod +x ~/gitvdiff
caseywatts / RoR Setup
Created June 19, 2012 21:38
Bash Script for OS X RoR Setup - STC Summer 2012
### Install XCode
# Follow Instructions at
# In Xcode preferences, enable command line tools
## rbenv for ruby compiling and managing versions
brew install rbenv
brew install ruby-build
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
caseywatts / gist:4234178
Created December 7, 2012 15:58
Getting code_swarm to work
#~/Code/shifts is a github project I've been working on
## Complete prerequisites on
## Clone the repo, patch it
cd ~/Code
git clone git://
# one commit was giving me trouble, and I don't know how to pull request a better solution
caseywatts / WhoLacksShiftsPhoto.rb
Created February 14, 2013 08:26
Run this in a pry/irb session, with the Shifts database loaded.
profiles ={|profile| profile.user.is_active?(Department.first)}
emails = []
profiles.each do |profile|
if profile.photo_file_name == nil
emails <<
caseywatts / gist:5138333
Created March 11, 2013 22:11
Get emails of users who have worked in a location over a time period (Shifts app)
user_emails = []
Shift.after_date( - 4.weeks).find_all_by_location_id(44).each do |sh|
user_emails <<
user_emails = user_emails.uniq
caseywatts / gist:5157848
Created March 14, 2013 00:35
Replace DB emails with my email, for testing
User.all.each_with_index do |user, i| = "casey.s.watts+testing" + i.to_s + ""
caseywatts / buttony.css
Last active December 15, 2015 12:28
make things buttony (css). This one for xmarks shared bookmarks pages.
<style type="text/css">
box-shadow: 3px 3px 4px #666;
caseywatts /
Last active December 16, 2015 05:29 — forked from mbostock/.block
caseywatts /
Last active April 27, 2018 20:56
Making a gif