Skip to content

Instantly share code, notes, and snippets.

View bhanson-techempower's full-sized avatar

Bradley Hanson bhanson-techempower

View GitHub Profile
@Sugavanas
Sugavanas / git.resign.sh
Created November 13, 2021 23:45
Git Alias Resign: Sign Old Commits and Keep commit date same as author date using rebase
echo "Don't execute this script directly. Edit it and copy the command you need.";
exit;
# Make sure you backup your .git folder (better the entire repository) before running this!
# USE AT YOUR OWN RISK!
# Tested with git version 2.33.1
# If on ubuntu, make sure to add the official repo from git to get the latest version.
# This will add a git alias
# Usage: git resign HASH
@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active December 8, 2025 04:45 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy

Exporting your 2FA tokens from Authy to transfer them into another 2FA application

IMPORTANT - Update regarding deprecation of Authy desktop apps

Past August 2024, Authy stopped supported the desktop version of their apps:
See Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August for details.

And indeed, after a while, Authy changed something in their backend which now prevents the old desktop app from logging in. If you are already logged in, then you are in luck, and you can follow the instructions below to export your tokens.

If you are not logged in anymore, but can find a backup of the necessary files, then restore those files, and re-install Authy 2.2.3 following the instructions below, and it should work as expected.

@spinscale
spinscale / volume.lua
Created April 16, 2017 18:19
Hammerspoon: Configure volume via keyboard shortcuts for macbook pro (touchbar, but no keys)
function changeVolume(diff)
return function()
local current = hs.audiodevice.defaultOutputDevice():volume()
local new = math.min(100, math.max(0, math.floor(current + diff)))
if new > 0 then
hs.audiodevice.defaultOutputDevice():setMuted(false)
end
hs.alert.closeAll(0.0)
hs.alert.show("Volume " .. new .. "%", {}, 0.5)
hs.audiodevice.defaultOutputDevice():setVolume(new)