Skip to content

Instantly share code, notes, and snippets.

View hmnd's full-sized avatar
🐱
Making things

David hmnd

🐱
Making things
View GitHub Profile
@hmnd
hmnd / AuthyToOtherAuthenticator.md
Created October 22, 2021 10:18 — forked from gboudreau/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy

Generating Authy passwords on other authenticators


There is an increasing count of applications which use Authy for two-factor authentication. However many users who aren't using Authy, have their own authenticator setup up already and do not wish to use two applications for generating passwords.

Since I use 1Password for all of my password storing/generating needs, I was looking for a solution to use Authy passwords on that. I couldn't find any completely working solutions, however I stumbled upon a gist by Brian Hartvigsen. His post had a neat code with it to generate QR codes for you to use on your favorite authenticator.

His method is to extract the secret keys using Authy's Google Chrome app via Developer Tools. If this was not possible, I guess people would be reverse engineering the Android app or something like that. But when I tried that code, nothing appeared on the screen. My guess is that Brian used the

@hmnd
hmnd / burton-view-refresh.js
Last active September 18, 2021 10:31
burton: improved view refresh
/**
* Construct Knack events for multiple keys
*
* @param {string[]} keys - Event keys
* @param {string} eventType - Knack event type
* @param {JQuery.EventHandler} handler - Event handler
* @param {boolean} [once] - Handle event only once
*/
function knackEventHandlers(keys, eventType, handler, once) {
const handleEvent = once ? $(document).one : $(document).on;

Keybase proof

I hereby claim:

  • I am hmnd on github.
  • I am hmnd (https://keybase.io/hmnd) on keybase.
  • I have a public key whose fingerprint is F862 62E9 40F2 D1FE 8266 079D CD7B 405D 13E2 41B6

To claim this, I am signing this object:

@hmnd
hmnd / screenshot.sh
Created June 9, 2019 06:16
Script to upload screenshots to SFTP and copy URL of uploaded screenshot to clipboard
#!/bin/bash
# Shows error and exits
fatalError() {
rm $1
echo -e "\e[00;31mERROR: $1\e[00m"
exit 1
}
baseUrl="https://YOUR_URL"
@hmnd
hmnd / anonymous_google_profile_images.md
Last active February 26, 2024 09:06
Definitive list of anonymous Google Profile Images
@hmnd
hmnd / gif2mp4.sh
Created January 7, 2018 08:27
Convert gif to mp4 using ffmpeg
#!/usr/bin/env bash
for f in "$@"
do
case $(file --mime-type -b "$f") in
'image/gif')
echo "${f%.*}"
ffmpeg -f gif -i "$f" -pix_fmt yuv420p -c:v libx264 -movflags +faststart -filter:v crop='floor(in_w/2)*2:floor(in_h/2)*2' "${f%.*}.mp4";;
esac
done