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 May 12, 2024 22:53
Firefly + Grafana Example
@TimJDFletcher
TimJDFletcher / GNUPG_agent_forwarding.md
Last active September 7, 2024 11:31 — 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 September 2, 2024 06:47
KeeAgent (for KeePass) on Bash on Windows / WSL (2)

Update (March 2023) (Last checked: June 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

  • (16.03.2024) Add: Ensure 7z and wslvar being available (thanks @johnzielke
#!/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 September 17, 2024 13:27
Hyperlinks in Terminal Emulators
@ldez
ldez / gmail-github-filters.md
Last active August 29, 2024 16:43
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 September 15, 2024 18:07
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