Skip to content

Instantly share code, notes, and snippets.

@gardentree
gardentree / gist:5845756
Created June 23, 2013 17:12
Herokuにrails4+ruby2をpushする時に、rake assets:precompileでエラーが発生する場合
heroku labs:enable user-env-compile
@gardentree
gardentree / gist:4359081
Created December 22, 2012 14:32
rvmをupdateしたい時に
rvm get latest
rvm reload
rvm version
@gardentree
gardentree / gist:4335665
Last active December 9, 2015 22:09
Mac OS Xのプレビューで"再開"を無効にしたい時に
defaults write com.apple.Preview NSQuitAlwaysKeepsWindows -bool false
@gardentree
gardentree / gist:3991520
Created November 1, 2012 03:36
[Can't mass-assign protected attributes: foo]が発生する時に
Hoge.new({foo: "bar"},without_protection: true)
@gardentree
gardentree / gist:3652209
Created September 6, 2012 06:43
HerokuでProduction環境からStaging環境にDBをコピーしたい時に
heroku pgbackups:restore DATABASE `heroku pgbackups:url --app myapp` --app myapp-staging
@gardentree
gardentree / gist:3512404
Created August 29, 2012 13:22
HerokuでDBをresetしたい時に
heroku pg:reset DATABASE --app #{name}
@gardentree
gardentree / gist:3191713
Created July 28, 2012 03:58
Herokuでタイムゾーンを指定したい時に
heroku config:add TZ=Asia/Tokyo
@gardentree
gardentree / gist:3017534
Created June 29, 2012 11:51
DefaultのHeroku Applicationを指定したい時に
git config heroku.remote #{remote.name}
@gardentree
gardentree / gist:1582134
Created January 9, 2012 09:18
Herokuで最新のnodeを使いたい時に
heroku apps:create #{name} --stack cedar --remote staging --buildpack https://github.com/heroku/heroku-buildpack-nodejs.git
@gardentree
gardentree / gist:1517117
Created December 24, 2011 10:55
Node.js Install
git clone git://github.com/creationix/nvm.git ~/.nvm
source ~/.nvm/nvm.sh
nvm install v0.6.6
npm install -g coffee-script
npm install -g express
express -s -c sass #{name}