Skip to content

Instantly share code, notes, and snippets.

View majal's full-sized avatar
👫
Living and loving life with my lovely wife. :-)

Majal majal

👫
Living and loving life with my lovely wife. :-)
View GitHub Profile
@majal
majal / minterpolate
Last active May 26, 2024 21:39 — forked from sgqy/minterpolate.sh
Multi-threaded minterpolate in ffmpeg
#!/bin/bash
# Multicore minterpolate in ffmpeg
# Just slice & process & concat
# NB: The concat points between slices may be weird
# Default arguments
ff=/usr/bin/ffmpeg
fps=60
dur=00:00:10
@majal
majal / AuthyToOtherAuthenticator.md
Created December 21, 2022 04:12 — 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

@majal
majal / pdfra
Last active November 12, 2020 20:27 — forked from stefanschmidt/remove-annotations.sh
Remove all annotations from a PDF document
#!/bin/bash
[[ -z "$1" ]] && echo "Please enter a filename. Exiting..."
[[ -z "$1" ]] && exit 1
echo
printf "Stripping annotations from $1... "
pdftk "$1" output "/tmp/$1 - uncompressed.pdf" uncompress
LANG=C sed -n '/^\/Annots/!p' "/tmp/$1 - uncompressed.pdf" > "/tmp/$1 - stripped.pdf"