Skip to content

Instantly share code, notes, and snippets.

@b2un0
b2un0 / coordinator_backup_remove_stale.sh
Last active December 9, 2025 07:08
zigbee2mqtt cleanup stale devices (nvram / trust center full)
#!/usr/bin/env bash
set -euo pipefail
# --- inputs in current directory ---
DB="database.db" # Zigbee2MQTT JSONL database
BACKUP="coordinator_backup.json" # coordinator backup JSON
CLEANED="z2m_coordinator_backup.cleaned.json"
# -----------------------------------
# sanity checks
@Opa-
Opa- / bitwarden.fish
Created December 18, 2024 10:53
How to use Bitwarden CLI with macOS Touch ID (Fish)
set -x BW_USER '<YOUR-USER>'
function bw
set bw_exec (which bw)
set -x NODE_OPTIONS --no-deprecation
set -g bw_session_file '/var/root/.bitwarden.session'
set -g err_token_not_found "Token not found, please run bw --regenerate-session-key"
function _read_token_from_file
switch $argv[1]
@Clemv95
Clemv95 / ygg-api-download.yml
Last active August 11, 2026 16:47 — forked from LimeDrive/ygg-api.yml
Indexeur ygg-api pour jackett / prowlarr
---
id: yggapi
name: YggAPI
description: Indexeur non-officiel pour YggTorrent (YGG) - MOVIES / TV
language: fr-FR
type: private
encoding: UTF-8
testlinktorrent: false
links:
- https://yggapi.eu/
  • Create a Cloudflare worker with the code provided
  • Install the asar tools
  • Copy the app.asar from cricut (C:\Users\USERNAME\AppData\Local\Programs\Cricut Design Space\resources) out to a folder
  • Unpack the asar with the command asar e app.asar app
  • Open app/cricut-ele-design-space/main.js in a actual text editor - I use VSCode
  • Search and replace apis.cricut.com to your-worker-url.workers.dev
  • Repack the asar with the command asar p app mod-app.asar
  • Replace the cricut app.asar with your new modded one

When Cricut updates the design space you will need to re-do the mod.

@timothyham
timothyham / ipv6guide.md
Last active July 28, 2026 20:00
A Short IPv6 Guide for Home IPv4 Admins

A Short IPv6 Guide for Home IPv4 Admins

This guide is for homelab admins who understand IPv4s well but find setting up IPv6 hard or annoying because things work differently. In some ways, managing an IPv6 network can be simpler than IPv4, one just needs to learn some new concepts and discard some old ones.

Let’s begin.

First of all, there are some concepts that one must unlearn from ipv4:

Concept 1

@tetele
tetele / README.md
Last active April 22, 2026 21:15
ESPHome config - Onju Voice/Home as a voice assistant satellite in Home Assistant
@x-yuri
x-yuri / Overview of Cloud SQL (PostgreSQL) authentication.md
Last active April 14, 2025 16:47
Overview of Cloud SQL (PostgreSQL) authentication

Overview of Cloud SQL (PostgreSQL) authentication

There are 2 ways to connect to a Cloud SQL database: directly, or via a connector. [2 types of connectors][n] are supported: standalone ([Cloud SQL Auth Proxy][b]), and in-process ([Cloud SQL Language Connector][a], available for [Java, Python, Go, and Node.js][c]).

There are also [2 ways to authenticate][d] to a database:

  • The PostgreSQL's built-in authentication (password).
  • IAM database authentication. In this case you need an IAM service account and a [matching PostgreSQL user][e].

But before you can do that, you need to give yourself access to the database ([authorize the connection][f]):

@mietzen
mietzen / macos-bitwarden-cli-with-touch-id.md
Last active June 8, 2026 18:48
How to use use Bitwarden CLI with macOS Touch ID

How to use Bitwarden CLI with macOS Touch ID

If you want to use Bitwarden CLI for ssh have a look at: How to use use Bitwarden CLI for SSH-Keys in macOS

Wirtten and tested on macOS Ventura

Configure Touch ID for the sudo command

To allow Touch ID on your Mac to authenticate you for sudo access instead of a password you need to do the following.

@amunchet
amunchet / noVNCCopyPasteProxmox.user.js
Last active August 26, 2026 18:50
Copy/Paste for noVNC Proxmox
// ==UserScript==
// @name noVNC Paste for Proxmox
// @namespace http://tampermonkey.net/
// @version 0.2a
// @description Pastes text into a noVNC window (for use with Proxmox specifically)
// @author Chester Enright
// @match https://*
// @include /^.*novnc.*/
// @require http://code.jquery.com/jquery-3.3.1.min.js
// @grant none
@superjamie
superjamie / install-ubuntu-luks-lvm.md
Last active August 12, 2026 01:26
How to install Ubuntu with LUKS Encryption on LVM

How to install Ubuntu with LUKS Encryption on LVM

My work requires us to have full-disk encryption, so these are the steps I use.

The basic idea is to create a LUKS-encrypted partition which is used as an LVM Physical Volume.

The GRUB boot partition isn't encrypted, but everything else is.

These steps tested and working on 22.04 (jammy) and 20.04 (focal).