Skip to content

Instantly share code, notes, and snippets.

View GeorgeHahn's full-sized avatar
🚴‍♂️
🦀🦀🦀

George Hahn GeorgeHahn

🚴‍♂️
🦀🦀🦀
  • Colorado, USA. U+1F3D4
View GitHub Profile
import serial
import io
import struct
from adafruit_debouncer import Debouncer
PORT = "COM7" # update me to match your setup!
BUTTON_0_MASK = 0b000000000010000
BUTTON_1_MASK = 0b000000100000000
BUTTON_2_MASK = 0b000001000000000
@alexklibisz
alexklibisz / 0-firefly-grafana-example.md
Last active December 8, 2024 21:12
Firefly + Grafana Example
@TimJDFletcher
TimJDFletcher / GNUPG_agent_forwarding.md
Last active January 4, 2025 20:05 — forked from surhudm/GNUPG_agent_forwarding.md
GnuPG agent forwarding

Forward GnuPG agent from macOS to Linux

On the remote machine

Run gpg once as your to create the directory structure

gpg --list-keys

For headless systemd based hosts

@strarsis
strarsis / howto.md
Last active November 17, 2024 21:25
KeeAgent (for KeePass) on Bash on Windows / WSL (2)

Update (March 2023) (Last checked: Oktober 2024)

Side note: The latest edge build of KeeAgent plugin offers an option for creating a WSL compatible socket. This would be very handy. I already tried to use that socket, but the socket file is currently empty and ssh inside WSL 2 is unable to use it. This appears to be a very new, unreleased and unstable feature. I will follow the development of it and when it finally works (well, for me) I will update this HOWTO. But until then, please use the proven wsl-ssh-agent/npiperelay.exe approach below.

Thanks to the instructions for WSL 2 of the wsl-ssh-agent project, KeeAgent works great in WSL 2 now: https://github.com/rupor-github/wsl-ssh-agent#wsl-2-compatibility The approach uses minimal and well-maintained tools.

Mini-changelog

#!/usr/bin/env bash
# --slave /usr/bin/$1 $1 /usr/bin/$1-\${version} \\
function register_clang_version {
local version=$1
local priority=$2
update-alternatives \
--install /usr/bin/llvm-config llvm-config /usr/bin/llvm-config-${version} ${priority} \
@egmontkob
egmontkob / Hyperlinks_in_Terminal_Emulators.md
Last active January 10, 2025 02:36
Hyperlinks in Terminal Emulators
@ldez
ldez / gmail-github-filters.md
Last active January 9, 2025 14:27
Gmail and GitHub - Filters

Gmail and GitHub

How to filter emails from GitHub in Gmail and flag them with labels.

The labels in this document are just examples.

Pull Request

Filter Label
@sighingnow
sighingnow / Makefile
Last active October 4, 2024 05:08
Detect operating system in Makefile.
# Detect operating system in Makefile.
# Author: He Tao
# Date: 2015-05-30
OSFLAG :=
ifeq ($(OS),Windows_NT)
OSFLAG += -D WIN32
ifeq ($(PROCESSOR_ARCHITECTURE),AMD64)
OSFLAG += -D AMD64
endif