Skip to content

Instantly share code, notes, and snippets.

View chrissnell's full-sized avatar

Chris Snell chrissnell

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key>
<string>myapp</string>
<key>CFBundleIdentifier</key>
<string>com.chrissnell.myapp</string>
<key>CFBundleURLTypes</key>
<array>
### Keybase proof
I hereby claim:
* I am chrissnell on github.
* I am chrissnell (https://keybase.io/chrissnell) on keybase.
* I have a public key whose fingerprint is 0D77 FF94 4184 69EE F093 A65E 1EEA 521C B546 99F9
To claim this, I am signing this object:
#cloud-config
write_files:
- path: /run/cloud-config.yml
permissions: '0644'
content: |
#cloud-config
coreos:
fleet:
#cloud-config
write_files:
- path: /run/cloud-config.yml
permissions: '0644'
content: |
#cloud-config
coreos:
fleet:
# Testing packages.
ok cmd/addr2line 0.423s
? cmd/cgo [no test files]
ok cmd/fix 0.013s
ok cmd/go 0.014s
ok cmd/gofmt 0.053s
ok cmd/nm 0.521s
ok cmd/objdump 2.551s
ok cmd/pack 2.934s
// A little blurb I wrote to toggle something on and off, always making sure to toggle off before shutdown
toggle := make(chan bool, 1)
outputPin, err := hwio.GetPinWithMode(pin, hwio.OUTPUT)
if err != nil {
log.Printf("Error getting GPIO pin: %v\n", err)
}
go func() {
mycall NW5W-1
myloc lat 4715.68N lon 12228.20W
<aprsis>
passcode NNNN
server northwest.aprs2.net
filter b/NW5W-10
heartbeat-timeout 0
</aprsis>
Byte# HexVal Char Char>>1 Binary
----- ------ ---- ------- ------
0 0xc0 À ` 11000000
1 0x0 00000000
2 0x82 ‚ A 10000010
3 0xa0   P 10100000
4 0xb4 ´ Z 10110100
5 0x60 ` 0 01100000
6 0x60 ` 0 01100000
7 0x62 b 1 01100010
.. igate from aprsis
interface_receive_3rdparty() aif=0x3397c, aif->digicount=1
pbuf_alloc(118,115) -> 0xb6f66000
parse_aprs_uncompressed position ok: lat 47.261 lng -122.470
.. parse_aprs() rc=OK type=0x8021 srcif=APRSIS tnc2addr='NW5W-10>APRS:@091933z4715.66N/12228.20W_009/002g004t066r000p000P000b10207h53 http://fifestreet.com weewx-VantagePro' info_start='@091933z4715.66N/12228.20W_009/002g004t066r000p000P000b10207h53 http://fifestreet.com weewx-VantagePro'
pbuf_free(0xb6f66000)
parse_aprs_uncompressed position ok: lat 47.261 lng -122.470
.. parse_aprs() rc=OK type=0x8021 srcif=APRSIS tnc2addr='NW5W-10>APRS:@091933z4715.66N/12228.20W_009/002g004t066r000p000P000b10207h53 http://fifestreet.com weewx-VantagePro' info_start='@091933z4715.66N/12228.20W_009/002g004t066r000p000P000b10207h53 http://fifestreet.com weewx-VantagePro'
## produce 3rd-party frame for transmit:
ax25hdr 82 a0 a4 a6 40 40 60 9c|ae 6a ae 40 40 62 ae 92|88 8a 64 40 03 = APRS 0N|W5W 1WI|DE2 .
mycall NW5W-1
myloc lat 4715.68N lon 12228.20W
<aprsis>
passcode NNNN
server oregon.aprs2.net
filter b/NW5W-10
heartbeat-timeout 0
</aprsis>