Zhongde Liu

This is my personal "Clipboard" of web development stuff I come across


Leave a comment

How-To: proxy settings for gem

When you want to use gem (rubygems) behind a proxy, create a .gemrc file in your user home directory and add this line:

gem: --http-proxy http://proxy.host:1234
Advertisements


Leave a comment

How-to: Proxy setting for “Github for Windows”

For setting the proxy you need to edit a file named .gitconfig. This file should be located in your user folder, C:\Users\[xxxxx]\.gitconfig with [xxxxx] being your windows username.

In this file you need to add following lines, adapted to your proxy:

[http] 
proxy = http://proxy.example.com:8080 

[https] 
proxy = http://proxy.example.com:8080


2 Comments

How-To: npm behind a proxy

When you want to use npm (http://npmjs.org/), package manager for node, behind a proxy, pay attention that there are two parameters for setting up a proxy:

  1. proxy
  2. https-proxy

As https is the default protocol for fetching the packages from the npm repository you must set the second one.

Another workaround is to change the rep url into a http one.