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
| #!/usr/bin/env ruby | |
| # This update hook enforces the following policies | |
| # 1) release and master branches are fast-forward only | |
| # 2) feature branches cannot contain merges | |
| $refname = ARGV[0] | |
| $oldrev = ARGV[1] | |
| $newrev = ARGV[2] |
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
| gpg --gen-key | |
| gpg --list-keys | |
| # ... | |
| # pub 1024D/123ABC89 2011-09-27 | |
| # uid Carsten Nielsen | |
| git config --global user.signingkey 123ABC89 |
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
| # change password | |
| sql$ ALTER USER ユーザ名 WITH PASSWORD '新しいパスワード'; | |
| # show users | |
| sql$ \du | |
| # drop user | |
| $ dropuser user_name |
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 'io/console' | |
| IO.console.noecho{|io| p io.gets} |
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
| File.open('Gemfile', 'r') do |f| | |
| f.each_line do |line| | |
| items = line.split(' ') | |
| gem_name = items[0] | |
| version = nil | |
| if items[1] =~ /\(([0-9\.]+)/ | |
| version = $1 | |
| 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
| curl https://raw.github.com/byplayer/phpenv/master/bin/phpenv-install.sh | sh | |
| # add .zshrc | |
| export PATH="/Users/dataich/.phpenv/bin:$PATH" | |
| eval "$(phpenv init -)" | |
| # php build | |
| git clone https://[email protected]/byplayer/php-build.git | |
| cd php-build |
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
| gem install linecache19 -- --with-ruby-include==$rvm_path/src/ruby-1.9.2-p290/ | |
| bundle install --path .bundle | |
| berake db:migrage | |
| berake test | |
| berake spec |
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
| gem install heroku | |
| heroku auth:login | |
| heroku key:add | |
| heroku apps:create htest100 | |
| heroku apps:info | |
| g push heroku master |
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
| Burp Suite | |
| http://portswigger.net/burp/download.html | |
| Javaで作られた透過プロキシ | |
| Strace + HTTPREPLAY | |
| http://blogs.technet.com/b/jpieblog/archive/2009/05/26/3245463.aspx | |
| Windows向け、MS製 | |
| デフォルトで、IE向けのバッチが準備されているが、ソケット系DLLのメソッドを置き換えて | |
| 処理を抽出してくれるので、コマンドを変更すれば、FFやchromeも解析可能。 |
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
| C:> netsh | |
| > winhttp | |
| > import proxy source=ie |