If you download a different version it should work similarly.
cd ~
wget https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tgz
tar -xzvf Python-2.7.13.tgz
cd Python-2.7.13
./configure
make altinstall prefix=~/.local/
#!/bin/bash | |
# Run in go using - | |
# <exec command="bash"> | |
# <arg>-c</arg> | |
# <arg>curl -s https://gist.githubusercontent.com/hadisfr/57750e9ae05a57989f17742536f82ee3/raw/ansi-color-test.sh | bash</arg> | |
# </exec> | |
bash <( curl -s https://raw.githubusercontent.com/fidian/ansi/master/ansi) --color-table |
function svg2tex { | |
_addr=$(readlink -f $1) | |
inkscape -D -z --file=$_addr --export-pdf=${_addr/.svg/.pdf} --export-latex | |
} |
#!/bin/sh | |
/opt/cisco/anyconnect/bin/vpn -s << EOF | |
connect hosthere:porthere | |
usernamehere | |
passwordhere | |
exit | |
EOF |
find . -name *.cpp -exec bash -c 'cmp <(clang-format --style=LLVM $0) $0' {} \; |
Varnish is an HTTP accelerator and a useful tool for speeding up a server, especially during a times when there is high traffic to a site. It works by redirecting visitors to static pages whenever possible and only drawing on the virtual private server itself if there is a need for an active process.
[TOC]
Latest varnish version: 4.1.3
My typical setup for a development box in VirtualBox uses two NICs. The first uses NAT to allow the box to communicate with the outside world through my host computer’s network connection. (NAT is the default, so shouldn't require any setup.) The second is a "host-only" connection that allows my host and guest to interact.
To create a host-only connection in VirtualBox, start by opening the preferences in VirtualBox. Go to the "Network" tab, and addd a Host-only Network. Modify the host-only network, and disable DHCP. Make a note of the IP address. (Feel free to set the IP address as well, if you like.)
Next, assign this host-only adapter to the virtual machine. Select the VM and press "Settings". Go to the "Network" tab, and select "Adpater 2". Enable the adapter, set it to a "Host-only Adapter", and select the adpater you created above.