Skip to content

Instantly share code, notes, and snippets.

View minase's full-sized avatar
🐈
i love cat.

oda minase

🐈
i love cat.
View GitHub Profile
#!/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 ===="
@minase
minase / ProlificUsbSerial.kext-Info.plist.diff
Created February 13, 2013 12:08
Prolific PL2303 Driver v1.4.0 + USB-RSAQ5
*** 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>
# 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}"