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/python 2.7 | |
from __future__ import print_function | |
from cmd import Cmd | |
from functools import partial | |
import readline | |
class Param(object): |
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/python 2.7 | |
from __future__ import print_function | |
from cmd import Cmd | |
from functools import partial | |
import readline | |
class CompleteParam(object): |
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
[== Running python tests ==] | |
Build operating on targets: OrderedSet([PythonTestSuite(tests/python/twitter/common/BUILD:all)]) | |
Failed to run test! | |
Traceback (most recent call last): | |
File "/home/rgs/d/commons/build-support/pants.venv/lib/python2.7/site-packages/twitter/pants/python/test_builder.py", line 204, in _run_python_test | |
builder = chroot.dump() | |
File "/home/rgs/d/commons/build-support/pants.venv/lib/python2.7/site-packages/twitter/pants/python/python_chroot.py", line 201, in dump | |
platforms=platforms) | |
File "/home/rgs/d/commons/build-support/pants.venv/lib/python2.7/site-packages/twitter/pants/python/resolver.py", line 109, in resolve_multi |
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
diff --git a/bin/zk-shell b/bin/zk-shell | |
old mode 100644 | |
new mode 100755 | |
index a95c494..0796739 | |
--- a/bin/zk-shell | |
+++ b/bin/zk-shell | |
@@ -1,6 +1,12 @@ | |
#!/usr/bin/env python | |
-from zk_shell.cli import CLI |
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
commit 0fced709be6924d15a3350999defc20420bbb801 | |
Author: Raul Gutierrez S <rgs@twitter.com> | |
Date: Tue Oct 7 09:58:16 2014 -0700 | |
Handle failed to open interface errors | |
Signed-off-by: Raul Gutierrez S <rgs@twitter.com> | |
diff --git a/zktraffic/base/sniffer.py b/zktraffic/base/sniffer.py | |
index 2106b8a..37cf5a6 100644 |
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
var getJSON = function(url, successHandler, errorHandler) { | |
var xhr = typeof XMLHttpRequest != 'undefined' | |
? new XMLHttpRequest() | |
: new ActiveXObject('Microsoft.XMLHTTP'); | |
xhr.open('get', url, true); | |
xhr.onreadystatechange = function() { | |
var status; | |
var data; | |
if (xhr.readyState == 4) { // `DONE` | |
status = xhr.status; |
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
var getJSON = function(url, successHandler, errorHandler) { | |
var xhr = typeof XMLHttpRequest != 'undefined' | |
? new XMLHttpRequest() | |
: new ActiveXObject('Microsoft.XMLHTTP'); | |
xhr.open('get', url, true); | |
xhr.onreadystatechange = function() { | |
var status; | |
var data; | |
if (xhr.readyState == 4) { // `DONE` | |
status = xhr.status; |
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
FB.login(function() { | |
FB.api('/me/feed', 'post', {message: 'Hello, world!'}); | |
}, {scope: 'publish_actions'}); |
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
python> k.get("/") | |
Sending request(xid=2): GetData(path='/', watcher=None) | |
Received Ping | |
Received Ping | |
Received Ping | |
...... | |
Received Ping | |
Received Ping | |
Received Ping | |
Reading for header ReplyHeader(xid=2, zxid=10197, err=0) |
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
at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:398) | |
at java.net.ServerSocket.implAccept(ServerSocket.java:530) | |
at java.net.ServerSocket.accept(ServerSocket.java:498) | |
at org.apache.zookeeper.server.quorum.QuorumCnxManager$Listener.run(QuorumCnxManager.java:539) |