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 -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - | |
echo 'deb https://deb.nodesource.com/node_8.x trusty main' | sudo tee /etc/apt/sources.list.d/nodesource.list | |
echo 'deb-src https://deb.nodesource.com/node_8.x trusty main' | sudo tee -a /etc/apt/sources.list.d/nodesource.list | |
sudo apt-get update | |
sudo apt-get install --yes nodejs |
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
# Thin serving Rails. | |
upstream app_server { | |
server 127.0.0.1:3050 fail_timeout=0; | |
} | |
# SSL/TLS certificates - the key should be 4096 bit generated with: 'openssl genrsa -des3 -out server.key 4096' | |
ssl_certificate_key /var/app/deploy/www.thisisatest.com.key; | |
ssl_certificate /var/app/deploy/www.thisisatest.com.chained.crt; | |
# Ideally we'd have only TLSv1.2, but that compromises client support significantly |
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
# From https://launchpad.net/~ansible/+archive/ubuntu/ansible | |
sudo apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 6125E2A8C77F2818FB7BD15B93C4A3FD7BB9C367 | |
echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu xenial main" | sudo tee /etc/apt/sources.list.d/docker.list | |
echo "deb-src http://ppa.launchpad.net/ansible/ansible/ubuntu xenial main" | sudo tee /etc/apt/sources.list.d/docker.list | |
sudo apt-get update | |
sudo apt-get install ansible |
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
We’re looking for a Senior Front-End Dev or Front-End Architect or Javascript Wrangler for Stax. | |
Stax helps massive companies manage AWS. We’re a pretty good small team (8) funded out of a consulting company. Been building | |
for about 9 months, startup feel blah blah blah. | |
Front-end stack is React+Relay+GraphQL, lots of data viz which at the moment is mostly Plotly but will move in the direction | |
of bespoke SVG and D3 as it evolves. So if you like that sort of work we should talk. Also all the usual complex web app | |
things to wrestle with. Back-end is Ruby+Rails(ish)+Postgres+Redshift. | |
This person would be taking leadership of the whole front-end and making sure we’re doing things good, working closely with |
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
# nginx will only re-resolve a hostname for a proxy if it's a variable | |
set $feedback "FEEDBACK"; | |
resolver RESOLVER; # set from $(grep nameserver /etc/resolv.conf | head -1 | awk '{ print $2; }') | |
location / { | |
proxy_pass http://$feedback; | |
proxy_set_header Host $http_host; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header X-Forwarded-Ssl on; | |
proxy_redirect off; |
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
# Install node (for brunch) | |
curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - | |
echo 'deb https://deb.nodesource.com/node_4.x trusty main' | sudo tee /etc/apt/sources.list.d/nodesource.list | |
echo 'deb-src https://deb.nodesource.com/node_4.x trusty main' | sudo tee -a /etc/apt/sources.list.d/nodesource.list | |
sudo apt-get update | |
sudo apt-get install --yes nodejs | |
# Install erlang and elixir | |
wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb &&\ | |
sudo dpkg -i erlang-solutions_1.0_all.deb &&\ |
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 | |
# Attempts to fast-forward the current local branch to its remote tracked branch. | |
# Safely refuses if there is no remote tracking, or if a fast-forward is not possible. | |
# @author Paul Annesley | |
if [ -n "$(git merge --ff-only 2>&1 | grep 'unknown option')" ]; then | |
echo "Your git doesn't seem to support --ff-only... try git 1.7+" | |
exit 1 | |
fi |
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
VBoxManage startvm greenstein --type headless |
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
rsync -avzhr --delete 2012/ daveslutzkin@Shakespeare.local:/Volumes/Moozaic/New-Music/Music/2012 |
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
for full_username in `aws iam list-users | jq '.Users[].UserName'` | |
do | |
username=`echo $full_username | tr -d '"'` | |
echo $username \\t groups `aws iam list-groups-for-user --user-name $username | jq '.Groups[].GroupName' | tr '\n' ',' | tr -d '"'` \\t policies `aws iam list-attached-user-policies --user-name $username | jq '.AttachedPolicies[].PolicyName' | tr '\n' ',' | tr -d '"'` | |
done |
NewerOlder