Skip to content

Instantly share code, notes, and snippets.

View PharaohKJ's full-sized avatar
👺
Ten-goods come on! Working from home

ふぁらお加藤 PharaohKJ

👺
Ten-goods come on! Working from home
View GitHub Profile
katoh$ ab -n 100 -c 10 http://blog.phalanxware.com/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking blog.phalanxware.com (be patient).....done
Server Software: nginx/1.4.4
Server Hostname: blog.phalanxware.com
katoh$ ab -n 1000 -c 100 http://blog.phalanxware.com/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking blog.phalanxware.com (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
apr_socket_recv: Connection timed out (110)
@PharaohKJ
PharaohKJ / gist:9701d26f42958f32c65e
Created June 10, 2014 11:09
archive_fix_file_only
git archive --format=zip --prefix=root/ HEAD `git diff --name-only HEAD HEAD^` -o archive.zip
% git clone https://github.com/keiko713/rails-todo.git
% cd rails-todo
% bundle install --without production
% foreman run bundle exec rake db:migrate
% foreman start
localhost:5000 で確認する。
# addgreether REMOTE_IP LOCAL_IP GRE_KEY LOCAL_SLICE_IP
ip link add gre1 type gretap remote ${1} local ${2} key ${3}
ip addr add ${4} dev gre1
ip link set gre1 up
ip link set gre1 mtu 1450
net_tools_deprecated_message () {
echo -n 'net-tools コマンドはもう非推奨ですよ?おじさんなんじゃないですか? '
}
arp () {
net_tools_deprecated_message
echo 'Use `ip n`'
}
ifconfig () {
net_tools_deprecated_message
@PharaohKJ
PharaohKJ / record_no_to_order.sql
Created August 29, 2014 11:06
行番号をorderカラムにする
SET @i := 0;
UPDATE `tablename` SET `order` = (@i := @i +1);
@PharaohKJ
PharaohKJ / gist:e0cf36931e64017e3d8e
Created October 28, 2014 05:31
installed_brew_packages.txt
[pharaohkj]$ brew list
ansible ctags gdbm libpng neon python scons
autoconf docker git-flow libtool nkf rabbitmq sqlite
bdw-gc etcd imagemagick libyaml node rbenv subversion17
bison etcdctl jmeter markdown openssl readline w3m
boot2docker fleetctl jpeg mosquitto pkg-config redis watch
c-ares freetype jq mysql pstree ruby-build wget
@PharaohKJ
PharaohKJ / gist:eb3fc5830ddf555a792d
Created December 8, 2014 10:20
base64ed_transparent1x1gif
data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
@PharaohKJ
PharaohKJ / gist:2f767d114f4fc6f0a2ee
Created December 8, 2014 10:20
base64ed_black1x1gif
data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=