Skip to content

Instantly share code, notes, and snippets.

View skandragon's full-sized avatar

Michael Graff skandragon

View GitHub Profile
@skandragon
skandragon / bigmac.brew.doctor.txt
Created July 27, 2011 01:55
bigmac "brew install -v gnuplot" output
bigmac:~ explorer$ brew doctor
Your OS X is ripe for brewing.
Any troubles you may be experiencing are likely purely psychosomatic.
@skandragon
skandragon / gist:47d4769ff988a3e1ce65
Created December 6, 2015 05:46
Successful ESP8266 firmware fetch
05:43:54.826022 IP 10.42.0.47.4097 > 10.42.120.1.80: Flags [S], seq 6663, win 5840, options [mss 1460], length 0
05:43:54.826075 IP 10.42.120.1.80 > 10.42.0.47.4097: Flags [S.], seq 2164104163, ack 6664, win 29200, options [mss 1460], length 0
05:43:54.829596 IP 10.42.0.47.4097 > 10.42.120.1.80: Flags [.], ack 1, win 5840, length 0
05:43:54.830951 IP 10.42.0.47.4097 > 10.42.120.1.80: Flags [P.], seq 1:341, ack 1, win 5840, length 340
05:43:54.830987 IP 10.42.120.1.80 > 10.42.0.47.4097: Flags [.], ack 341, win 30016, length 0
05:43:54.831166 IP 10.42.120.1.80 > 10.42.0.47.4097: Flags [.], seq 1:1461, ack 341, win 30016, length 1460
05:43:54.831197 IP 10.42.120.1.80 > 10.42.0.47.4097: Flags [.], seq 1461:2921, ack 341, win 30016, length 1460
05:43:54.831230 IP 10.42.120.1.80 > 10.42.0.47.4097: Flags [.], seq 2921:4381, ack 341, win 30016, length 1460
05:43:54.831252 IP 10.42.120.1.80 > 10.42.0.47.4097: Flags [.], seq 4381:5841, ack 341, win 30016, length 1460
05:43:54.839129 IP 10.42.0.47.4097 > 10.42.120.1.80:
@skandragon
skandragon / gist:7307d615b20c123ccfab
Created December 6, 2015 06:04
Compiled with "#define UPDATE_SERIAL Serial" (ESP8266 OTA http upgrade failure)
Version: 0.0.3
Sketch size: 228384
Free size: 819200
sta config unchangedscandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 4
pm open phy_2,type:2 0 0
@skandragon
skandragon / gist:3b22582d3138009cf436
Created December 6, 2015 06:04
End of ESP8266 OTA upgrade success
:rch 2920, 1460
:rch 4380, 1460
:c 1, 1460, 5840
:c 1, 1460, 4380
:rch 2920, 1460
@skandragon
skandragon / gist:f22078c2337db4b3ed18
Created December 6, 2015 18:04
GE35 driver code
void wifiLoop()
{
if (!client.connected()) {
if (!server.hasClient())
return;
client = server.available();
if (client.connected())
client.setTimeout(200);
}
if (!client.connected()) {
@skandragon
skandragon / gist:a50cf03ac518092b21be
Created December 6, 2015 18:55
failing update code
#include <ESP8266WiFi.h>
#include <ESP8266httpUpdate.h>
const char* host = "holiday.home.flame.org";
const char* ssid = "home.flame.org";
const char* pass = "xxx";
const uint16_t app_port = 4201;
const char *UPDATE_HOST = "update-hostname-here";
const char *UPDATE_PATH = "path-to-bin-here";
@skandragon
skandragon / gist:3cbbdee89f9a1e31b7d215c95957e37b
Created April 21, 2017 02:52
.org is broken for flame.org...
$ dig flame.org any +dnssec @a0.org.afilias-nst.info.
; <<>> DiG 9.11.0-P5 <<>> flame.org any +dnssec @a0.org.afilias-nst.info.
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30936
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 5, ADDITIONAL: 1
;; WARNING: recursion requested but not available
;; OPT PSEUDOSECTION:
@skandragon
skandragon / 30-skan-ddns
Last active May 1, 2019 00:22
openwrt manual ddns update script
#!/bin/sh
# update via ddns
# /etc/hotplug.d/iface/30-skan-ddns
[ "$INTERFACE" != "wan" ] && ( [ "$ACTION" != "ifup" ] || [ "$ACTION" != "update" ] ) && exit 0
user='username-here'
password='password-here'
token="hmac-md5:$user:$password"
@skandragon
skandragon / color-table-arduino
Last active June 1, 2018 23:19
Arduino controlled color changing table with a lot of sensors
#include <FastLED.h>
// The number of chips connected in series.
#define NUMBER_OF_SHIFT_CHIPS 7
// Directly modify pins, this only works for specific chips, and uses hard-coded pin numbers
#define USE_PIN_DIRECT
// Display serial data. This is slow, so once working, this should be disabled.
#
# Copyright 2021-2022 OpsMx, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License")
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software