Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@hsiboy
hsiboy / FastLED_AnalogueInputColour.ino
Last active April 21, 2024 19:49
FastLED - Using a potentiometer to control Colour, brightness and speed.
//FastLED_AnalogueInput.ino
/*
Using a potentiometer to control colour, brightness and speed.
Wire up as per http://arduino.cc/en/Tutorial/AnalogInput
You can connect the wiper, to any analogue input pin, and
adjust the settings below.
You will need three 10k potentiometers.
*/

Cute Sparkles

These cool and girly glitters come with lots of flowers, hearts, bows and ribbons! These decorations can suit all sorts of happy and soft aesthetic moods ~ ✨(◕▿◕✿)

✧・゚: *✧・゚:*    *:・゚✧*:・゚✧
.・゜゜・  ・゜゜・.
。・゚゚・  ・゚゚・。
༶•┈┈⛧┈♛ ♛┈⛧┈┈•༶
✧༺♥༻∞  ∞༺♥༻✧

*✿❀ ❀✿*

@hsiboy
hsiboy / Route 53 Updater
Last active February 12, 2024 00:07 — forked from ELLIOTTCABLE/.gitignore
BASH Script to keep Route53 updated with your current external IP address
Roll your own dynamic DNS service using Route53
@hsiboy
hsiboy / Majority_KINGS_DAB_Internet_Radio_notes.md
Last active February 1, 2024 21:27
Majority KINGS DAB+ Internet Radio - notes

Majority Kings Internet DAB+ Radio - Notes

A collection of notes on the inner workings of the majority kings radio.

Features

Media:

@hsiboy
hsiboy / Yamaha_SPX900-Repair_Notes.txt
Last active December 7, 2023 20:14
Yamaha SPX 900 - Repair Notes
Yamaha SPx900 – repair log
-- FAULT --
Noted fault, "BATTERY LOW" warning on switch on, not passing audio.
Inspection revealed that a new battery was in place (reading 3.1v) and at some point, the 4 electrolytic capacitors on the PSU board had been replaced as well as the reservoir capacitor C163 across the 5v rail on the main board.
The display was very faint, and the LED backlight very dim. The display was original.
@hsiboy
hsiboy / lightbar.ino
Created January 16, 2015 16:57
WS2811 - lightbar - FastLED
// From Mark Kriegsman's Anti-aliased light bar example: http://pastebin.com/g8Bxi6zW
#include <FastLED.h>
#define LED_PIN 13 // hardware SPI pin SCK
#define NUM_LEDS 250
#define COLOR_ORDER RGB
#define LED_TYPE WS2811
#define MAX_BRIGHTNESS 255 // watch the power!
#include <SPI.h>
#include <Ethernet.h>
#include <EthernetUdp.h>
#define USE_OCTOWS2811
#include <OctoWS2811.h>
#include <FastLED.h>
// enter desired universe and subnet (sACN first universe is 1)
#define DMX_SUBNET 0
#define DMX_UNIVERSE 1 //**Start** universe
@hsiboy
hsiboy / Lightning.ino
Last active October 25, 2023 10:08
WS2811 - Lightning effect - FastLed
// stolen from https://github.com/fibonacci162
#include <FastLED.h>
#define LED_PIN 13 // hardware SPI pin SCK
#define NUM_LEDS 250
#define COLOR_ORDER RGB
#define LED_TYPE WS2811
#define MAX_BRIGHTNESS 255 // watch the power!
#define FPS 50
@hsiboy
hsiboy / BotBuster.md
Last active July 26, 2023 20:57
Bot-Buster™ - Tracks nefarious activity on website, and manages accordingly.

Bot-Buster™

Tracks nefarious activity on website, and manages accordingly.

It's probably a bot.

If the requesting entity:

  • declares its user-agent as being wget, curl, webcopier etc - it's probably a bot.
  • requests details -> details -> details -> details ad nauseum - it's probably a bot.
  • requests the html, but not .css, .js or site furniture - it's probably a bot.
@hsiboy
hsiboy / wiegand.c
Created March 17, 2014 12:59
Wiegand API for Raspberry Pi
/*
* Wiegand API Raspberry Pi
* By Kyle Mallory All rights reserved.
* 12/01/2013
* Based on previous code by Daniel Smith (www.pagemac.com) and Ben Kent (www.pidoorman.com)
* Depends on the wiringPi library by Gordon Henterson: https://projects.drogon.net/raspberry-pi/wiringpi/
*
* This is linked with -lpthread -lwiringPi -lrt
*
* The Wiegand interface has two data lines, DATA0 and DATA1. These lines are normall held