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 'rubygems' | |
require 'sinatra' | |
require 'haml' | |
require 'json' | |
get '/' do | |
@title = 'Presentation' | |
haml :index | |
end |
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 | |
# vim:fileencoding=utf-8 | |
require 'open-uri' | |
(100...1000).each do |i| | |
sleep 1 | |
x = open("http://pbh.jp/#{i}/") rescue next | |
puts i | |
end |
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
Common subdirectories: elastic-mapreduce-ruby/amazon and elastic-mapreduce-ruby-multiple-jobconf/amazon | |
diff -cN elastic-mapreduce-ruby/commands.rb elastic-mapreduce-ruby-multiple-jobconf/commands.rb | |
*** elastic-mapreduce-ruby/commands.rb 2011-02-14 14:35:14.000000000 +0900 | |
--- elastic-mapreduce-ruby-multiple-jobconf/commands.rb 2011-02-23 10:01:37.000000000 +0900 | |
*************** | |
*** 525,531 **** | |
end | |
for jc in get_field(:jobconf, []) do | |
! stream_options << "-jobconf" << jc |
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
Common subdirectories: elastic-mapreduce-ruby.orig/amazon and elastic-mapreduce-ruby/amazon | |
Common subdirectories: elastic-mapreduce-ruby.orig/bin and elastic-mapreduce-ruby/bin | |
diff -c elastic-mapreduce-ruby.orig/elastic-mapreduce elastic-mapreduce-ruby/elastic-mapreduce | |
*** elastic-mapreduce-ruby.orig/elastic-mapreduce 2011-06-29 15:24:23.000000000 +0900 | |
--- elastic-mapreduce-ruby/elastic-mapreduce 2011-06-29 15:25:00.000000000 +0900 | |
*************** | |
*** 2,8 **** | |
# | |
# Copyright 2008-2010 Amazon.com, Inc. or its affiliates. All Rights Reserved. | |
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
#!/bin/sh | |
# set crontab such as: | |
# 30 6 * * * /bin/sh /path/to/mail_daily_commit_logs.sh | |
TO='example@example.org' | |
FROM='example@example.org' | |
REPO_PATH='/path/to/rails/' | |
cd $REPO_PATH | |
/usr/local/bin/git pull |
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 :rubygems | |
gem 'sinatra' |
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
ねむい |
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
// ==UserScript== | |
// @name Jenkins status favicon | |
// @namespace http://www.xn--n8j4d9b.com/ | |
// @include http://url_to_your_jenkins | |
// ==/UserScript== | |
var favicon = document.createElement('link'); | |
favicon.rel = 'shortcut icon'; | |
favicon.type = 'image/gif'; | |
var img = document.getElementsByClassName('icon32x32')[0] |
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> | |
type http | |
port 8888 | |
</source> | |
<match say.**> | |
type say | |
</match> |