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
{ | |
"red": { | |
"50": "#ffebee", | |
"100": "#ffcdd2", | |
"200": "#ef9a9a", | |
"300": "#e57373", | |
"400": "#ef5350", | |
"500": "#f44336", | |
"600": "#e53935", | |
"700": "#d32f2f", |
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
// Instructions. Save as a bookmark. Click when on a repo or github.io (gh-pages branch) site. | |
javascript:(function(h,p){ | |
location = /io$/.test(h) ? | |
'https://github.com/' + h.split('.')[0] + p: | |
'http://'+ p.split('/')[1]+'.github.io'+ '/' + p.split('/').slice(2).join('/') | |
})(location.host,location.pathname); |
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
Deployment notes for Ubuntu Instance | |
Nginx, uwsgi, postgres, django, virtualenv stack | |
* ssh root | |
root access (need pem) | |
ssh -i whatever.pem ubuntu@ec2-*-*-*-*.compute-1.amazonaws.com | |
* secure box | |
- cut off all ports but 22 and 80 using AWS Management Console | |
- edit /etc/ssh/sshd_config ensure PasswordAuthentication no |
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
#!/usr/bin/env python | |
# encoding: utf-8 | |
from boto.s3.connection import S3Connection | |
AWS_ACCESS_KEY = '<aws access key>' | |
AWS_SECRET_KEY = '<aws secret key>' | |
AWS_BUCKET_NAME = '<aws bucket name>' | |
AWS_HEADERS = { | |
'Cache-Control':'max-age=31556926,public' | |
} |