Skip to content

Instantly share code, notes, and snippets.

View relrod's full-sized avatar

Rick Elrod relrod

View GitHub Profile
The MIT License (MIT)
Copyright (c) <year> <copyright holders>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
0
4
1d
19
10
a
1
15
1c
c
unsigned char baudout[] = {
0x3, // Null
0x13, // Space
0x5f, // Q 1
0x4f, // W 2
0x7, // E 3
0x2b, // R 4
0x43, // T 5
0x57, // Y 6
Please help compile a list of all Scala-related IRC rooms.
All of these channels are on Freenode.
#akka | concurrency & distribution framework
#argonaut | json library
#fp-in-scala | the book Functional Programming in Scala
#geotrellis | geoprocessing library
#indyscala | regional scala group
#json4s | json library
@relrod
relrod / gist:4590272
Created January 21, 2013 22:52
FAS fatal
[Mon Jan 21 22:37:28 2013] [error] cherrypy.msg INFO HTTP: Page handler: <bound method Root.login of <fas.controllers.Root object at 0xb3f604cc>>
[Mon Jan 21 22:37:28 2013] [error] Traceback (most recent call last):
[Mon Jan 21 22:37:28 2013] [error] File "/usr/lib/python2.6/site-packages/CherryPy-2.3.0-py2.6.egg/cherrypy/_cphttptools.py", line 121, in _run
[Mon Jan 21 22:37:28 2013] [error] self.main()
[Mon Jan 21 22:37:28 2013] [error] File "/usr/lib/python2.6/site-packages/CherryPy-2.3.0-py2.6.egg/cherrypy/_cphttptools.py", line 264, in main
[Mon Jan 21 22:37:28 2013] [error] body = page_handler(*virtual_path, **self.params)
[Mon Jan 21 22:37:28 2013] [error] File "<string>", line 3, in login
[Mon Jan 21 22:37:28 2013] [error] File "/usr/lib/python2.6/site-packages/turbogears/controllers.py", line 361, in expose
[Mon Jan 21 22:37:28 2013] [error] *args, **kw)
[Mon Jan 21 22:37:28 2013] [error] File "<generated code>", line 0, in run_with_transaction
#!/usr/bin/env ruby
# Praxis -- a multicaster proxy for Axis Camera MJPEGs.
# License: MIT
# Author: Ricky Elrod <[email protected]>
STREAM_URL = 'http://wm161.kicks-ass.net:8080/mjpg/video.mjpg'
require 'em-http-request'
require 'sinatra'
set :server, :thin
--- pkgbugs.html.orig 2012-10-29 18:57:20.503446866 -0400
+++ pkgbugs.html 2012-10-29 18:57:27.595465291 -0400
@@ -15,7 +15,7 @@
<h4>Report a new bug against this package in
<a href="${'https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora&amp;version=rawhide&amp;component=%s' % tg.quote_plus(package)}">Fedora</a>
or
- <a href="${'https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora+EPEL&amp;version=el5&amp;component=%s' % tg.quote_plus(package)}">EPEL</a>.
+ <a href="${'https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora+EPEL&amp;version=el6&amp;component=%s' % tg.quote_plus(package)}">EPEL</a>.
</h4>
<table class="buglist">
#!/bin/bash
for i in {1..64}; do
./errbit 2400 hts1_2k4.c2 hts1_2k4_$i.c2 $i;
done;
@relrod
relrod / gist:3928887
Created October 21, 2012 23:16
Because, you know, every IRC client needs some assembly.
[ricky@t520 xchat-2.8.8]$ cloc .
290 text files.
281 unique files.
75 files ignored.
http://cloc.sourceforge.net v 1.56 T=1.0 s (215.0 files/s, 147102.0 lines/s)
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
#!/usr/bin/env python
# encoding: utf-8
# (c) 2012 Red Hat, Inc.
# Authored by Ricky Elrod
# But when it breaks, don't yell at him because that's mean.
# update hook for FI repos -> zodbot.
import os
import sys
import subprocess