MFA on Bastian Host: http://cloudacademy.com/blog/how-to-protect-your-server-with-multi-factor-authentication-on-aws/
This file contains hidden or 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
HZ=Z245WZOIPZHUKD | |
#aws route53 list-resource-record-sets --hosted-zone-id $HZ | |
#aws route53 list-hosted-zones | |
tryit(){ | |
DNSNAME=$1 | |
tmp=$(mktemp) | |
cat > $tmp << EOF | |
{ |
Memory load gen:
free -m
CPU load gen:
stress --cpu 2 --timeout 60
or
Specify cache control for S3 content origin. When new content is pushed to S3, it gets refreshed in the edge servers in an hour without having to invalidate the content.
aws $PROFILE s3 cp content s3://$BUCKET/ --recursive --exclude ".git/*" --cache-control max-age=3600
To invaliate all the static content in a CloudFront Distribution, use the pattern in the AWS Console.
- Born SysAdmin : http://vicendominguez.blogspot.com
- ReadTheDocs / Python - http://ericholscher.com/
- Graphite Installation : http://www.michael-noll.com/blog/2013/06/06/installing-and-running-graphite-via-rpm-and-supervisord/
- Kafka training : http://www.michael-noll.com/blog/2014/08/18/apache-kafka-training-deck-and-tutorial/
- Create Centos 7 AMI from scratch - http://blog.behance.net/dev/how-to-build-a-centos-7-ami-amazon-machine-image-from-scratch
AWS:
Install polipo and follow instructions from brew
brew install polipo
Using with wget
$ cat ~/.wgetrc
header = Accept-Language: en-us,en;q=0.5
yum install https://dl.bintray.com/mitchellh/vagrant/vagrant_1.7.2_x86_64.rpm
Reference:
pip install watchdog -U
watchmedo shell-command --patterns="*.py;*.html;*.css;*.js" --recursive --command='echo "${watch_src_path}" && kill -HUP `cat gunicorn.pid`' . &
python manage.py run_gunicorn 127.0.0.1:80 --pid=gunicorn.pid
Reference:
Use Virtualenvironment wrapper.
Installation.
$ cat requirements.txt
gunicorn
$ pip install -r requirements.txt