Skip to content

Instantly share code, notes, and snippets.

View kerrizor's full-sized avatar
🏍️
BRAAAAAAAAP!

Kerri Miller kerrizor

🏍️
BRAAAAAAAAP!
View GitHub Profile
@kerrizor
kerrizor / launch_sublime_from_terminal.markdown
Created October 23, 2012 05:47 — forked from olivierlacan/launch_sublime_from_terminal.markdown
Launch Sublime Text 2 from the Mac OS X Terminal

Launch Sublime Text 2 from the Mac OS X Terminal

Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.

open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl

You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html

Installation

group :development, :test do
gem 'sqlite3'
end
group :production do
gem 'pg'
end
@kerrizor
kerrizor / gist:1359716
Created November 11, 2011 23:53
Actual code we found buried DEEP in a repo our offshore devs wrote a year ago
if (isTrue)
{
// return true value
return true;
}
else
{
// if not...
// return false value
return false;
@kerrizor
kerrizor / gist:1122091
Created August 3, 2011 07:21 — forked from avalanche123/gist:981817
GitHub Emoji
:+1:
:-1:
:airplane:
:art:
:bear:
:beer:
:bike:
:bomb:
:book:
:bulb:
@kerrizor
kerrizor / sitemap
Created January 19, 2011 01:00
Rake task to build sitemap and deploy to S3
desc "build and deploy sitemap"
task :refresh_sitemap => :environment do
s3_credentials = YAML.load_file("#{Rails.root.to_s}/config/amazon_s3.yml")[Rails.env].symbolize_keys!
# builds the sitemap and deploys to S3 without notifying search engines
Rake::Task["sitemap:refresh:no_ping"].invoke
AWS::S3::Base.establish_connection!(
:access_key_id => s3_credentials[:access_key_id],
:secret_access_key => s3_credentials[:secret_access_key]