This file contains 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
net_tools_deprecated_message () { | |
echo -n 'net-tools コマンドはもう非推奨ですよ?おじさんなんじゃないですか? ' | |
} | |
arp () { | |
net_tools_deprecated_message | |
echo 'Use `ip n`' | |
} | |
ifconfig () { | |
net_tools_deprecated_message |
This file contains 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
# 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 |
This file contains 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
% 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 で確認する。 |
This file contains 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
git archive --format=zip --prefix=root/ HEAD `git diff --name-only HEAD HEAD^` -o archive.zip |
This file contains 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
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) |
This file contains 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
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 |
This file contains 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
PS1="\\[\\033[32m\\][\\h: \\w]\\[\\033[0m\\]\\n\\u\\\$ " |
This file contains 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
# 外部からTCPポート10733番(Unity Asset Server接続)へのアクセスを許可 | |
-A Firewall-setting1-INPUT -m state --state NEW -m tcp -p tcp --dport 10733 -j ACCEPT |
This file contains 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
# プロンプトの設定 | |
PS1='\[\033[0;32m\w\[\033[0m\n[\u]\$ ' |
This file contains 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
tr -dc A-Za-z0-9_ < /dev/urandom | head -c 12 | xargs |