Skip to content

Instantly share code, notes, and snippets.

@behboud
Created November 21, 2013 14:20
Show Gist options
  • Save behboud/7582295 to your computer and use it in GitHub Desktop.
Save behboud/7582295 to your computer and use it in GitHub Desktop.
find in files
Update your user, domain, and proxy information in cntlm.ini, then test your proxy with this command (run in your Cntlm installation folder):
sudo cntlm -c /etc/cntlm.conf -I -M http://www.google.de
It will ask for your password, and hopefully print your required authentication information, which must be saved in your cntlm.ini
Sample cntlm.conf:
Username user
Domain domain
# provide actual value if autodetection fails
# Workstation pc-name
Proxy my_proxy_server.com:80
NoProxy 127.0.0.*, 192.168.*
Listen 127.0.0.1:54321
Listen 192.168.1.42:8080
Gateway no
SOCKS5Proxy 5000
# provide socks auth info if you want it
# SOCKS5User socks-user:socks-password
# printed authentication info from the previous step
Auth NTLMv2
PassNTLMv2 98D6986BCFA9886E41698C1686B58A09
git config --global url.https://github.com/.insteadOf git://github.com/
find . -iname '*php' | xargs grep 'string' -sl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment