This file contains hidden or 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 tclsh | |
proc http_server {sock host port} { | |
set request [read_request $sock] | |
set response [mk_response] | |
# puts to stdout | |
puts "==== Request header(from: $host:$port) ====" | |
puts $request | |
puts "==== Response header and body ====" |
This file contains hidden or 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
*** Info.plist.org 2010-03-25 16:47:26.000000000 +0900 | |
--- Info.plist 2013-02-13 21:01:40.000000000 +0900 | |
*************** | |
*** 41,46 **** | |
--- 41,63 ---- | |
<key>idVendor</key> | |
<integer>1659</integer> | |
</dict> | |
+ <key>04BB_0A0E</key> | |
+ <dict> |
This file contains hidden or 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
# lib/tasks/unicorn.rake | |
namespace :unicorn do | |
config = Rails.root + 'config/unicorn.rb' | |
rackup = Rails.root + 'config.ru' | |
pid_file = Rails.root + 'tmp/pids/unicorn.pid' | |
pid = File.exist?(pid_file) ? File.read(pid_file).to_i : nil | |
desc 'Starting unicorn process' | |
task :start => :environment do | |
sh "bundle exec unicorn_rails -D -c #{config} #{rackup}" |
OlderNewer