Skip to content

Instantly share code, notes, and snippets.

View wiseman's full-sized avatar

John Wiseman wiseman

View GitHub Profile
@wiseman
wiseman / mode-s.txt
Created March 11, 2013 19:11
Mode-S packets
(-38 0.0000000000) Type 0 (short A-A surveillance) from a99f21 at 2775ft (Vertical TCAS resolution only)
(-49 0.0000000000) Type 0 (short A-A surveillance) from aa7a3c at 11750ft (Vertical TCAS resolution only)
(-47 0.0000000000) Type 0 (short A-A surveillance) from a86107 at 4350ft (Vertical TCAS resolution only)
(-50 0.0000000000) Type 0 (short A-A surveillance) from aa7a3c at 11750ft (Vertical TCAS resolution only)
(-49 0.0000000000) Type 17 BDS0,5 (position report) from aa7a3c at (34.292613, -118.433018) at 11750ft
(-39 0.0000000000) Type 0 (short A-A surveillance) from a99f21 at 2775ft (Vertical TCAS resolution only)
(-39 0.0000000000) Type 0 (short A-A surveillance) from a99f21 at 2775ft (Vertical TCAS resolution only)
(-39 0.0000000000) Type 0 (short A-A surveillance) from a99f21 at 2775ft (Vertical TCAS resolution only)
(-37 0.0000000000) Type 0 (short A-A surveillance) from a99f21 at 2775ft (speed 300-600kt)
(-38 0.0000000000) Type 0 (short A-A surveillance) from a99f21 at 2775ft (speed 300-600kt)
@wiseman
wiseman / traceroute
Created March 13, 2013 21:19
traceroute to lemondronor.com
traceroute to www.lemondronor.com (65.39.205.57), 64 hops max, 52 byte packets
1 192.168.0.1 2.708 ms 2.208 ms 4.275 ms
2 75.83.144.1 36.955 ms 47.604 ms 22.482 ms
3 76.167.5.165 11.568 ms 13.947 ms 8.571 ms
4 72.129.9.172 16.091 ms 15.624 ms 16.347 ms
5 72.129.9.2 20.657 ms 24.208 ms 23.936 ms
6 66.109.6.64 14.270 ms 15.532 ms 32.008 ms
7 66.109.6.129 14.786 ms
107.14.19.67 16.104 ms
66.109.6.129 15.802 ms
@wiseman
wiseman / issues.sh
Created May 22, 2013 00:12
ardrone-webflight issues
[jwiseman@ubuntu ardrone-webflight (master)]$ node app.js
info - socket.io started
Loading video-png plugin.
Loading hud plugin.
Loading pilot plugin.
AR. Drone WebFlight is listening on port 3000
events.js:72
throw er; // Unhandled 'error' event
^
@wiseman
wiseman / basestation.sq
Created June 4, 2013 17:20
Schema of the ad hoc "basestation.sqb" standard for ADS-B/virtual radar basestations.
CREATE TABLE [Aircraft] (
[AircraftID] integer PRIMARY KEY,
[FirstCreated] datetime,
[LastModified] datetime,
[ModeS] varchar(6) NOT NULL UNIQUE,
[ModeSCountry] varchar(24),
[Registration] varchar(20),
[ICAOTypeCode] varchar(10),
[SerialNo] varchar(30),
[OperatorFlagCode] VARCHAR(20),
@wiseman
wiseman / gist:6816130
Last active December 24, 2015 14:59
Parsing GPS data from the AR.Drone with Flight Recorder.
var arDrone = require('ar-drone');
var client= arDrone.createClient();
client.on(
    'navdata',
    function(d) {
        console.log(d.gps);
    });
client.createRepl();
Hog: Gunslinger, contact village.
Gunslinger: Hog, village is Seattle.
Hog: Gunslinger, copy, I have the Seattle layout.
Gunslinger: Hog, copy. Call contact building echo four.
Hog: Contact echo four.
Gunslinger: Hog, target is MANPAD on roof of building echo four, call contact.
Hog: Gunslinger, tally MANPAD, departing IP at this time.
@wiseman
wiseman / lein test
Created January 26, 2014 04:14
lein test dependencies
[jwiseman@John-Wisemans-MacBook-Pro clj-viterbi (master)]$ lein test
Exception in thread "main" java.io.FileNotFoundException: Could not locate clojure/math/numeric_tower__init.class or clojure/math/numeric_tower.clj on classpath:
at clojure.lang.RT.load(RT.java:443)
at clojure.lang.RT.load(RT.java:411)
at clojure.core$load$fn__5018.invoke(core.clj:5530)
at clojure.core$load.doInvoke(core.clj:5529)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.core$load_one.invoke(core.clj:5336)
at clojure.core$load_lib$fn__4967.invoke(core.clj:5375)
at clojure.core$load_lib.doInvoke(core.clj:5374)
@wiseman
wiseman / gist:9102239
Created February 19, 2014 21:40
lisp metadata importer
lem:~ $ mdls variables.lisp
variables.lisp -------------
kMDItemAttributeChangeDate = 2005-09-08 11:30:18 -0700
kMDItemContentCreationDate = 2005-09-02 17:41:07 -0700
kMDItemContentModificationDate = 2005-09-02 17:41:08 -0700
kMDItemContentType = "com.lemonodor.lisp-source"
kMDItemContentTypeTree = (
"com.lemonodor.lisp-source",
"public.source-code",
"public.plain-text",
@wiseman
wiseman / mh370_doppler.py
Last active August 29, 2015 13:57
MH 370 vs. geostationaryish satellite with 3 deg. orbital inclination
import math
def deg2rad(d):
return d * math.pi / 180.0
# Convert spherical coordinates to cartesian.
def cart(c):
return [c[0] * math.sin(c[1]) * math.cos(c[2]),
c[0] * math.sin(c[1]) * math.sin(c[2]),
c[0] * math.cos(c[1])]
artist | name
----------------------------------------------------+---------------------------------------------------------------
Pearl Jam | Bu$hleaguer (Nassau Coliseum - Uniondale, NY 4/30/2003)
Pat Metheny | Another Chance
Neil Young | Mellow My Mind
Ween | I'll Be Your Jonny On The Spot
Los Fabulosos Cadillacs | Malbicho
Aphex Twin | 4
Los Invasores De Nuevo Leon | Rafael Caro Quintero
Oasis | Love Like A Bomb