Skip to content

Instantly share code, notes, and snippets.

View withgod's full-sized avatar
💭
I may be slow to respond.

takumi withgod

💭
I may be slow to respond.
View GitHub Profile
@withgod
withgod / gist:1825829
Created February 14, 2012 11:07
ruby-memcache-test
[withgod@withgod-mbp]gem install memcached --no-rdoc --no-ri [/tmp]
/Users/withgod/.rvm/rubies/ruby-1.9.2-p290/bin/gem:4: warning: Insecure world writable dir /private/tmp/ in PATH, mode 041777
Fetching: memcached-1.3.7.gem (100%)
Building native extensions. This could take a while...
Successfully installed memcached-1.3.7
1 gem installed
[withgod@withgod-mbp]irb [/tmp]
/Users/withgod/.rvm/rubies/ruby-1.9.2-p290/bin/irb:4: warning: Insecure world writable dir /private/tmp/ in PATH, mode 041777
1.9.2p290 :001 > require 'memcached'
=> true
@withgod
withgod / gist:1863100
Created February 19, 2012 10:39
hoge
"votemap"
{
"title" "change map to #1?"
"type" "confirm"
"command" "changelevel #1"
"percent" "70"
"count" "4"
"trigger"
{
"command" "votemap"
[noname@gis]git pull [(git)-[master] -~/code/sm-nj_regen]
X11 forwarding request failed on channel 0
ERROR: Hi withgod, it's GitHub. We're doing an SSH key audit.
Please visit https://github.com/settings/ssh/audit/0000000
to approve this key so we know it's safe.
Fingerprint: xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx
fatal: The remote end hung up unexpectedly
set nocompatible
set number
set tags+=tags_large
filetype off
set rtp +=~/.vim/vundle/
let $DOTVIM = expand('~/.vim')
call vundle#rc('$DOTVIM/bundle')
11:41:04 ! kimoto_________ (Killed (NickServ (NickServの設定を削除してください。)))
smoker@yukikaze:/lib/modules$ dpkg -l | grep linux-image- | grep 486
ii linux-image-2.6-486 3.2+45 i386 Linux for older PCs (dummy package)
rc linux-image-2.6.18-4-486 2.6.18.dfsg.1-11 i386 Linux 2.6.18 image on x86
rc linux-image-2.6.26-1-486 2.6.26-11 i386 Linux 2.6.26 image on x86
rc linux-image-2.6.29-1-486 2.6.29-3 i386 Linux 2.6.29 image on x86
rc linux-image-2.6.29-2-486 2.6.29-5 i386 Linux 2.6.29 image on x86
ii linux-image-2.6.32-3-486 2.6.32-9 i386 Linux 2.6.32 for old PCs
ii linux-image-2.6.32-5-486 2.6.32-29 i386 Linux 2.6.32 for old PCs
ii linux-image-2.6.32-trunk-486 2.6.32-2 i
http://via.me/-3jq2vw8
http://via.me/api/v1/posts/3jq2vw8
になって
{
"response":{
"post":{
"created":"1343641654.226703",
"id":"3jq2vw8",
"comment_count":0,
//jump 関係
cl_showpos 1
//cl_interpolate 0
cl_interp_ratio 0.01
cl_interp 0.01
cl_interp_all 0
rate 30000
cl_cmdrate 66
cl_updaterate 66
net_graph "1"
Started GET "/map/ranking/jump_4starters_a9/1" for 60.237.109.36 at 2012-08-11 12:43:59 +0900
Processing by MapController#ranking as HTML
Parameters: {"mapname"=>"jump_4starters_a9", "page"=>"1"}
Rendered map/ranking.html.erb within layouts/application (14.4ms)
Completed 500 Internal Server Error in 16ms
ActionController::RoutingError (No route matches {:controller=>"map", :action=>"ranking", :mapname=>"jump_4starters_a9", :page=>nil}):
app/views/kaminari/_paginator.html.erb:15:in `block (2 levels) in _app_views_kaminari__paginator_html_erb___212087042_93707060'
app/views/kaminari/_paginator.html.erb:13:in `block in _app_views_kaminari__paginator_html_erb___212087042_93707060'
app/views/kaminari/_paginator.html.erb:9:in `_app_views_kaminari__paginator_html_erb___212087042_93707060'
*** ./cacheable.rb.org 2012-08-11 16:41:54.000000000 +0900
--- ./cacheable.rb 2012-08-11 16:42:00.000000000 +0900
***************
*** 137,143 ****
def cache
cache = self.class.send :cache
cache_ids.each do |cache_id|
! cache[cache_id] = self
end