Skip to content

Instantly share code, notes, and snippets.

View blizzrdof77's full-sized avatar

Ben Wagner blizzrdof77

View GitHub Profile
@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active May 12, 2025 11:23 — 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.

@blizzrdof77
blizzrdof77 / namei-simple
Created November 29, 2017 06:58
Short/simple output of namei
#!/bin/bash
[[ $# -eq 1 ]] || exit 1
FILEPATH="$1"
while true ; do
ls -ld "$FILEPATH"
[[ "$FILEPATH" != "/" ]] || exit
FILEPATH="$( dirname "$FILEPATH" )"
@blizzrdof77
blizzrdof77 / String.prototypeHelpers.js
Last active September 19, 2022 20:02
Javascript String Prototype Helper Methods
/**
* Helper String Methods/Extensions to the JS String Object
*
* @param String search
* @return Bool
*/
/* Easier way to check if a string contains a substring */
String.prototype.contains = String.prototype.contains || function(search) {
return (this.indexOf(search) !== -1);
@blizzrdof77
blizzrdof77 / TP-Link Smart Plug Web Client Vendor Scripts
Last active August 22, 2018 06:25
TP-Link Smart Plug Web Client
@balloob
balloob / panel-redirect.js
Created June 22, 2020 04:51
Add redirects to the Home Assistant sidebar to any place in Home Assistant
/*
Add a link to the sidebar to any path in Home Assistant
Put this file in <config>/www/panel-redirect.js
In configuration.yaml:
panel_custom:
- name: panel-redirect
# url_path needs to be unique for each panel_custom config
@dale3h
dale3h / custom-quickbar.js
Last active August 26, 2021 17:57
[Home Assistant] Lovelace Custom QuickBar Commands
customElements.whenDefined("ha-quick-bar").then(() => {
const fireEvent = (node, type, detail, options) => {
options = options || {};
detail = detail === null || detail === undefined ? {} : detail;
const event = new Event(type, {
bubbles: options.bubbles === undefined ? true : options.bubbles,
cancelable: Boolean(options.cancelable),
composed: options.composed === undefined ? true : options.composed,
});
event.detail = detail;
@jonlabelle
jonlabelle / Get-Basename.ps1
Last active October 11, 2023 05:21
Gets the file name or directory portion of a path. Similar (but not exact) to the posix BASENAME(1) command, written in PowerShell.
function Get-Basename
{
<#
.SYNOPSIS
Gets the file name or directory portion of a path.
Somewhat similar to the POSIX BASENAME(1) command, written in PowerShell.
.DESCRIPTION
The Get-Basename cmdlet strips any prefix ending with the last slash
character present in string (after first stripping trailing slashes),
@hakerdefo
hakerdefo / sources.list
Last active June 18, 2024 22:43
Debian Stable complete sources.list
deb https://ftp.debian.org/debian/ stable contrib main non-free non-free-firmware
# deb-src https://ftp.debian.org/debian/ stable contrib main non-free non-free-firmware
deb https://ftp.debian.org/debian/ stable-updates contrib main non-free non-free-firmware
# deb-src https://ftp.debian.org/debian/ stable-updates contrib main non-free non-free-firmware
deb https://ftp.debian.org/debian/ stable-proposed-updates contrib main non-free non-free-firmware
# deb-src https://ftp.debian.org/debian/ stable-proposed-updates contrib main non-free non-free-firmware
deb https://ftp.debian.org/debian/ stable-backports contrib main non-free non-free-firmware
blueprint:
name: Turn off Light after Time has elapsed
description: Given a light entity, watch for it turning on, and then turn it off after a certain period of time.
domain: automation
input:
light:
name: Light
description: Select the light to monitor and control
selector:
entity:
@dotWee
dotWee / notify-or-do-something-when-an-appliance-like-a-dishwasher-or-washing-machine-finishes.yaml Home Assistant Blueprint: Notify or do something when an appliance like a dishwasher or washing machine finishes
blueprint:
name: Appliance has finished
description: Do something when an appliance (like a washing machine or dishwasher has finished as detected by a power sensor.
domain: automation
input:
power_sensor:
name: Power Sensor
description: Power sensor entity (e.g. from a smart plug device).
selector:
entity: