Backup & Restore MySQL <-> AWS S3
Based on https://gist.github.com/2206527 this script loops through databases and tables and creates individual files that are uploaded to S3.
Note: This behavior has changed in Tornado 4.1
python yield_all.py will produce results similar to:
$ python run_all.py one is sleeping two is sleeping
When working with forks & branches for features and pull requests I often find myself needing common actions, like
Below are the scripts to do just that.
Doing a proper version release requires documenting all the things you've changed. Frequently
CHANGELOG.md is used for these purposes.
Unless you are maintaining that file throughout the changes it can become a hassle. Luckily you can leverage GitHub's issue tracking and PR system to manage that for you. If you use GitHub's milestones like you would versions then you have all the data there for you. However, you're stil left with the collection and formatting of the changes.
The script below automatically grabs that data for you and creates a markdown output. I've been successfully using it for our Kingpin project for several releases. Here's the sample use:
$ ./get_changelog Nextdoor/kingpin 0.2.0 ## Version 0.2.0 * #174: Add actor 'initialization context' support. ([@diranged])
The two functions (
mkvin) in this gist allow for a quick way to create end activate python's virtual environments
mkvin will create a new virtual environment in
$HOME/virtualenvironments directory with the name of the directory you're in.
[mikhail@MadRussian git]$ mkdir projectzero [mikhail@MadRussian git]$ cd projectzero [mikhail@MadRussian projectzero]$ mkvin