Skip to content

Instantly share code, notes, and snippets.

View shockby's full-sized avatar

Takeshi Ohashi shockby

View GitHub Profile
@shockby
shockby / gist:ecd1fc049bcaddca16c70a8afca3ad5a
Last active May 11, 2016 06:06
Rubyのバージョンを2.2.5に上げる方法
rbenv update
rbenv install --list
rbenv install 2.2.5
rbenv local 2.2.5
gem install bundler
bundle install
インストールが終わったら
rbenv uninstall 2.2.4 (古いバージョン)
$ git branch --merged | grep -v '*' | xargs -I % git branch -d %
@shockby
shockby / s3.sh
Last active June 27, 2017 21:23 — forked from chrismdp/s3.sh
# You don't need Fog in Ruby or some other library to upload to S3 -- shell works perfectly fine
# This is how I upload my new Sol Trader builds (http://soltrader.net)
S3KEY="my aws key"
S3SECRET="my aws secret" # pass these in
function putS3
{
path=$1
file=$2