Skip to content

Instantly share code, notes, and snippets.

View buzztiaan's full-sized avatar
🍑
peachy

buZz buzztiaan

🍑
peachy
View GitHub Profile
@buzztiaan
buzztiaan / cheerlights-nov2018.ino
Created November 28, 2018 03:49
Arduino ESP8266 Cheerlights animating implementation
// cheerlights attempt using that mqtt service somewhere
// buZz NURDspace
// nov 2018
// rebuilt from adafruits' mqtt_esp8266_callback example
#include <ESP8266WiFi.h>
#include "Adafruit_MQTT.h"
#include "Adafruit_MQTT_Client.h"
#include "Adafruit_NeoPixel.h"
@buzztiaan
buzztiaan / gist:07e5844508c9fb5334fe026518c4e030
Last active March 5, 2019 19:41
sent to segwit address by accident
say, you make a new bitcoin address and leave it in your copy paste buffer
then you remember you had to send 1M dogecoin, and paste the address by accident
OMG COINS LOST
or are they?
background of the method this uses ;
https://www.reddit.com/r/btc/comments/6z56x3/attention_benevolent_bch_miners_a_bch/
@buzztiaan
buzztiaan / twitch-doge-donationbot-v1.1.sh
Last active December 10, 2024 15:15
Dogecoin BIP32 derivative address display with incoming transaction notification (for use on Twitch)
#!/bin/bash
# bip32 derived address display thingy with transaction notification
# buZz github.com/buzztiaan
# democlip on https://www.youtube.com/watch?v=e_V9V7n2p_I
# depends on:
# - pycoin (with small patch for DOGE : https://github.com/richardkiss/pycoin/issues/332)
# - jq
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
/***************************************************
Adafruit MQTT Library ESP8266 Example
Must use ESP8266 Arduino from:
https://github.com/esp8266/Arduino
Works great with Adafruit's Huzzah ESP board & Feather
----> https://www.adafruit.com/product/2471
----> https://www.adafruit.com/products/2821
@buzztiaan
buzztiaan / plasma-v1.pl
Created September 14, 2019 23:48
pixelflut plasma for @NURDspace
#!/usr/bin/perl -w
use IO::Socket::INET;
use Time::HiRes qw( gettimeofday tv_interval usleep );
my $sock = new IO::Socket::INET(PeerAddr => '10.208.42.159',
PeerPort => 5003,
Proto => 'udp', Timeout => 1) or die('Error opening socket.');
my $x;
@buzztiaan
buzztiaan / esp8266-hd44780-i2c-pixelflut.ino
Created September 18, 2019 02:43
Pixelflut on a ESP8266 with a HD44780 on a PCF8574 'i2c lcd backpack'
// Pixelflut on a ESP8266 with a HD44780 on a PCF8574 'i2c lcd backpack'
// yeah pretty silly :)
// 2019-09-18 buZz NURDspace.nl
#include <LiquidCrystal_PCF8574.h>
#include <Wire.h>
#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
#define MAXBUF 4096
@buzztiaan
buzztiaan / 24hr.sh
Created September 21, 2019 00:28
Battery discharge and backlight power logging for zipit z2
#!/bin/sh
now=$(date +%s)
dayago=$(( $now - 86400 ))
prevstate="banana";
totaldischargetime=0;
while read -r line; do
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@buzztiaan
buzztiaan / esp8266-ssd1306-i2c-pixelflut.ino
Created November 5, 2019 18:19
esp8266 pixelflut server with a SSD1306 oled 128x64 screen
// esp8266 pixelflut server with a SSD1306 oled 128x64 screen
// only ascii PX x y RRGGBB\n supported for now, no SIZE or RRGGBBAA or binary protocol
#include <Wire.h>
#include "SSD1306Wire.h"
#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
#define MAXBUF 4096