I hereby claim:
- I am notmyname on github.
- I am notmyname (https://keybase.io/notmyname) on keybase.
- I have a public key whose fingerprint is 6A86 657F C8CF 99F7 8D8C C86A F0E7 F736 6D92 3037
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
One time only (or whenever you change the graph definition), run build_page.py from | |
<https://github.com/notmyname/gate_status>. This creates simple_graph_url, a graphite URL to | |
generate the gate status graph. Then create grab_gate_image.sh somewhere in your $PATH and add | |
the cronjob. Finally add an image to GeekTool to load /tmp/gate_graph.png and set it to | |
refresh as often as you run the cronjob. I added the image at 80% opacity. | |
grab_gate_image.sh | |
------------------ | |
#!/bin/sh |
def foo(): | |
print 'in foo' | |
yield 'bar' | |
x = foo() | |
print 'start' | |
for i in x: | |
print i | |
print 'done' |
#!/usr/bin/env python | |
# | |
# An commit-msg hook script that parses commit message tags and does stuff. | |
# | |
# | |
""" | |
==== | |
Tags |
#!/usr/bin/env python | |
from httplib import HTTPConnection as Connection | |
import time | |
import sys | |
# send data | |
conn = Connection('saio:8080') # example.com:8090 | |
conn.request('GET', '/v1/AUTH_test/c/big', headers={}) | |
resp = conn.getresponse() |
function processLine(e) { | |
var line = e.target; | |
switch (line.getAttribute("_type")) { | |
case "reply": | |
case "topic": | |
var textnode = line.lastChild.firstChild; | |
if (textnode.nodeValue.substr(1, 5) == "opic:" || | |
textnode.nodeValue.indexOf("has set topic:") >= 0) { | |
var newdiv = document.createElement("div"); | |
newdiv.setAttribute("id", "thetopic"); |
$ git config --list | |
credential.helper=osxkeychain | |
user.name=John Dickinson | |
user.email=me@not.mn | |
color.ui=always | |
alias.st=status | |
alias.ci=commit | |
alias.co=checkout | |
alias.staged=diff --cached | |
alias.unstaged=diff |
diff --git a/doc/source/overview_replication.rst b/doc/source/overview_replication.rst | |
index 2db17d5..4d3803a 100644 | |
--- a/doc/source/overview_replication.rst | |
+++ b/doc/source/overview_replication.rst | |
@@ -2,48 +2,118 @@ | |
Replication | |
=========== | |
-Since each replica in swift functions independently, and clients generally require only a simple majority of nodes responding to consider an operation successful, transient failures like network partitions can quickly cause replicas to diverge. These differences are eventually reconciled by asynchronous, peer-to-peer replicator processes. The replicator processes traverse their local filesystems, concurrently performing operations in a manner that balances load across physical disks. | |
- |
def foo(x, y=None, *a, **kw): | |
print '%r, %r, %r, %r' % (x, y, a, kw) | |
foo(1) | |
foo(1, 2) | |
foo(1, 2, 3, 4, 5, bar=6) | |
foo(1, 2, y=3) # want: 1, 3, (2,), {} |
john@openslice:~/swift$ rm -r .tox | |
john@openslice:~/swift$ tox | |
____________________________________________________________________ [tox sdist] _____________________________________________________________________ | |
[TOX] ***creating sdist package | |
[TOX] /home/john/swift$ /usr/bin/python setup.py sdist --formats=zip --dist-dir .tox/dist >.tox/log/0.log | |
[TOX] ***copying new sdistfile to '/home/john/.tox/distshare/swift-1.7.3.zip' | |
Traceback (most recent call last): | |
File "/usr/local/bin/tox", line 9, in <module> | |
load_entry_point('tox==1.3', 'console_scripts', 'tox')() | |
File "/usr/local/lib/python2.6/dist-packages/tox/_cmdline.py", line 19, in main |