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
22:41:54.444298 IP 192.168.100.101.51013 > nrt04s05-in-f18.1e100.net.https: Flags [S], seq 1497432669, win 65535, options [mss 1460,nop,wscale 4,nop,nop,TS val 946049109 ecr 0,sackOK,eol], length 0 | |
..C0Rw.85O]H..E..@d.@.@.....de..~..E..YA.].........C............. | |
8c.U........ | |
22:41:54.609915 IP nrt04s05-in-f18.1e100.net.https > 192.168.100.101.51013: Flags [S.], seq 1784227309, ack 1497432670, win 42540, options [mss 1360,sackOK,TS val 3615605143 ecr 946049109,nop,wscale 7], length 0 | |
.85O]H..C0Rw..E..<J.../.....~...de...EjY%.YA.^...,:......P... | |
....8c.U.... | |
22:41:54.609979 IP 192.168.100.101.51013 > nrt04s05-in-f18.1e100.net.https: Flags [.], ack 1, win 8256, options [nop,nop,TS val 946049273 ecr 3615605143], length 0 | |
..C0Rw.85O]H..E..4GK@.@.....de..~..E..YA.^jY%... @....... | |
8c...... | |
22:41:54.611008 IP 192.168.100.101.51013 > nrt04s05-in-f18.1e100.net.https: Flags [P.], seq 1:131, ack 1, win 8256, options [nop,nop,TS val 946049274 ecr 3615605143], length 130 |
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
# Custom Keymap for RubyMine (by fxn) | |
The keymap I work with, inspired by my past Emacs years, these are configurable | |
in Preferences -> Keymap. | |
Most of these have no conflict with the existing shortcuts, I use the default | |
keymap for Mac OS X and add these ones (an action can have several shortcuts). | |
To configure two strokes enter the first one in the main textfield (eg, C-g), | |
check "Second Stroke" and the second one there (eg, c). |
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
/* See Kobito.app/Contents/Resources/markdown.css for predefined style. */ | |
/* ~/Library/Containers/com.qiita.Kobito/Data/Library/Kobito/CSS/custom-style.css */ | |
* { | |
color:#333333; | |
font-family: Verdana, "游ゴシック", YuGothic, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; | |
line-height:180%; | |
} | |
body { | |
background:#FCFCFC; |
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
class A | |
class << self | |
def hoge | |
private_hoge | |
end | |
private | |
def private_hoge | |
p 'hoge' | |
end |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDRsDlX6xjn124oH5pXSUQUqspGBauRhpWRa8P0Caz1WegyJqi5xIvpjOpykaDqmQGAtLu9MoC5RAKyphHho0BiJ5r7w0uUq1FSKASXFB6zmjB70o3Nwzz7Gcfnm4takCHYlDrZZ0fRkDyhjWh/bGO1AHR/jZabHTukHZFP4FJYD271+hQUgr9V9XiYuEf9klz1gUgPUu//AGiqsWmznkPBAramx/fr8ZhDz2adkg2c3Nrvk+xv6mXyGm+o6amt9ISGVgOnBIpUOntvB0rG/i2mQ8tcvqVl4v/sMCInd4b6GrAvJPGBtCmWZyav+DuOhYEk8H6+sJRGs8QZKH2/d9Yl haruyama.makoto@O-03857-MAC.local |
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
class A | |
def method_missing(key, value = nil, *args, &block) | |
p "key: #{key}, value: #{value}" | |
end | |
end | |
A.new.hoge {} | |
A.new.hoge({}) |
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
clang -I/opt/boxen/rbenv/versions/2.1.2/include/ruby-2.1.0/ -I/opt/boxen/rbenv/versions/2.1.2/include/ruby-2.1.0/x86_64-darwin12.0 -I./ext/ruby_preload_test -L./ext/ruby_preload_test -L/opt/boxen/rbenv/versions/2.1.2/lib/ -lruby-static -framework CoreFoundation -Wall -o preload_test.dylib -dynamiclib ext/ruby_preload_test/ruby_preload_test.c | |
DYLD_FORCE_FLAT_NAMESPACE=1 DYLD_INSERT_LIBRARIES=./preload_test.dylib ruby -e 'puts 1' |
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
require 'optparse' | |
require 'yaml' | |
require 'erb' | |
require 'pp' | |
verbose = false | |
opt = OptionParser.new | |
opt.on('--verbose') {|v| verbose = v } | |
opt.parse!(ARGV) |
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
$ bundle exec which gem | |
/home/game/.rbenv/versions/haikanko/bin/gem | |
$ vim /home/game/.rbenv/versions/haikanko/bin/gem | |
+ require 'rbtrace' | |
rbtrace -p $(ps -ef | grep -v grep | grep gem | awk '{print $2}') --firehose | grep Gem |
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
% grep query log | lltsv -k sum,count,mean,query -K | |
0.228929 232 0.000987 SELECT id, content, is_private, created_at, updated_at FROM memos WHERE user=? AND is_private=0 ORDER BY created_at | |
1.051638 550 0.001912 SELECT * FROM memos WHERE is_private=0 ORDER BY created_at DESC, id DESC LIMIT ? | |
0.112710 217 0.000519 SELECT id, username, password, salt FROM users WHERE username=? | |
0.521563 1713 0.000507 SELECT * FROM users WHERE id=? | |
0.244834 217 0.001128 SELECT id, content, is_private, created_at, updated_at FROM memos WHERE user=? ORDER BY created_at DESC | |
0.174648 217 0.000805 INSERT INTO memos (user, content, is_private, created_at) VALUES (?, ?, ?, now()) | |
8.346507 1163 0.008119 SELECT count(*) AS c FROM memos WHERE is_private=0 | |
0.268414 117621 0.000261 SELECT username FROM users WHERE id=? | |
42.714127 613 0.069680 SELECT * FROM memos WHERE is_private=0 ORDER BY created_at DESC, id DESC LIMIT ? OFFSET ? |