Skip to content

Instantly share code, notes, and snippets.

@prateekbhatt
prateekbhatt / gist:9522925
Created March 13, 2014 06:43
npm install -g — ERR! Please try running this command again as root/Administrator. [Solved]
sudo chown -R $USER /usr/local
@prateekbhatt
prateekbhatt / docker_error_workaround.sh
Created March 1, 2014 05:59
Docker Error: "/var/run/docker.sock: permission denied"
sudo chmod 777 /var/run/docker.sock
@prateekbhatt
prateekbhatt / npm-config-proxy.sh
Created February 9, 2014 17:56
Run NPM behind web proxy
# To apply proxy settings to npm,
# substitute your web proxy below,
# and run the commands in your shell
npm config set proxy http://proxy.com:8080
npm config set https-proxy http://proxy.com:8080
@prateekbhatt
prateekbhatt / virtual_env_tutorial.sh
Last active May 18, 2016 17:02
Install and run virtualenv with virtualenvwrapper on Ubuntu:
# Run the following command:
sudo apt-get install python-setuptools python-dev build-essential
# Install pip:
sudo apt-get install python-pip
@prateekbhatt
prateekbhatt / nodemon_enospc
Created January 11, 2014 09:58
FIX ERROR: [nodemon] exception in nodemon killing node Error: watch ENOSPC -> Run this command on your debian machine
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p