View this code at http://livecoding.io/5589138
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
| # Networking - create a local network instead of using eth/wlan | |
| which tunctl || sudo apt-get install uml-utilities | |
| ifconfig tap0 || sudo tunctl -u `whoami` | |
| sudo ifconfig tap0 192.168.42.2 up | |
| sudo iptables -I POSTROUTING -s 10.0.0.0/24 -j MASQUERADE -t nat | |
| SERVICE_HOST=192.168.42.2 | |
| HOST_IP=192.168.42.2 | |
| FLAT_INTERFACE=tap0 |
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
| #!/usr/bin/env python | |
| # based on http://journal.paul.querna.org/articles/2010/09/24/cassandra-token-selection/ | |
| import sys | |
| RING_SIZE = 2**127 | |
| def token(x, n): | |
| return RING_SIZE / n * x |
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
| diff --git a/plugins/inventory/nova.py b/plugins/inventory/nova.py | |
| index 227ccdb..b072815 100755 | |
| --- a/plugins/inventory/nova.py | |
| +++ b/plugins/inventory/nova.py | |
| @@ -178,14 +178,15 @@ if len(sys.argv) == 2 and (sys.argv[1] == '--list'): | |
| # Cycle on servers | |
| for f in client.servers.list(): | |
| # Define group (or set to empty string) | |
| - group = f.metadata['group'] if f.metadata.has_key('group') else 'undefined' | |
| - |
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
| description "site" | |
| start on runlevel [2] | |
| stop on runlevel [016] | |
| console owner | |
| respawn | |
| script |
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
| --- | |
| - name: push / deploy a local git repo | |
| hosts: all | |
| user: jesse | |
| tasks: | |
| # ensure git exists and deploy branch has our current HEAD | |
| - command: git init --bare /tmp/repo_mirror creates=/tmp/repo_mirror | |
| - command: git push -f ${ansible_ssh_user}@${inventory_hostname}:/tmp/repo_mirror HEAD:deploy | |
| connection: local |
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
| (ns threed.core | |
| (:use [scad-clj.scad]) | |
| (:use [scad-clj.model])) | |
| (centering! false) | |
| (defn lego-single | |
| [] | |
| (difference | |
| (union |
I'm working on it here: https://www.massdrop.com/ext/ergodox/?referer=VTLDKC&hash=67436dcb8135633580e3c919b58b6e39
start with qwerty, add some media keys and move alt to bottom of thumb row
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
| commit 45f8b56d252df8b9f7b6209068e1eddd2f6fee2b | |
| Author: jesse andrews <anotherjesse@gmail.com> | |
| Date: Fri Feb 10 10:57:28 2017 -0800 | |
| add proxy to 5000 | |
| diff --git a/package.json b/package.json | |
| index 492dd54..39797a7 100644 | |
| --- a/package.json | |
| +++ b/package.json |