Skip to content

Instantly share code, notes, and snippets.

View skandragon's full-sized avatar

Michael Graff skandragon

View GitHub Profile
aaaaaaaaaaaaa---aaaaaaaaaaaaa---aaaaaaaaaaaaa---aaaaaaaaaaaaa
a-----------a---a-----------a---a-----------a---a-----------a
a-----------a---a-----------a---a-----------a---a-----------a
a-----------a---a-----------a---a-----------a---a-----------a
a-----------a---a-----------a---a-----------a---a-----------a
a-----------a---a-----------a---a-----------a---a-----------a
a-----------a---a-----------a---a-----------a---a-----------a
a-----------a---a-----------a---a-----------a---a-----------a
a-----------a---a-----------a---a-----------a---a-----------a
a-----------a---a-----------a---a-----------a---a-----------a
@skandragon
skandragon / radar-01.yaml
Created December 18, 2022 15:29
ESPHome sensor for my 3d case
esphome:
name: radar-01
esp8266:
board: d1_mini
logger:
level: INFO
ota:
@skandragon
skandragon / rollout.yaml
Last active October 28, 2022 02:11
Example Argo Rollouts with analytics job with argument passing
apiVersion: argoproj.io/v1alpha1
kind: Rollout
metadata:
name: rollouts-demo
namespace: foo
spec:
replicas: 5
strategy:
canary:
analysis:
#
# 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
@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.
@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 / 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 / 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: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: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