Skip to content

Instantly share code, notes, and snippets.

@phumpal
Last active December 17, 2015 04:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phumpal/5551456 to your computer and use it in GitHub Desktop.
Save phumpal/5551456 to your computer and use it in GitHub Desktop.
When pyyaml.org is down my VM builds containing @rvm #fail. I have a VM running a barebones Nginx on 192.168.1.214
/private/etc/hosts
192.168.1.214 pyyaml.org
Flush DNS Cache OSX 10.6.8
sudo dscacheutil -flushcache
mkdir -p /var/www/download/libyaml
wget -P /var/www/download/libyaml http://pkgs.fedoraproject.org/repo/pkgs/libyaml/yaml-0.1.4.tar.gz/36c852831d02cf90508c29852361d01b/yaml-0.1.4.tar.gz
/etc/nginx/sites-enabled/yaml.conf
server {
listen 80;
location / {
root /var/www;
}
}
service nginx restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment