Skip to content

Instantly share code, notes, and snippets.

Avatar

Eugene Ware eugeneware

View GitHub Profile
View AuthyToOtherAuthenticator.md

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 Sep 27, 2018 — forked from garfieldnate/imgcat.py
Python 2/3 version of imgcat tool, which displays images inline in iTerm2
View imgcat.py
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 Sep 6, 2018 — forked from sboisson/Create_Iframe_Index_M3U8.bash
Segment an mp4 file to HLS streaming files
View Create_Iframe_Index_M3U8.bash
#!/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 Sep 5, 2018 — forked from pranavraja/transcode.go
Stream/transcode video in real time with ffmpeg for chromecast
View transcode.go
package main
import (
"context"
"encoding/json"
"errors"
"fmt"
"io"
"io/ioutil"
"log"
@eugeneware
eugeneware / LICENSE
Created Sep 3, 2018 — forked from brianbruggeman/LICENSE
Convert Viscosity to Open VPN
View LICENSE
Public Domain
View test.js
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;
}
View mlt.rb
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"
View mlt.rb
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"
View safari_reader.js
/*
* 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) {
View test.js
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';