These commands are good as of 2011-07-27.
App store http://itunes.apple.com/us/app/xcode/id448457090?mt=12) The download/install takes awhile so start it first. When it finishes downloading you will still need to run it to complete installation.
These commands are good as of 2011-07-27.
App store http://itunes.apple.com/us/app/xcode/id448457090?mt=12) The download/install takes awhile so start it first. When it finishes downloading you will still need to run it to complete installation.
# rails new [appname] -JT -m https://gist.githubusercontent.com/paulmars/960988/raw/386eb14e20153ef4d55a6735d22748c6503b64f8/template.rb | |
# rails new APPNAME -JT -m /Users/paul/Development/template/template.rb | |
# sass | |
gem 'sass-rails' | |
gem 'bootstrap-sass', '3.2.0.2' | |
# image update | |
gem 'carrierwave', '0.10.0' | |
gem 'fog', '1.19.0' |
require 'json' | |
require 'open-uri' | |
def most_recent_timestamp | |
data = JSON.parse(open('http://bitcoincharts.com/t/markets_timestamps.json').read) | |
data['mtgoxUSD'].to_i | |
end | |
def new_transactions(n) |
#!/usr/bin/env ruby | |
# Libraries::::::::::::::::::::::::::::::::::::::::::::::::::::::: | |
require 'rubygems' | |
require 'sinatra/base' | |
require 'slim' | |
require 'sass' | |
require 'coffee-script' | |
# Application::::::::::::::::::::::::::::::::::::::::::::::::::: |
ybookmarks.sqlite |
require "colored" | |
require "rails" | |
require "haml" | |
require "bundler" | |
@partials = "#{File.dirname(__FILE__)}" | |
puts "\n=========================================================" | |
puts " FISCHER'S RAILS 3 TEMPLATE".yellow.bold | |
puts "=========================================================\n" |
#!/bin/bash | |
function flask-boilerplate-tmux | |
{ | |
# https://github.com/swaroopch/flask-boilerplate | |
BASE="$HOME/code/flask-boilerplate" | |
cd $BASE | |
tmux start-server | |
tmux new-session -d -s flaskboilerplate -n model |
" I used to run call system('find ~/.vimbackup -mtime +14 -exec gvfs-trash "{}" \;') | |
" but now have created a more portable version since I work on Windows, Mac, & Linux. | |
set backup | |
set nowritebackup | |
set backupcopy=yes | |
set backupdir=$HOME/.vimbackup | |
set directory=$HOME/.vimswap,./ | |
" Timestamp the backups |
#!/usr/bin/env ruby | |
%w{rubygems hmac-sha1 base64 cgi net/https uri openssl}.each{ |f| require f } | |
KEY = '<YOUR KEY>'; | |
SECRET = '<YOUR SECRET>'; | |
# encodes strings that make twitter oauth happy | |
def encode( string ) | |
URI.escape( string, Regexp.new("[^#{URI::PATTERN::UNRESERVED}]") ).gsub('*', '%2A') | |
end |
PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.2.14 | |
PassengerRuby /usr/bin/ruby | |
PassengerLogLevel 0 | |
PassengerUseGlobalQueue On | |
PassengerUserSwitching On | |
PassengerDefaultUser rails | |
PassengerMaxPoolSize 30 | |
PassengerMaxInstancesPerApp 0 | |
PassengerPoolIdleTime 0 |