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 boto.s3.connection import S3Connection as Connection | |
import sys,time,threading | |
### Example Usage: | |
# python copy_buckets.py MY_S3_KEY MY_S3_PWD mybucket1 mybucke2 devdemo demo | |
# | |
# This will copy https://mybucket1.s3.amazonaws.com/devdemo/* to https://mybucket2.s3.amazonaws.com/demo/* | |
# | |
# Note: the source and destination buckets can be the same bucket |
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 | |
# vim:ft=python | |
config = { | |
"server": { | |
# The port that the edit server listens at | |
"port": 8888 | |
}, | |
"environment": { | |
# An array stores the parameters that needed to launch your text editor. |
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
" Bare bones vim settings | |
"========================= | |
" This file can be used on a remote server that you don't have a home directory. | |
" Simple do the following on the server: | |
" | |
"$ curl https://raw.github.com/kamykaze/dotfiles/master/_vimrc_bare -o /tmp/_vimrc | |
" | |
" This might work if you don't have a .vim/ or .viminfo in the current user's | |
" home directory | |
" |
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 | |
import sys, getopt | |
from premailer import Premailer | |
############################# | |
# Compiles html email for delivery | |
# usage: | |
# python compile_email.py -i template.html -o compiled.html -b http://www.mydomain.com/static/ | |
# |