Skip to content

Instantly share code, notes, and snippets.

👺
Ten-goods come on! Working from home

PharaohKJ PharaohKJ

👺
Ten-goods come on! Working from home
Block or report user

Report or block PharaohKJ

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ab_log__20140209-100_10
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
View ab_log_20140209_1000_100
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)
View gist:9701d26f42958f32c65e
git archive --format=zip --prefix=root/ HEAD `git diff --name-only HEAD HEAD^` -o archive.zip
View gist:bf712f9eb13abd9718b4
% 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 で確認する。
View addgreether.sh
# 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
View .bash_profile
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 Aug 29, 2014
行番号をorderカラムにする
View record_no_to_order.sql
SET @i := 0;
UPDATE `tablename` SET `order` = (@i := @i +1);
@PharaohKJ
PharaohKJ / gist:e0cf36931e64017e3d8e
Created Oct 28, 2014
installed_brew_packages.txt
View gist:e0cf36931e64017e3d8e
[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 Dec 8, 2014
base64ed_transparent1x1gif
View gist:eb3fc5830ddf555a792d
data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
View gist:2f767d114f4fc6f0a2ee
data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=
You can’t perform that action at this time.