(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| #!/usr/bin/env python | |
| ''' | |
| This is a high level basic example of roles | |
| ''' | |
| from fabric.api import * | |
| @task | |
| def load_hosts(region='region'): |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| import requests | |
| import time | |
| import json | |
| token = '' | |
| #Delete files older than this: | |
| ts_to = int(time.time()) - 30 * 24 * 60 * 60 | |
| def list_files(): |
| #!/bin/bash | |
| # | |
| # Restart Bluetooth Module on Mac OS X | |
| # | |
| # Requires Blueutil to be installed: http://brewformulas.org/blueutil | |
| BT="/usr/local/bin/blueutil" | |
| log() { | |
| echo "$@" |
| #!/usr/bin/python | |
| # | |
| # git-slim | |
| # | |
| # Remove big files from git repo history. | |
| # | |
| # Requires GitPython (https://github.com/gitpython-developers/GitPython) | |
| # | |
| # References: | |
| # - http://help.github.com/remove-sensitive-data/ |