Skip to content

Commit

Permalink
Add git related files
Browse files Browse the repository at this point in the history
  • Loading branch information
lianhao committed Dec 10, 2015
0 parents commit fbbdd20
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
15 changes: 15 additions & 0 deletions git/.gitconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[core]
gitproxy = none for intel.com
gitproxy = git-proxy
editor = vim

[user]
name = Lianhao Lu
email = lianhao.lu@intel.com
[color]
ui = auto

[gitreview]
username = lianhao-lu
[http]
postBuffer = 52428800
19 changes: 19 additions & 0 deletions git/git-proxy
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh
# git proxy wrapper
# need to install nc first
# put this file in directories in $PATH

_proxy="<socks proxy>"
_proxyport="1080"

case $1 in
# Direct connect without proxy
*.intel.com|192.168.*|127.0.*|localhost|10.*)
METHOD="-X connect"
;;
*)
METHOD="-X 5 -x $_proxy:$_proxyport"
;;
esac

/bin/nc.openbsd $METHOD $*

0 comments on commit fbbdd20

Please sign in to comment.