git behind corporate proxy

If you have trouble cloning github repository from your company’s PC. Then you need to set-up Git for additional configuration to go through corporate proxy.

For windows:

You need to download and install git client in windows PC. (GitBash)

For Mac

You can use Terminal. Git is pre-installed.

open Gitbash or Terminal and enter the following command

git config –global http.proxy ‘http://<domain name>\<user id>:<password>@<proxy server>:proxy port’

git config –global https.proxy ‘http://<domain name>\<user id>:<password>@<proxy server>:proxy port’

If your password contains special characters, the you need to use escape characters.

E.g if your password contains ‘@’ symbol then ‘@’ needs to be replaced with ‘%40’

node.js – npm behind corporate proxy

If you have trouble running npm behind a corporate proxy which uses a domain, username, password combination, then you can do the following steps to fix it.

Corporate Proxy Rules

User: <Domain name>\<user id>

Password: <Password>

Proxy-ip: ip address or domain name of proxy server

Proxy-port: Port of the proxy ip.

Pre-requisite:

Node.js should be installed.

Steps:

Open Command prompt (WIndows PC)/ Terminal (Mac)

type in the following command

npm config set proxy=http://<Domain name>%5C<user id>:<Password>@<Proxy-ip>:<Proxy port>

npm config set https-proxy=http://<Domain name>%5C<user id>:<password>@<proxy-ip>:<proxy port>

Important steps: Open .npmrc file and validate the settings. Sometime npm will update your password with escape characters. If you see any discrepancy, go ahead and make changes directly in the file.

The file is located under

for windows: c:\Users\<user id>\.npmrc

for mac

type cd ~

This will be user directory.

Word of caution:

npm does not like special characters in the password like ‘-‘, ‘#’, ‘$’ etc. ┬áIf your corporate policy mandates you to have special characters in password, then safely choose ‘@’

Secure your Ip address with Hotspot Shield

If you are looking for a solution where you want to have some privacy on the Ip-address of your PC/Laptop. Then Hotspot Shield is your best solution.

http://www.hotspotshield.com/en

Following are the benefits of using Hotspot Shield.

  1. Protect your Ip address so that any anonymous user cannot find it.
  2. You can morph your ipaddress with the one in USA or UK.
  3. Byepass firewall.

Before using the Hotspotshield following were my systems / internet details.

img1

After enabling Hotspot Shield the country is changed as well as ipaddress.

hotspot1

The best purpose of this tool will be:

Let say you are working in USA for some reason you are travelling out of your home country and if there are any USA specific websites which you want to access , then Hotspot Shield is your best bet.