金曜日、私は Heroku から Amazon Web Services(AWS) を直接使うように Soundslice を移行しました。私はこの変更ができてとても、そうとても嬉しくて、私がどうやったかということと、もし皆さんが同じような立場だったら何故それを検討すべきかということについて広く伝えたいと思います。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
gem 'capybara' | |
gem 'rake' | |
gem 'selenium-webdriver' | |
gem 'json' | |
gem 'rmagick' | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'time' | |
require 'nkf' | |
abort "Usage:#{$0} PodcastTitle PublicURL FilesDir" if ARGV.length < 3 | |
title = NKF.nkf('-w', ARGV[0]) | |
location = ARGV[1] | |
filesDir = ARGV[2] |
$ cd /usr/local
$ brew versions mysql
5.6.10 git checkout aa3db07 Library/Formula/mysql.rb
5.5.29 git checkout 336c976 Library/Formula/mysql.rb
5.5.28 git checkout 5825f62 Library/Formula/mysql.rb
5.5.27 git checkout 93aecfa Library/Formula/mysql.rb
5.5.25a git checkout faaa6c1 Library/Formula/mysql.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'RMagick' | |
require 'capybara' | |
require 'launchy' | |
module Capybara::Recording | |
def start_recording | |
system "rm -f tmp/*" | |
end | |
def save_recording |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git Library/Homebrew/formula_installer.rb Library/Homebrew/formula_installer.rb | |
index 1008bc2..3cf2492 100644 | |
--- Library/Homebrew/formula_installer.rb | |
+++ Library/Homebrew/formula_installer.rb | |
@@ -236,7 +236,7 @@ class FormulaInstaller | |
ohai "Summary" if ARGV.verbose? or show_summary_heading | |
unless ENV['HOMEBREW_NO_EMOJI'] | |
- print "🍺 " if MacOS.version >= :lion | |
+ print "🍣 " if MacOS.version >= :lion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Gemfile.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
function suddenize() { | |
typeset text hit length i header footer | |
text=$1 | |
hit=0 | |
for i in $( seq 1 ${#text} ); do | |
hit=$(( $hit + $(expr $text[$i] : '[ -~]') )) | |
done | |
length=$(( ${#text} - $(( $hit / 2 )) + 2 )) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/lib64/fluent/ruby/bin/ruby | |
# -*- encoding: utf-8 -*- | |
# GrowthForecastのAPIを使って複合グラフを作るサンプル | |
# 仕様はこのへん読もう | |
# https://github.com/kazeburo/GrowthForecast/blob/master/lib/GrowthForecast/Web.pm | |
# | |
# <service_name>/access/{2xx_count,3xx_count,4xx_count,5xx_count} | |
# ↓ | |
# <service_name>/access/access_status |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Browser = require "zombie" | |
username = process.argv[2] | |
password = process.argv[3] | |
message = process.argv[4] | |
browser = new Browser (debug:true, runScripts:false) | |
browser.visit "https://mobile.twitter.com/session/new", -> | |
browser.fill "username", username | |
browser.fill "password", password |