This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Creates an SSH key on a client machine, applies the appropriate file permissions, | |
# copies to the local ~/.ssh directory, & copies to specified server | |
# | |
# parameters: | |
# ..1 newKeyFileName | |
# ..2 user@server | |
# | |
# usage : |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
version=1.7.7.2 | |
wget http://openresty.org/download/ngx_openresty-${version}.tar.gz | |
tar zxf ngx_openresty-${version}.tar.gz | |
cd ngx_openresty-${version} | |
./configure --with-luajit \ | |
--sbin-path=/usr/sbin/nginx \ | |
--conf-path=/etc/nginx/nginx.conf \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TODO | |
implement security measures | |
git config | |
config files | |
full sublimetext config | |
set up openvpn | |
rdesktop and network drive to terra | |
set up evolution | |
RStudio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add to nginx.conf http section | |
map $http_upgrade $connection_upgrade { | |
default upgrade; | |
'' close; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
version="2.6.3" | |
priority="20603" | |
sudo mkdir -p /var/redis /var/log/redis | |
curl -sL http://redis.googlecode.com/files/redis-${version}.tar.gz | tar zx | |
cd redis-${version}/ | |
make | |
sudo make PREFIX=/usr/local/redis/${version} install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl -I http://some.local.app.dev/?return=402 | |
HTTP/1.1 402 Payment Required | |
Server: nginx/1.2.2 | |
Date: Fri, 27 Jul 2012 19:08:19 GMT | |
Content-Type: text/html | |
Content-Length: 182 | |
Connection: keep-alive | |
Keep-Alive: timeout=10 |