Skip to content

Instantly share code, notes, and snippets.

@fzxu
fzxu / proxy.pac
Last active November 20, 2021 11:18
socks5
function FindProxyForURL(url, host)
{
return "SOCKS 192.168.86.88:12345";
}
@fzxu
fzxu / perf_test.py
Created December 11, 2015 22:15
Keystone revocation list key perf test
import time
import MySQLdb
import sys
import importlib
import datetime
def get_revocation_list(index_name, times=1):
db = MySQLdb.connect(host=dbc.IP, port=dbc.PORT, user=dbc.DB_USER,
passwd=dbc.DB_PASSWORD, db=dbc.DB_NAME)
db.autocommit(True)
@fzxu
fzxu / install_ruby_debug_1.9.3.sh
Created March 15, 2012 05:24
Install ruby-debug under Ruby 1.9.3 p125, my very first gitst
echo "Installing ruby-debug with ruby-1.9.3-p125 ..."
curl -OL http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem
curl -OL http://rubyforge.org/frs/download.php/75415/ruby-debug-base19-0.11.26.gem
gem install linecache19-0.5.13.gem ruby-debug-base19-0.11.26.gem -- --with-ruby-include=$rvm_path/src/ruby-1.9.3-p125/
rm linecache19-0.5.13.gem ruby-debug-base19-0.11.26.gem
echo "Done."