Original: http://www.shadowandy.net/2012/03/asus-rt-n66u-tomatousb-firmware-flashing-guide.htm
#!/usr/bin/env python | |
''' | |
Support for deploying an application | |
''' | |
# Import python libs | |
import os | |
import argparse | |
import re | |
import logging | |
import tempfile |
sudoer-amazing: | |
file.append: | |
- name: /etc/sudoers | |
- text: | |
- "ydavid ALL=(ALL) NOPASSWD: ALL" | |
sudoer-defaults: | |
file.append: | |
- name: /etc/sudoers | |
- text: |
#!/bin/bash | |
# a post-receive hook for git servers to tar the current repo and send to s3 for backup | |
# save as 'post-receive' and put it in .git/hooks of desired repo(s), chmod +x | |
# assumes you have the s3cmd program installed and configured (sudo apt-get install s3cmd) | |
echo "thanks for the push. have a nice day." | |
# configure your S3BUCKET name, the rest should be automatic |
lang en_US | |
langsupport en_US | |
keyboard us | |
timezone Etc/UTC | |
text | |
install | |
skipx | |
halt | |
# Ridiculous URL... I know... |
#!/bin/bash | |
# [Purpose] | |
# execute a command on remote servers | |
# note: we are basically rolling our own pssh here, without the parallelism | |
#Example: command.sh -tv -c "date" server1 special@server2 server3 | |
# command.sh -tv -c "date" -i key.pem -l "user" server1 special@server2 server3 | |
# command.sh -tv -i key.pem server2 server3 < get_date.sh | |
# command.sh -tbv -l cap -i ~/keys/cap.pem ${app_[@]} < build.sh |
#!/bin/bash | |
# [Purpose] | |
# execute a command on remote servers | |
# note: we are basically rolling our own pssh here, without the parallelism | |
#Example: command.sh -tv -c "date" server1 special@server2 server3 | |
# command.sh -tv -c "date" -i key.pem -l "user" server1 special@server2 server3 | |
# command.sh -tv -s get_date.sh -i key.pem server2 server3 | |
# command.sh -tbv -s build.sh -l cap -i ~/keys/cap.pem ${app_[@]} |
Hi. My name is Sadayuki "Sada" Furuhashi. I am the author of the MessagePack serialization format as well as its implementation in C/C++/Ruby.
Recently, MessagePack made it to the front page of Hacker News with this blog entry by Olaf, the creator of the Facebook game ZeroPilot. In the comment thread, there were several criticisms for the blog post as well as MessagePack itself, and I thought this was a good opportunity for me to address the questions and share my thoughts.
To the best of my understanding, roughly speaking, the criticisms fell into the following two categories.
#!/usr/bin/env python | |
import boto | |
from boto.route53.record import ResourceRecordSets | |
import logging | |
conn = boto.connect_ec2() | |
DNS_EXCLUSION_TAG = 'ExcludeFromDNS' # If this tag exists on an instance, no DNS values will be populated | |
DNS_TAGS = ['ShortName', 'Name'] # This is the list of instance tags we want to populate DNS entries from | |
DNS_SUFFIX = 'YOUR_SUBDOMAIN_HERE' # Suffix under which to create DNS records | |
ROUTE53_ZONE_ID = 'YOUR_ZONE_ID_HERE' # The zone id from route53 of the zone we will be adding these entries under |
Wes Winham [email protected]
There are many tutorials floating around the web that almost get you a dynamic VPN in EC2. The goal of this tutorial is to be a one-stop-shop for this specific setup.