Skip to content

Instantly share code, notes, and snippets.

bad command or file name

Tim Ryan tcr

bad command or file name
View GitHub Profile
tcr /
Created Feb 10, 2014
Creating distributable, flattened static libraries for distribution with gyp
set -e
cd out/ARM
node -e "console.log('CREATE ' + process.argv[1]); console.log('ADDLIB', 'obj/lib' + process.argv.slice(2).join('.a\nADDLIB obj/lib') + '.a'); console.log('SAVE\nEND')" $@
node -e "console.log('CREATE ' + process.argv[1]); console.log('ADDLIB', 'obj/lib' + process.argv.slice(2).join('.a\nADDLIB obj/lib') + '.a'); console.log('SAVE\nEND')" $@ | arm-none-eabi-ar -M


  1. Install OpenOCD. You need version >= 0.8.0.
  1. Acquire a configuration script for your Bus Blaster. Included in the firmware repo is tools/tessel-busblaster.cfg.

  2. Plug the JTAG cable into the Bus Blaster's adapter board and the Tessel. Pin one is towards the USB port; the cable goes over the center of the board.

  3. Run

View stellaris-1mb.patch
--- hw/arm/stellaris.c.orig 2014-04-17 13:44:44.000000000 +0000
+++ hw/arm/stellaris.c 2014-04-17 13:44:44.000000000 +0000
@@ -1186,7 +1186,7 @@
{ "LM3S6965EVB",
- 0x00ff007f, /* dc0 */
+ 0x0fff007f, /* dc0 */
tcr / gist:53226a6e88a00cd42a4f
Created Oct 8, 2014
Uppercase/lowercase lookup tables in gcc
View one.lua
-- match regex /a*b/
-- Lua wrapper to extract a character from a string
-- at the indexth position (starting from 0)
-- This is just a helper since Lua is 1-indexed which
-- is insane. You can just copy this out.
function charat (str, index)
return string.sub(str, index + 1, index + 1)
tcr / Vagrantfile
Last active Aug 29, 2015
Tessel 2 VM
View Vagrantfile
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.ssh.username = "root"
config.ssh.password = "tessel2" = "ash"
config.vm.synced_folder ".", "/vagrant", disabled: true = "technicalmachine/tessel2"
tcr / .gitignore
Last active Aug 29, 2015
Hello World for Node
View .gitignore
from __future__ import print_function
import sys
import six
from gevent import socket
from gevent.queue import Queue
from gevent.socket import wait_read
import gevent
def parse_arg(arg):
(proto, role, port) = arg.split(':')
tcr /
Last active Aug 29, 2015 — forked from tcr3dr/
Tessel 2 FCC Approval

Tessel 2 is seeking FCC approval. Tessel 2 runs OpenWRT, a distribution of Linux designed as open firmware for routers with very granular control over wireless capabilities. Currently Tessel 2 is stuck in FCC approval pending its demonstration of being able to generate packets in the 802.11n range.

Testing instructions

Installation on a Tessel 2:

opkg update
opkg install tcpdump
wget -O /usr/bin/packetspammer
import urllib
import urllib.parse
import urllib.request
import sys
ip = input('Enter IP address: ')
path = input('Enter path to save data to (with trailing \): ')
while 1:
You can’t perform that action at this time.