Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am bluesquall on github.
  • I am mjstanway (https://keybase.io/mjstanway) on keybase.
  • I have a public key ASDJXIkeVXLzzSJZzIq40MUthjTT-deKGMWJatACjxG_Lgo

To claim this, I am signing this object:

@bluesquall
bluesquall / reflector.kbd.json
Last active April 25, 2017 00:46
reflector
[
{
"name": "reflector",
"author": "mjs",
"background": {
"name": "Steel brushed wavy",
"style": "background-image: url('/bg/metal/iron_texture61.jpg');"
},
"switchMount": "cherry",
"switchBrand": "cherry",
@bluesquall
bluesquall / devmem2-showBits-patch.sh
Last active November 6, 2015 23:46
Tiny script patching devmem2 in LTIB for Phytec LPC3250 on MBARI LRAUV
#!/bin/bash
# Based on https://gist.github.com/the-admax/684d56db33f2f0792b69
# Adapt to your environment
LTIB_ROOT=/opt/ltib
#####################################
if [ "$USER" == 0 ]; then
echo DO NOT RUN THIS SCRIPT AS ROOT
#!/usr/bin/env python
"""Player for general text log files."""
import serial
import time
__author__ = "M Jordan Stanway"
__license__ = "MIT"
def replay_text_file(infile, port='/dev/ttyS0', baudrate=9600,
@bluesquall
bluesquall / lpc3250-glib2.cache
Created April 15, 2015 22:16
Cache file for configure so that you can cross-compile glib2 for the LPC3250
glib_cv_long_long_format=ll
glib_cv_stack_grows=no
glib_cv_sane_realloc=yes
glib_cv_have_strlcpy=no
glib_cv_va_val_copy=yes
glib_cv_rtldglobal_broken=no
glib_cv_uscore=no
glib_cv_monotonic_clock=no
ac_cv_func_nonposix_getpwuid_r=no
ac_cv_func_posix_getpwuid_r=yes
@bluesquall
bluesquall / injectlocals
Created September 27, 2012 19:09
A useful method for passing named arguments with defaults to a SuperClass without having to write name=name for each argument in the call to the SuperClass method. I feel like this should already exist in the standard library, but I didn't find anythi
#!/usr/bin/env python
"""A useful method for passing named arguments with defaults to a SuperClass
without having to write name=name for each argument in the call to the
SuperClass method.
I feel like this should already exist in the standard library, but I didn't
find anything like it with a quick search.
"""
@bluesquall
bluesquall / monterey-bay-gmtpy.py
Created September 14, 2012 18:07
A python/gmtpy example to create a map of Monterey Bay, CA
#!/usr/bin/env python
"""
monterey-bay-gmtpy.py
=====================
A gmtpy example to map Monterey Bay.
"""
import gmtpy