% git clone --depth 1 https://github.com/home-assistant/core
% grep -l climate */const.py | awk -F/ '{print $1}' | xargs -n1 sh -c 'jq .iot_class $1/manifest.json | grep -q local && echo "* https://www.home-assistant.io/integrations/$1"' -
| #!/usr/bin/env bash | |
| # Usage: ./cs "your prompt" | |
| # Runs Claude headlessly, suppresses the TUI, prints Claude's final reply on stdout. | |
| set -uo pipefail | |
| PROMPT="$*" | |
| REPLY_FILE=$(mktemp) | |
| SESSION_ID=$(uuidgen | tr 'A-Z' 'a-z') | |
| ENC_CWD=$(pwd | sed 's|/|-|g') |
| # All my gist code is licensed under the terms of the MIT license. | |
| # Video demo: https://www.youtube.com/shorts/0zx4uSBUt_k | |
| # Add this somewhere in your ~/.bashrc | |
| # Use bash-preexec.sh (https://github.com/rcaloras/bash-preexec) to: | |
| # - disable the Ctrl-Z keybinding before printing the prompt | |
| # - enable the Ctrl-Z keybinding before executing a command | |
| # |
| # All my gist code is licensed under the terms of the MIT license. | |
| # Video demo: https://www.youtube.com/shorts/0zx4uSBUt_k | |
| # Add this somewhere in your ~/.bashrc | |
| # Use bash-preexec.sh (https://github.com/rcaloras/bash-preexec) to: | |
| # - disable the Ctrl-Z keybinding before printing the prompt | |
| # - enable the Ctrl-Z keybinding before executing a command | |
| # |
| #!/bin/bash | |
| gdb -p "$1" -batch -ex 'set {short}$rip = 0x050f' -ex 'set $rax=231' -ex 'set $rdi=0' -ex 'cont' |
% git clone --depth 1 https://github.com/home-assistant/core
% grep -l climate */const.py | awk -F/ '{print $1}' | xargs -n1 sh -c 'jq .iot_class $1/manifest.json | grep -q local && echo "* https://www.home-assistant.io/integrations/$1"' -
| #!/usr/bin/env python3 | |
| # | |
| # Simple Intel x520 EEPROM patcher | |
| # Modifies the EEPROM to unlock the card for non-intel branded SFP modules. | |
| # | |
| # Copyright 2020,2021,2022 Andreas Thienemann <andreas@bawue.net> | |
| # | |
| # Licensed under the GPLv3 | |
| # | |
| # Based on research described at https://forums.servethehome.com/index.php?threads/patching-intel-x520-eeprom-to-unlock-all-sfp-transceivers.24634/ |
This work is released under a Creative Commons Attribution-NoDerivatives 4.0 International License.
"OpenPGP" refers to the OpenPGP protocol, in much the same way that HTML refers to the protocol that specifies how to write a web page. "GnuPG", "SequoiaPGP", "OpenPGP.js", and others are implementations of the OpenPGP protocol in the same way that Mozilla Firefox, Google Chromium, and Microsoft Edge refer to software packages that process HTML data.
I use separate Firefox profiles for work and personal stuff. To distinguish those I place them on different workspaces.
firefox --no-remote -P MyJobfirefox --no-remote -P defaultI have also company Slack on Workspace 0. Which usually contains links to some work stuff.
| // +build linux | |
| package main | |
| import ( | |
| "flag" | |
| "log" | |
| "os" | |
| "runtime" | |
| "time" |