Skip to content

Instantly share code, notes, and snippets.

@eugeneware
eugeneware / AuthyToOtherAuthenticator.md
Created March 5, 2021 04:19 — 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

@eugeneware
eugeneware / imgcat.py
Created September 27, 2018 04:12 — forked from garfieldnate/imgcat.py
Python 2/3 version of imgcat tool, which displays images inline in iTerm2
from __future__ import print_function
import base64
import os
import select
import sys
# tmux requires unrecognized OSC sequences to be wrapped with DCS tmux;
# <sequence> ST, and for all ESCs in <sequence> to be replaced with ESC ESC. It
@eugeneware
eugeneware / Create_Iframe_Index_M3U8.bash
Created September 6, 2018 09:25 — forked from sboisson/Create_Iframe_Index_M3U8.bash
Segment an mp4 file to HLS streaming files
#!/bin/bash
# Create an Iframe index from HLS segmented streams
# $1: Filename to be created
# $2: Location of segmented ts files
# Check how many arguments
if [ $# != 2 ]; then
echo "Usage: $0 [Input filename] [Location of segmented streams]"
exit 1;
fi
@eugeneware
eugeneware / transcode.go
Created September 5, 2018 07:28 — forked from pranavraja/transcode.go
Stream/transcode video in real time with ffmpeg for chromecast
package main
import (
"context"
"encoding/json"
"errors"
"fmt"
"io"
"io/ioutil"
"log"
@eugeneware
eugeneware / LICENSE
Created September 3, 2018 11:28 — forked from brianbruggeman/LICENSE
Convert Viscosity to Open VPN
Public Domain
const tape = require('tape');
const it = require('tape-promise').default(tape);
const { promisify } = require('util');
class MyTest {
constructor (x, y) {
this.x = x;
this.y = y;
}
class Mlt < Formula
desc "Author, manage, and run multitrack audio/video compositions"
homepage "https://www.mltframework.org/"
url "https://github.com/mltframework/mlt/archive/ecb09b14ee2706eecee026cee2478049586d8646.tar.gz"
version "6.4.2"
sha256 "28a13699726c9fec5fc93ed70e7213cb3a2608f3a4ffbaf8bdccb7c63b12df53"
depends_on "pkg-config" => :build
depends_on "ffmpeg"
depends_on "frei0r"
class Mlt < Formula
desc "Author, manage, and run multitrack audio/video compositions"
homepage "https://www.mltframework.org/"
url "https://github.com/mltframework/mlt/archive/master.tar.gz"
version "6.4.2"
sha256 "28a13699726c9fec5fc93ed70e7213cb3a2608f3a4ffbaf8bdccb7c63b12df53"
depends_on "pkg-config" => :build
depends_on "ffmpeg"
depends_on "frei0r"
/*
* Copyright (c) 2010 Apple Inc. All rights reserved.
*/
function characterNeedsScoreMultiplier(e) {
if (!e || e.length === 0)
return !1;
var t = e.charCodeAt(0);
return t > 11904 && t < 12031?!0 : t > 12352 && t < 12543?!0 : t > 12736 && t < 19903?!0 : t > 19968 && t < 40959?!0 : t > 44032 && t < 55215?!0 : t > 63744 && t < 64255?!0 : t > 65072 && t < 65103?!0 : t > 131072 && t < 173791?!0 : t > 194560 && t < 195103?!0 : !1
}
function domDistance(e, t, n) {
@eugeneware
eugeneware / test.js
Created November 3, 2016 21:56
canvas test
var Canvas = require('canvas')
, Image = Canvas.Image
, canvas = new Canvas(200, 200)
, ctx = canvas.getContext('2d');
ctx.fillStyle = '#f00';
ctx.fillRect(0, 0, 200, 200);
ctx.strokeStyle = '#000';
ctx.fillStyle = '#000';