Skip to content

Instantly share code, notes, and snippets.

View matthijskooijman's full-sized avatar

Matthijs Kooijman matthijskooijman

View GitHub Profile
#!/bin/bash -ex
git clone git@github.com:arduino/Arduino.git Arduino2
# cleaning up the Arduino repo
cd Arduino2
git branch -t ide-1.5.x origin/ide-1.5.x
git remote rm origin
#include <SPI.h>
#include <Wire.h>
#include <Scout.h>
#include <GS.h>
#include <bitlash.h>
#include <lwm.h>
#include <js0n.h>
#include "util/StringBuffer.h"
#include "util/PrintToString.h"
@matthijskooijman
matthijskooijman / gist:9597847
Created March 17, 2014 11:41
Keybase proof
### Keybase proof
I hereby claim:
* I am matthijskooijman on github.
* I am matthijs (https://keybase.io/matthijs) on keybase.
* I have a public key whose fingerprint is 7F6A 9F44 2820 18E2 18DE 24AA CF49 D0E6 8A2F AFBC
To claim this, I am signing this object:
Gainspan UDP Server demo
>>= ATV0
<<| Read async header: <ESC>A701
<<| Read async data: 7
<<= 0
>>= ATE0
<<= 0
>>= AT+BDATA=1
<<= 0
>>= AT+ASYNCMSGFMT=1
Fetching https://pinocc.io/bootstrap/latest?v=p3airn97ldi main.js:109
Loaded string main.js:90
findSerial pinoccio.js:456
Going to close all pinoccio.js:465
Check
Object
pinoccio.js:469
Actually trying
Object
pinoccio.js:471
17:39:27.929077 IP (tos 0x0, ttl 53, id 12553, offset 0, flags [DF], proto TCP (6), length 1492) 173.255.220.185.22757 > 192.168.1.245.61280: . 1394:2834(1440) ack 2018 win 181 <nop,nop,timestamp 3935865759 3963110157>
17:39:28.013821 IP (tos 0x0, ttl 64, id 393, offset 0, flags [none], proto TCP (6), length 52) 192.168.1.245.61280 > 173.255.220.185.22757: ., cksum 0xc13d (correct), ack 2834 win 2896 <nop,nop,timestamp 3963135857 3935788223>
17:39:28.169659 IP (tos 0x0, ttl 53, id 12554, offset 0, flags [DF], proto TCP (6), length 1326) 173.255.220.185.22757 > 192.168.1.245.61280: P 2834:4108(1274) ack 2018 win 181 <nop,nop,timestamp 3935866000 3963135857>
17:39:28.382474 IP (tos 0x0, ttl 64, id 394, offset 0, flags [none], proto TCP (6), length 52) 192.168.1.245.61280 > 173.255.220.185.22757: ., cksum 0xbfad (correct), ack 4108 win 1622 <nop,nop,timestamp 3963136257 3935788223>
17:39:32.922271 arp who-has 192.168.1.245 tell 192.168.1.252
17:39:33.025906 arp reply 192.168.1.245 is-at 20:f8:5e:a1:4a:68
matthijs@grubby:~/docs/Electronics/Pinoccio/firmware-pinoccio$ git submodule status
c847a7e9cc7a1d7f0ca52bb414cbfcc0827ddb21 hardware/pinoccio (heads/master)
026e620344cdcce4edafbb58489dcf785de690e9 libraries/bitlash (heads/pinoccio)
+5dab3742864b874dadd4273aa7fbe3d964ef7af8 libraries/gainspan (heads/master)
f51c17852de7f85b8145d8981c95c1551eed4dc1 libraries/js0n (heads/master)
2997673076277a8dfe47e905b9f18ada6d87b25b libraries/lwm (heads/pinoccio)
+971f5c72296b2ff700930521c7a186e4f26e349b libraries/pinoccio (pre-shell-refactor-331-g971f5c7)
Sending "fooxbar"
Now:
MESH: "foox"
HQ: {"type":"reply","id":%d,"from":%d,"reply":"foox"}
MESH: "bar\0"
HQ: {"type":"reply","id":%d,"from":%d,"reply":"bar", end: true}
@matthijskooijman
matthijskooijman / gist:10629220
Created April 14, 2014 08:52
avr-objdump -t output diff script
#!/bin/bash
# Diff avr-objdump -t output.
# Compares the presence and size of any non-debug symbols in the given
# section (or all sections if none given).
if [ "$#" = 3 ]; then
SECTION=$1
shift;
else
#include <avr/sleep.h>
#include <avr/interrupt.h>
#include <util/delay.h>
void setup(){
Serial.begin(115200);
pinMode(LED_RED, OUTPUT);
pinMode(LED_GREEN, OUTPUT);
pinMode(LED_BLUE, OUTPUT);