Skip to content

Instantly share code, notes, and snippets.

@bulain
bulain / git-http-proxy.sh
Created October 10, 2013 02:26
git http proxy
git config --global --get http.proxy
git config --global http.proxy http://proxy:port
@bulain
bulain / p4_commands.sh
Last active December 17, 2015 05:59
perforce commands
P4PORT=<port>
P4USER=<user>
P4PASSWD=<password>
P4CLIENT=<client>
P4IGNORE=<ignore>
P4DIFF=<diff>
P4EDITOR=<editor>
P4MERGE=<merge>
more client.txt | p4 client -i
@bulain
bulain / npm-http-proxy.sh
Created April 3, 2013 01:51
npm behind a proxy
npm config set proxy http://proxy:8080
npm config set https-proxy http://proxy:8080
@bulain
bulain / 32bit-exe-run-on-64bit-linux
Created March 21, 2013 14:30
32bit executable run on 64bit linux
sudo apt-get install ia32-libs
sudo apt-get install nspluginwrapper
@bulain
bulain / svn_http_proxy.sh
Created March 5, 2013 07:24
subversion update through http proxy
vim /etc/subversion/servers
http-proxy-host=proxy
http-proxy-port=8080
@bulain
bulain / apt_http_proxy.sh
Created March 5, 2013 07:22
apt update through http proxy
vim /etc/apt/apt.conf
Acquire::http::proxy "http://proxy:8080";
@bulain
bulain / linux_http_proxy.sh
Created March 5, 2013 07:22
linux through http proxy
vim /etc/profile.d/proxy.sh
export http_proxy=http://proxy:8080
export https_proxy=https://proxy:8080
@bulain
bulain / putty_key_pair.sh
Created February 27, 2013 03:57
putty login with key pair
ssh-keygen -t rsa -C "bulain@gmail.com"
cat id_rsa.pub >> ~/.ssh/authorized_keys
puttygen.exe generate bulain.ppk
@bulain
bulain / java_oom.sh
Created December 6, 2012 06:43
java OutOfMemoryError
#Kind of OOM
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Direct buffer memory
java.lang.OutOfMemoryError: unable to create new native thread
java.lang.OutOfMemoryError: PermGen space
java.lang.OutOfMemoryError: Requested array size exceeds VM limit
java.lang.OutOfMemoryError: <reason> <stack trace> (Native method)
#JVM options
-verbosegc -XX:+HeapDumpOnOutOfMemoryError
@bulain
bulain / full_search_ora.sql
Created November 8, 2012 09:25
full search in oracle
select * from all_source where text like 'ddl column';