Skip to content

Instantly share code, notes, and snippets.

@byplayer
byplayer / load-path.el
Created February 29, 2012 13:21
load-path
(dolist (path load-path)
(message path))
@byplayer
byplayer / gist:1947612
Created March 1, 2012 05:44
wing gist
C:> netsh
> winhttp
> import proxy source=ie
@byplayer
byplayer / http_hack.txt
Created March 1, 2012 06:53
http_hack.txt
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も解析可能。
gem install heroku
heroku auth:login
heroku key:add
heroku apps:create htest100
heroku apps:info
g push heroku master
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
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
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
require 'io/console'
IO.console.noecho{|io| p io.gets}
@byplayer
byplayer / postgresql.sql
Created August 18, 2012 11:14
postgresql.sql
# change password
sql$ ALTER USER ユーザ名 WITH PASSWORD '新しいパスワード';
# show users
sql$ \du
# drop user
$ dropuser user_name
gpg --gen-key
gpg --list-keys
# ...
# pub 1024D/123ABC89 2011-09-27
# uid Carsten Nielsen
git config --global user.signingkey 123ABC89