Skip to content

Instantly share code, notes, and snippets.

View djmitche's full-sized avatar

Dustin J. Mitchell djmitche

View GitHub Profile
upload: applet/$(TARGET).hex
perl -MDevice::SerialPort -e 'Device::SerialPort->new("/dev/ttyUSB0")->pulse_dtr_on(100);'
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH)
from zope.interface import Interface, implements
from twisted.python import components
class IFoo(Interface):
def snark():
"""snark"""
class Bar(object):
def poke(self):
print "POKE!"
close the output file if not assembling
restore-src/restore.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
I tested this both with a straight amrestore and with a compression pipeline.
Both worked without leaking FD's
Index: restore-src/restore.c
===================================================================
--- restore-src/restore.c (revision 2508)
hv = (HV *)sv_2mortal((SV *)newHV());
hv_store(hv, "template", 8,
template? newSVpv(template, 0) : &PL_sv_undef,
0);
import threading
from twisted.python import threadpool
from twisted.internet import threads
from twisted.trial import unittest
class t(unittest.TestCase):
def setUp(self):
self.pool = threadpool.ThreadPool(3, 5)
self.pool.start()
buildbot.broken_test.runs.test_status_push.HttpStatusPushTest.testNotFiltered ... NEW BUILDER <Builder ''dummy'' at 24222968>
STOPPING BUILDER <Builder ''dummy'' at 24222968> [<twisted.application.internet.TimerService instance at 0x171f3b0>]
STOPPED BUILDER <Builder ''dummy'' at 24222968> [<twisted.application.internet.TimerService instance at 0x171f3b0>]
child running? 0
Traceback (most recent call last):
Failure: twisted.trial.util.DirtyReactorAggregateError: Reactor was unclean.
DelayedCalls: (set twisted.internet.base.DelayedCall.debug = True to debug)
<DelayedCall 0x171fb90 [599.541477203s] called=0 cancelled=0 LoopingCall<600>(Builder.reclaimAllBuilds, *(), **{})()>
[ERROR]
=setupcache.....................ok
Amanda_Archive..................ok
Amanda_Changer..................ok
Amanda_Changer_compat...........ok
Amanda_Changer_disk.............ok
Amanda_Changer_multi............ok
Amanda_Changer_ndmp.............ok
Amanda_Changer_null.............ok
Amanda_Changer_rait.............ok
Amanda_Changer_robot............ok
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>My Google AJAX Search API Application</title>
<script src="http://www.google.com/jsapi?key=<***insert your key here***>" type="text/javascript"></script>
<script language="Javascript" type="text/javascript">
//<![CDATA[
google.load("search", "1");
var searcher;
from buildbot.clients import sendchange
class FakeSender:
send_args = []
def send(self, *args, **kwargs):
self.send_args[0] = (args, kwargs)
return defer.succeed(None)
@djmitche
djmitche / redheadphones - 14:08:35
Created June 18, 2011 21:15
#1992 investigation
2011-06-18 14:08:35-0700 [-] Log opened.
2011-06-18 14:08:35-0700 [-] twistd 8.2.0 (/Users/dustin/ve/bin/python 2.6.1) starting up.
2011-06-18 14:08:35-0700 [-] reactor class: twisted.internet.selectreactor.SelectReactor.
2011-06-18 14:08:35-0700 [-] Applying patch for http://twistedmatrix.com/trac/ticket/5079
2011-06-18 14:08:35-0700 [-] Creating BuildMaster -- buildbot.version: latest
2011-06-18 14:08:35-0700 [-] loading configuration from /Users/dustin/current2/master/master.cfg
2011-06-18 14:08:35-0700 [-] configuration update started
2011-06-18 14:08:35-0700 [-] /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/mail/smtp.py:10: exceptions.DeprecationWarning: the MimeWriter module is deprecated; use the email package instead
2011-06-18 14:08:35-0700 [-] applying SQLite workaround from Buildbot bug #1810
2011-06-18 14:08:35-0700 [-] before def thd(engine) in model.is_current