Skip to content

Instantly share code, notes, and snippets.

@seankelly
seankelly / ttystrip.c
Created March 24, 2011 03:04
ttystrip
We couldn’t find that file to show.
@seankelly
seankelly / ttystrip.c
Created March 24, 2011 03:06
ttystrip
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#define BUFSIZE 8192
diff -u a/librodney.pm b/librodney.pm
--- a/librodney.pm 2011-06-08 11:28:00.000000000 -0500
+++ b/librodney.pm 2011-07-19 22:46:56.565164456 -0500
@@ -3,6 +3,8 @@
use diagnostics; # For development
+use Math::Expression::Evaluator;
+use Try::Tiny;
use POSIX qw( strftime );
@seankelly
seankelly / buildslave.py
Last active December 14, 2015 05:19 — forked from Jc2k/buildslave.py
@defer.inlineCallbacks
def _soft_disconnect(self, fast=False):
if self.build_wait_timeout < 0:
yield AbstractBuildSlave.disconnect(self)
return
if self.missing_timer:
self.missing_timer.cancel()
self.missing_timer = None
TAEB::World::Tile::at_direction('TAEB::World::Tile=HASH(0x80bf98078)', undef) called at lib/TAEB/World/Level.pm line 229
TAEB::World::Level::at_direction('TAEB::World::Level=HASH(0x80bc95b58)', undef) called at lib/TAEB/Action/Role/Direction.pm line 18
TAEB::Action::Role::Direction::__ANON__('TAEB::Action::Move=HASH(0x80cb84900)') called at reader TAEB::Action::Move::target_tile (defined at lib/TAEB/Action/Role/Direction.pm line 19) line 6
TAEB::Action::Move::target_tile('TAEB::Action::Move=HASH(0x80cb84900)') called at lib/TAEB/Action/Role/Direction.pm line 58
Class::MOP::Class:::around('CODE(0x809f677c8)', 'TAEB::Action::Move=HASH(0x80cb84900)') called at /home/sean/.perlbrew/libs/perl-5.16.3@beat/lib/perl5/amd64-freebsd/Class/MOP/Method/Wrapped.pm line 162
Class::MOP::Method::Wrapped::__ANON__('TAEB::Action::Move=HASH(0x80cb84900)') called at /home/sean/.perlbrew/libs/perl-5.16.3@beat/lib/perl5/amd64-freebsd/Class/MOP/Method/Wrapped.pm line 91
TAEB::A
03:27:39 < ArnieSan> Hi folks. I tried TAEB yesterday. It runs nicely, i had a
few completed games (by dying, obviously). But more often
than not I get an error:
03:27:42 < ArnieSan> ERROR:perl] Can't locate object method "evolve_from" via
package "TAEB::World::Item::Armor::Bodyarmor" at
lib/TAEB/ScreenScraper.pm line 1341.
03:28:14 < daxim_> which version/repository?
03:28:15 < ArnieSan> I thought I had the current git of most everything... is
there an easy fix for that?
03:28:18 < ArnieSan> git
@seankelly
seankelly / gist:8065676
Created December 21, 2013 05:06
TAEB validation error
<T-> 2013-12-21 04:58:58 [ERROR:perl] Attribute (behaviors) does not pass the type constraint because: Validation failed for 'HashRef[TAEB::AI::Behavioral::Behavior]' with value { AttackSpell: TAEB::AI::Behavioral::Behavior::AttackSpell={ personality: TAEB::AI::Behavioral::Personality::Explorer=HASH(0x876faf0) }, BuffSelf: TAEB::AI::Behavioral::Behavior::BuffSelf={ personality: TAEB::AI::Behavioral::Personality::Explorer=HASH(0x876faf0) }, BuyProtection: TAEB::AI::Behavioral::Behavior::BuyProtection={ personality: TAEB::AI::Behavioral::Personality::Explorer=HASH(0x876faf0) }, Carrion: TAEB::AI::Behavioral::Behavior::Carrion={ personality: TAEB::AI::Behavioral::Personality::Explorer=HASH(0x876faf0) }, CurseCheck: TAEB::AI::Behavioral::Behavior::CurseCheck={ personality: TAEB::AI::Behavioral::Personality::Explorer=HASH(0x876faf0) }, DeadEnd: TAEB::AI::Behavioral::Behavior::DeadEnd={ personality: TAEB::AI::Behavioral::Personality::Explorer=HASH(0x876faf0) }, ... } at /usr/local/lib/perl/5.14.2/Moose/Meta/Attribu
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/home/sean/projects/buildbot/src/master/setup.py", line 26, in <module>
from buildbot import version
File "./buildbot/__init__.py", line 49, in <module>
version = getVersion(__file__)
File "./buildbot/__init__.py", line 42, in getVersion
v = VERSION_MATCH.search(out)
TypeError: can't use a string pattern on a bytes-like object
2016-05-03 12:30:07+0000 [-] error while parsing config file:
Traceback (most recent call last):
File "/home/bbuser/venv/lib/python2.7/site-packages/twisted/internet/defer.py", line 588, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File "/home/bbuser/venv/lib/python2.7/site-packages/twisted/internet/defer.py", line 1184, in gotResult
_inlineCallbacks(r, g, deferred)
File "/home/bbuser/venv/lib/python2.7/site-packages/twisted/internet/defer.py", line 1128, in _inlineCallbacks
result = g.send(result)
File "/usr/home/bbuser/buildbot/master/buildbot/master.py", line 189, in startService
self.configFileName)
# ../venv/bin/buildbot start
Traceback (most recent call last):
File "../venv/bin/buildbot", line 6, in <module>
exec(compile(open(__file__).read(), __file__, 'exec'))
File "/usr/home/bbuser/buildbot/master/bin/buildbot", line 3, in <module>
from buildbot.scripts import runner
File "/usr/home/bbuser/buildbot/master/buildbot/scripts/runner.py", line 28, in <module>
from buildbot.scripts import base
File "/usr/home/bbuser/buildbot/master/buildbot/scripts/base.py", line 24, in <module>
from buildbot import config as config_module