Skip to content

Instantly share code, notes, and snippets.

View gist:1962562
stage { 'first' : before => Stage['main'] }
stage { 'bootstrap' : before => Stage['first'] }
stage { 'last' : require => Stage['main'] }
class bootstrap($release="squeeze") {
apt::source { "debian_${release}":
location => "",
release => $release,
repos => "main contrib non-free",
required_packages => "debian-keyring debian-archive-keyring",
View gist:2038172
How to pin bitlbee? Can't use origin nor an empty c= :(
absint:~# apt-cache policy
Package files:
100 /var/lib/dpkg/status
release a=now
990 squeeze/non-free i386 Packages
release v=6.0.4,o=Debian,a=stable,n=squeeze,l=Debian,c=non-free
990 squeeze/contrib i386 Packages
View gist:2513931
public void testAdvancedNorwegianAnswer() {
String answer = "Buss 5 passerer Glxshaugen Nord kl. 0931 og kl. 1001 og kommer til Sentrumsterminalen, 5-8 minutter senere. Buss 52 passerer Gløshaugen Nord kl. 1010 og kommer til Munkegata M3, 6 minutter senere. Tidene angir tidligste passeringer av holdeplassene.";
List<MetaAnswer> metaAnswers = MetaAnswerFactory.getMetaAnswers(answer);
MetaAnswer testMetaAnswer;
MetaAnswer ma;
assertEquals(2, metaAnswers.size());
View gist:2583843
May 3 08:39:58 stud-1201 kernel: [ 539.215604] general protection fault: 0000 [#1] SMP
May 3 08:39:58 stud-1201 kernel: [ 539.215609] last sysfs file: /sys/module/crc16/initstate
May 3 08:39:58 stud-1201 kernel: [ 539.215611] CPU 0
May 3 08:39:58 stud-1201 kernel: [ 539.215613] Modules linked in: jbd2(+) ppdev lp sco rfcomm bridge stp bnep l2cap crc16 bluetooth rfkill acpi_cpufreq cpufreq_stats cpufreq_powersave cpufreq_conservative autofs4 cpufreq_userspace binfmt_misc fuse nfsd exportfs nfs lockd fscache nfs_acl auth_rpcgss sunrpc ext2 loop dm_crypt snd_hda_codec_analog snd_hda_intel radeon snd_hda_codec ttm snd_hwdep drm_kms_helper snd_pcm drm i2c_i801 i2c_algo_bit snd_seq i2c_core snd_timer parport_pc snd_seq_device parport snd soundcore snd_page_alloc psmouse evdev button pcspkr dcdbas wmi processor serio_raw ext3 jbd mbcache dm_mod usbhid hid sg sd_mod sr_mod cdrom crc_t10dif uhci_hcd ata_generic ahci thermal thermal_sys libata e1000e ehci_hcd scsi_mod usbcore nls_base [last unloaded: vboxdrv]
View gist:2692388
Error and the lines leading up to it:
Use of uninitialized value $hostResults[4] in join or string at /usr/share/cricket/lib/ line 92.
Use of uninitialized value $hostResults[5] in join or string at /usr/share/cricket/lib/ line 92.
Use of uninitialized value $hostResults[6] in join or string at /usr/share/cricket/lib/ line 92.
[13-May-2012 07:50:03 ] Walking ifName for to resolve interface-name mapping
[13-May-2012 07:50:03*] Failed to map instance for vl503. Instance is now set to nothing.
View gist:2692427
See <>
[...truncated 1849 lines...]
_______________ ERROR collecting integration/web/ _______________
def test_webpages():
result = login()
if result:
func, args = result[0], result[1:]
View gist:2781276
In [105]: rrdtool.fetch('/usr/local/nav/var/cricket-data/router-interfaces/', 'AVERAGE', '-s -10min')
((1337861400, 1337862300, 300),
('ds0', 'ds1', 'ds2', 'ds3', 'ds4', 'ds5'),
View gist:2845764
md7 : active (auto-read-only) raid1 sda9[0] sdb10[1]
914202816 blocks [2/2] [UU]
xfs_check /dev/md7
xfs_check: /dev/md7 is not a valid XFS filesystem (unexpected SB magic number 0x4c554b53)
xfs_check: size check failed
xfs_check: WARNING - filesystem uses v1 dirs,limited functionality provided.
xfs_check: read failed: Invalid argument
View graph.json
View gist:2930401
svg ="#chart")
.attr('id', 'svg-netmap')
.attr("width", w)
.attr("height", h)
.attr("pointer-events", "all")
.call(d3.behavior.zoom().on("zoom", redraw))
You can’t perform that action at this time.