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
dcramer:buildbox in ~/Development/buildbox on git:master | |
$ python -m timeit '(True and "pass")' | |
10000000 loops, best of 3: 0.0512 usec per loop | |
dcramer:buildbox in ~/Development/buildbox on git:master | |
$ python -m timeit '(True and "pass")' | |
10000000 loops, best of 3: 0.049 usec per loop | |
dcramer:buildbox in ~/Development/buildbox on git:master | |
$ python -m timeit '(True and "pass")' |
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
$ pip install --help | |
Usage: | |
pip install [options] <requirement specifier> ... | |
pip install [options] -r <requirements file> ... | |
pip install [options] [-e] <vcs project url> ... | |
pip install [options] [-e] <local project path> ... | |
pip install [options] <archive url/path> ... | |
Description: |
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
Jenkins EC2 plugin should not re-render sensitive values: | |
- access key | |
- secret key | |
- private key |
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
def Enum(): | |
class GettattrDefaultDict(defaultdict): | |
def __getattr__(self, name): | |
return self[name] | |
return GettattrDefaultDict(iter(xrange(sys.maxint)).next) | |
Status = Enum() |
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
searching for changes | |
new remote heads on branch '0.7-split' | |
new remote head cbf3626ac582 | |
abort: push creates new remote head cbf3626ac582 on branch '0.7-split'! | |
(did you forget to merge? use push -f to force) |
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
searching for changes | |
new remote heads on branch '0.7-split' | |
new remote head cbf3626ac582 | |
abort: push creates new remote head cbf3626ac582 on branch '0.7-split'! | |
(did you forget to merge? use push -f to force) |
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
Stacktrace (most recent call last): | |
File "/home/build/phabricator/src/applications/conduit/controller/PhabricatorConduitAPIController.php", line 38, in processRequest | |
$call = new ConduitCall($method, $params); | |
File "/home/build/phabricator/src/applications/conduit/call/ConduitCall.php", line 19, in __construct | |
$this->handler = $this->buildMethodHandler($method); | |
File "/home/build/phabricator/src/applications/conduit/call/ConduitCall.php", line 100, in buildMethodHandler | |
$application = $method->getApplication(); | |
File "/home/build/phabricator/src/applications/chatlog/conduit/ConduitAPI_chatlog_Method.php", line 9, in getApplication | |
return PhabricatorApplication::getByClass('PhabricatorApplicationChatlog'); |
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
class EverythingCollector(Collector): | |
""" | |
More or less identical to the default Django collector except we always | |
return relations (even when they shouldnt matter). | |
""" | |
def collect(self, objs, source=None, nullable=False, collect_related=True, | |
source_attr=None, reverse_dependency=False): | |
new_objs = self.add(objs) | |
if not new_objs: | |
return |
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
txagent (python module) | |
resources/ (various things, like upstart conf) | |
Need to: | |
- install txagent into python site-packages (taken care of) | |
- put resource data files in arbitrary place or something (they're not required by txagent itself) |
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
Traceback (most recent call last): | |
File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner | |
self.run() | |
File "/var/lib/jenkins/workspace/tests-and-coverage/env/lib/python2.7/site-packages/paramiko/agent.py", line 116, in run | |
self._communicate() | |
File "/var/lib/jenkins/workspace/tests-and-coverage/env/lib/python2.7/site-packages/paramiko/agent.py", line 126, in _communicate | |
events = select([self._agent._conn, self.__inr], [], [], 0.5) | |
TypeError: argument must be an int, or have a fileno() method. |