Skip to content

Instantly share code, notes, and snippets.

View dtudury's full-sized avatar

David Tudury dtudury

  • Danville, California, USA
View GitHub Profile
@dtudury
dtudury / domainExperiment
Last active December 19, 2015 05:29
behaves differently for sync and async
/*
if I call "node experiment async":
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
I can haz world?
..c0 begin
..c0 end
....c1 begin
....c1 end
......c2 begin
......c2 end
@dtudury
dtudury / knob.c
Created June 25, 2013 04:35
avr-studio C code for sparkfun's LED RingCoder Breakout - RGB https://www.sparkfun.com/products/11040
/*
* knob.c
*
* Created: 6/22/2013 9:01:18 PM
* Author: dtudury
*/
#ifndef F_CPU
#define F_CPU 8000000UL // or whatever may be your frequency
#endif
/*
* lights.c
*
* Created: 6/14/2013 11:30:35 PM
* Author: dtudury
*/
#ifndef F_CPU
#define F_CPU 1000000UL // or whatever may be your frequency
#endif
@dtudury
dtudury / gist:5734395
Created June 8, 2013 07:21
make osx apps launch with decent path
sudo echo "setenv PATH /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin" > /etc/launchd.conf
@dtudury
dtudury / bbb
Created May 31, 2013 20:51
up and running with bbb
# install xcode from app store
# install node from nodejs.org
sudo npm install -g yo grunt-cli bower
npm install generator-bbb
npm install generator-mocha
yo bbb
@dtudury
dtudury / smartos server traffic
Last active December 17, 2015 23:18
watch traffic on port 1443
#write traffic on port 1443 to test.txt
sudo snoop -I net1 -x0 -o test.txt port 1443
#print traffic on port 1443 verbose
sudo snoop -I net1 -x0 -v port 1443