Skip to content

Instantly share code, notes, and snippets.

View godber's full-sized avatar
😺

Austin Godber godber

😺
View GitHub Profile
@godber
godber / syslog.log
Created March 27, 2014 13:15
IPython OOM Killer
Mar 26 23:11:01 localhost kernel: [178164.363434] python invoked oom-killer: gfp_mask=0x201da, order=0, oom_score_adj=0
Mar 26 23:11:01 localhost kernel: [178164.363441] python cpuset=/ mems_allowed=0
Mar 26 23:11:01 localhost kernel: [178164.363462] Pid: 8666, comm: python Tainted: GF 3.8.0-29-generic #42~precise1-Ubuntu
Mar 26 23:11:01 localhost kernel: [178164.363463] Call Trace:
Mar 26 23:11:01 localhost kernel: [178164.363482] [<ffffffff816de7d6>] dump_header+0x83/0xbb
Mar 26 23:11:01 localhost kernel: [178164.363486] [<ffffffff816de863>] oom_kill_process.part.6+0x55/0x2cf
Mar 26 23:11:01 localhost kernel: [178164.363497] [<ffffffff8113891d>] oom_kill_process+0x4d/0x50
Mar 26 23:11:01 localhost kernel: [178164.363500] [<ffffffff81138c55>] out_of_memory+0x145/0x1d0
Mar 26 23:11:01 localhost kernel: [178164.363502] [<ffffffff8113e507>] __alloc_pages_nodemask+0x977/0x990
Mar 26 23:11:01 localhost kernel: [178164.363507] [<ffffffff8117aa1a>] alloc_pages_current+0xba/0x170

Keybase proof

I hereby claim:

  • I am godber on github.
  • I am godber (https://keybase.io/godber) on keybase.
  • I have a public key whose fingerprint is 454A 260E 0EAB A8EC C930 3C9B 07B8 D482 9552 521F

To claim this, I am signing this object:

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@godber
godber / gist:87d2988e231abde86d61
Created August 28, 2014 00:27
Exploring Numpy
{
"metadata": {
"celltoolbar": "Slideshow",
"name": "",
"signature": "sha256:2894bbe74f16a255abf27e6a71f31cd708f3b84bfa63b3f619344aa8af6dc27c"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
@godber
godber / split_anaglyph_file.py
Last active August 29, 2015 14:08
Splits Red/Cyan Anaglyph into Left and Right Images and writes those images out into files with the same filename with '-left' or '-right' appended.
import os
from scipy import misc
def split_anaglyph_file(infile):
"""
Splits Red/Cyan Anaglyph into Left and Right Images and writes those images
out into files with the same filename with '-left' or '-right' appended.
"""
image = misc.imread(infile)
if len(image.shape) == 3:
/*****************************************************************************
* ODLv2 as Defined Here: http://pds.nasa.gov/documents/sr/Chapter12.pdf
*****************************************************************************/
grammar ODLv21;
WS
: [ \t] -> skip
;
@godber
godber / gen_pds_sql_table.py
Created February 19, 2015 20:41
This takes a file the Mastcam PDS Index Label file and generates CREATE TABLE command for PostgreSQL.
#!/usr/bin/env python
# Being lazy here, everything is hardcoded.
# This takes a file like the following and generates CREATE TABLE command for
# PostgreSQL:
# http://pds-imaging.jpl.nasa.gov/data/msl/MSLMST_0007/INDEX/EDRINDEX.LBL
# Load it with this:
# psql -U postgres -h localhost -p 5432 -d mslpdsindex -f mcam-pds-index.sql
@godber
godber / shifty.sh
Last active August 29, 2015 14:16
Need to keep an X11 screen awake? Use shifty!
#!/bin/bash
export DISPLAY=:1
while true;
do
xdotool key shift
sleep 5
done
@godber
godber / w7asu-0-aprs-decoded.txt
Created April 25, 2015 23:29
Sample parsing APRS Packets with Python
2015-04-25 09:09:18 MST, 309
2015-04-25 09:11:17 MST, 1089
2015-04-25 09:13:16 MST, 1968
2015-04-25 09:15:16 MST, 2855
2015-04-25 09:17:16 MST, 3710
2015-04-25 09:19:16 MST, 4588
2015-04-25 09:21:15 MST, 5432
2015-04-25 09:23:15 MST, 6317
2015-04-25 09:25:15 MST, 7226
2015-04-25 09:27:14 MST, 8148