Skip to content

Instantly share code, notes, and snippets.

@jerrywaller
jerrywaller / FireworksXY.ino
Created November 1, 2024 12:52 — forked from kriegsman/FireworksXY.ino
FireworksXY: a quick and dirty 2-D fireworks simulation using FastLED
#include "FastLED.h"
// FireworksXY
// Quick and dirty 2-D fireworks simulation using FastLED.
//
// Originaly designed an Adafruit 5x8 WS2811 shield, but works fine
// on other XY matricies.
//
// by Mark Kriegsman, July 2013
// (and not updated too much since then, so it's a little stale,

After long searching I did not find a good description of how to set up Syncthing that works exclusively via CLI without using a Web browser on the devices.

This is useful for example on a headless Raspberry Pi without proxying web-traffic through SSH or with port-forwarding limitations. In this example we will want to share the default folder from Machine A with Machine B

Machine A Machine B
@jerrywaller
jerrywaller / pinReference.md
Created January 10, 2024 20:23
[PIN confusion]

RP2040 Feather

  • Neopixels
    • CircuitPython: D6 (for neopixel featherwing)
    • Arduino: 8

RP2040 QT PY

  • Neopixels
    • CircuitPython: A3 (I think)
  • Arduino: A3
@jerrywaller
jerrywaller / Microcontroller Pins.md
Last active December 19, 2023 15:45
Microcontroller Pins
QT PY RP2040

Arduino-compatible pin numbering is not obvious. -Board pin A3 should be coded as 26

Feather RP2040 - Neopixel featherwing pin is D6 (it took me far too long to figure this out)

@jerrywaller
jerrywaller / windowsFixes.md
Created September 21, 2023 13:18
Windows Fixes

How to Repair Corrupted Windows System Files with the SFC and DISM Commands

Open Command Prompt or PowerShell as administrator, then run "sfc /scannow" to fix corrupted Windows System Files. If SFC fails to run properly or cannot repair the files, run "DISM /Online /Cleanup-Image /RestoreHealth" to fix any remaining issues.

So: sfc /scannow in order to...

And: DISM /Online /Cleanup-Image /RestoreHealth

@jerrywaller
jerrywaller / userchrome.css
Created July 25, 2023 14:35
[Firefox userchrome.css]
.tab-background {
border-radius: 0px 0px !important;
margin-bottom: 0px !important;
}
.tabbrowser-tab:not([selected=true]):not([multiselected=true]) .tab-background {
background-color: color-mix(in srgb, currentColor 5%, transparent);
}
menupopup>menu,
@jerrywaller
jerrywaller / remoteWinMount.md
Created March 7, 2023 19:26
Mount Remote Windows Drives

\\servername\c$ Put this in Explorer.

@jerrywaller
jerrywaller / SSH-tunneling-proxy.md
Created July 19, 2022 13:18
Socks proxy via putty and/or kitty

SSH tunneling Socks5 proxy

for Firefox with [PuTTY] or [KiTTY]

if: SSH port 22 on server, local proxy port 8080

plink.exe -v -ssh -x -a -T -C -N -P 22 -D 8080 [email protected]
or
klink.exe -v -ssh -x -a -T -C -N -P 22 -D 8080 [email protected]

Store key in cache? (y/n) y

@jerrywaller
jerrywaller / dockersucks.md
Last active September 18, 2023 13:20
Docker Sucks
@jerrywaller
jerrywaller / rpi-clustering-notes.md
Last active April 16, 2023 05:02
raspberry pi clustering

after initial setup (which is its own chapter, and outside the scope of the moment):

ssh-keygen on the primary node (cluster-01)

ssh-copy-id to each respective node, including the primary node itself (in order for pssh commands to replicate properly)

in /home directory of primary node, create .pssh_hosts file containing the LAN names of the nodes (might be a better way to do this, say via IP address):

cluster-01.local
cluster-02.local
cluster-03.local