gem install rails --pre
rails new my_app -T
| TARGET_NAME = "Rivals" | |
| RELEASE_OUTPUT_PATH = File.expand_path("~/proged/releases/#{TARGET_NAME}") | |
| CONFIGURATION = ENV['CONFIGURATION'] || "Release" | |
| SDK_VERSION = ENV['SDK'] || 'iphoneos3.1' | |
| desc "Build main target and zip the release bundle (also bumps all versions)." | |
| task :release => ['bump:all'] do | |
| puts "* Building #{CONFIGURATION} release." | |
| `xcodebuild -target #{TARGET_NAME} -configuration #{CONFIGURATION} -sdk #{SDK_VERSION}` |
| # this goes in lib/resque/failure/notifier.rb | |
| require 'resque/failure/multiple' | |
| require 'resque/failure/redis' | |
| require 'postmark' | |
| require 'mail' | |
| module Resque | |
| module Failure | |
| class Notifier < Base |
This gist is no longer valid. Please see Compass-Rails for instructions on how to install.
| 56k: "https://123.campfirenow.com/images/56k.gif" | |
| bell: ":bell:" | |
| bezos: ":laughing::thought_balloon:" | |
| bueller: "anyone?" | |
| butts: ":open_hands: :smoking:" | |
| clowntown: "https://123.campfirenow.com/images/clowntown.gif" | |
| cottoneyejoe: ":notes::hear_no_evil::notes:" | |
| crickets: "hears crickets chirping" | |
| dadgummit: "dad gummit!! :fishing_pole_and_fish:" | |
| dangerzone: "https://123.campfirenow.com/images/dangerzone.png" |
| license: gpl-3.0 | |
| redirect: https://observablehq.com/@d3/hierarchical-bar-chart |
| require 'net/http' | |
| p = Net::HTTP.get(URI.parse('http://bukk.it')) | |
| regexp = /href=\"(.*?\..*?)\"/ | |
| images = p.scan(regexp).flatten | |
| image = images[rand(images.length)] | |
| puts "http://bukk.it/" + image |
As configured in my dotfiles.
start new:
tmux
start new with session name:
If Animal and Fozzie wanted to pair on Animals machine and they both have access to shared.muppets.com then they could use the following setup
~/.ssh/configHost tunnel_from_muppets
Hostname space.muppets.com
RemoteForward 1235 localhost:22
| #!/usr/bin/env python | |
| import urllib | |
| import pprint | |
| import amazonproduct | |
| from BeautifulSoup import BeautifulSoup | |
| from review import db | |
| AWS_KEY = 'YOUR_AWS_KEY' | |
| SECRET_KEY = 'YOUR_AWS_SECRET_KEY' | |
| API_PAGE_LIMIT = 10 |