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
sudo gem install schacon-ticgit --source=http://gems.github.com |
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
sudo apt-get install ticgit |
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
git push origin ticgit |
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
push = refs/heads/ticgit:refs/heads/ticgit |
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
test |
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 'cgi' | |
system "open \"http://www.google.co.jp/search?&hl=ja&q=#{CGI.escape(ARGV.first)}\"" |
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 'cgi' | |
site = CGI.escape(ARGV.first ||'') | |
default = 'http://www.moxssg.com/' | |
case site | |
when '' | |
url = default |
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 | |
cmd = 'w3m' | |
if open("| which #{cmd} 2>/dev/null") {|f| f.gets} | |
system "w3m http://current-ip-address.heroku.com -dump | awk '{print $4}'" | |
else | |
puts "please install \"w3m\"." | |
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
# | |
# Every 5 mins, try to gate news to mail. You can comment this one out | |
# if you don't want to allow gating, or don't have any going on right now, | |
# or want to exclusively use a callback strategy instead of polling. | |
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/bin/python -S /usr/share/mailman/cron/gate_news | |
# | |
# |
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
// 1.2 | |
$this->pageTitle = 'Cute Blog'; | |
// with h1 | |
<h1><?php e($this->pageTitle = 'Wonderful Blog'); ?></h1> | |
// 1.3 | |
$this->set('title_for_layout', 'Nice Blog'); |
OlderNewer