Skip to content

Instantly share code, notes, and snippets.

View dsmith's full-sized avatar

Derek Smith dsmith

View GitHub Profile
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fef2dd58785, pid=28212, tid=140665162327824
#
# JRE version: 6.0_18-b18
# Java VM: OpenJDK 64-Bit Server VM (16.0-b13 mixed mode linux-amd64 )
# Derivative: IcedTea6 1.8
# Distribution: Ubuntu 10.04.1 LTS, package 6b18-1.8-4ubuntu3
# Problematic frame:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fef2dd58785, pid=28212, tid=140665162327824
#
# JRE version: 6.0_18-b18
# Java VM: OpenJDK 64-Bit Server VM (16.0-b13 mixed mode linux-amd64 )
# Derivative: IcedTea6 1.8
# Distribution: Ubuntu 10.04.1 LTS, package 6b18-1.8-4ubuntu3
# Problematic frame:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f296b7ac3e8, pid=6274, tid=139816049727248
#
# JRE version: 6.0_18-b18
# Java VM: OpenJDK 64-Bit Server VM (16.0-b13 mixed mode linux-amd64 )
# Derivative: IcedTea6 1.8
# Distribution: Ubuntu 10.04.1 LTS, package 6b18-1.8-4ubuntu3
# Problematic frame:
@dsmith
dsmith / Ben's Pull Request handler code
Created November 5, 2010 00:29
Conditional Block
metar_code = temperature_record.properties.get("weather", "")
if metar_code == "":
records_with_weather_property = filter(lambda x, x.properties.has_key('weather'), eligible_records)
if len(records_with_weather_property):
metar_code = self.pick_winning_record(lat, lon, records_with_record_property, record_ages, record_distances)
@dsmith
dsmith / Maybe...?
Created November 19, 2010 20:24
Maybe...?
class Twitter(object):
def __init__(self, consumer, token=None, url='http://api.twitter.com/1', name='', **kwargs):
self.client, self.url = oauth.Client(consumer, token), '%s/%s.json' % (url, name)
__getattr__ = lambda self, name: Twitter(self.consumer, self.token, url=self.url, name=name)
def __call__(self, **kwargs):
return json.loads(filter(lambda x: x['status'] == '200' or not x.has_key('status'), self.client.request((self.url, urllib.urlencode(kwargs)), "GET"))[1])
raise Exception('Invalid response.')
@dsmith
dsmith / Twilight.dvtcolortheme
Created August 31, 2011 17:12
Twilight theme for Xcode
<?xml version="1.0" encoding="UTF-8"?>
<!--
Stick this file in ~/Library/Developer/Xcode/UserData/FontAndColorThemes then
go to Xcode -> Preferences -> Fonts & Colors -> Twilight
-->
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>DVTConsoleDebuggerInputTextColor</key>
{
"aliases": [
"helium-8"
],
"environment": "production",
"hostname": "dmz08",
"ipaddress": "10.128.50.26",
"limits": [],
"name": "s0027",
"role": "helium-8",
(vcs)deploy@app06.prod:~$ deploy type:web status:gatekeeper[localhost] local: host app06
Setting env.ua_env to production
[app01] Executing task 'status'
Checking status gatekeeper on app01
[localhost] local: ssh deploy@app01 sudo -i -u root "/etc/init.d/gatekeeper status"
gatekeeper running (11561)
[app02] Executing task 'status'
Checking status gatekeeper on app02
[localhost] local: ssh deploy@app02 sudo -i -u root "/etc/init.d/gatekeeper status"
gatekeeper running (716)
2013-02-01 01:27:41,511 - ERROR [GBC Durable Worker Thread Thread 19:com.urbanairship.gooeybuttercake.reactor.integration.BroadcastCommandProcessor] - Failure before any pushes could be sent by delivery service, re-queueing with same cursor
2013-02-01 01:27:41,512 - ERROR [GBC Durable Worker Thread Thread 17:com.urbanairship.gooeybuttercake.reactor.integration.BroadcastCommandProcessor] - Failure before any pushes could be sent by delivery service, re-queueing with same cursor
2013-02-01 01:27:41,513 - ERROR [GBC Durable Worker Thread Thread 18:com.urbanairship.gooeybuttercake.reactor.integration.BroadcastCommandProcessor] - Failure before any pushes could be sent by delivery service, re-queueing with same cursor
2013-02-01 01:27:41,514 - ERROR [GBC Durable Worker Thread Thread 19:com.urbanairship.gooeybuttercake.reactor.integration.BroadcastCommandProcessor] - Failure before any pushes could be sent by delivery service, re-queueing with same cursor