This gist contains information about TOTP token storage in the myGov Code Generator app, along with instructions on how to extract tokens.
/data/user/0/au.gov.dhs.centrelink.mygovauthenticator:
├───files
│ myGov.ks
status is-interactive | |
or exit 0 | |
if test -n "$XDG_RUNTIME_DIR" | |
set -g __starship_async_tmpdir "$XDG_RUNTIME_DIR"/fish-async-prompt | |
else | |
set -g __starship_async_tmpdir /tmp/fish-async-prompt | |
end | |
mkdir -p "$__starship_async_tmpdir" | |
set -g __starship_async_signal SIGUSR1 |
This gist contains information about TOTP token storage in the myGov Code Generator app, along with instructions on how to extract tokens.
/data/user/0/au.gov.dhs.centrelink.mygovauthenticator:
├───files
│ myGov.ks
#!/bin/bash | |
# test git is working in cwd | |
# git || exit 1 | |
# declare a wrapper function for git | |
git() { | |
command git "$@" || exit 1 | |
} |
# Install Cuda 10.1 and Cudnn 7.6.5 on Ubuntu 18.04 | |
## Start clean | |
sudo apt purge nvidia* | |
sudo apt remove nvidia-* | |
sudo rm /etc/apt/sources.list.d/cuda* | |
sudo apt autoremove && apt autoclean | |
sudo rm -rf /usr/local/cuda* |
""" | |
This gist shows how to run asyncio loop in a separate thread. | |
It could be useful if you want to mix sync and async code together. | |
Python 3.7+ | |
""" | |
import asyncio | |
from datetime import datetime | |
from threading import Thread | |
from typing import Tuple, List, Iterable |
*update: TBC, but this new might affect how easy it is to use this technique past August 2024: Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August
This gist, based in part on a gist by Brian Hartvigsen, allows you to export from Authy your TOTP tokens you have stored there.
Those can be "standard" 6-digits / 30 secs tokens, or Authy's own version, the 7-digits / 10 secs tokens.
#!/usr/bin/php -d open_basedir=/usr/syno/bin/ddns | |
<?php | |
/* | |
Usage Instructions ( Obviously your domain has to be hosted on Namecheap ) | |
1) Copy this file to /usr/syno/bin/ddns/namecheap.php | |
2) Add the following entry in /etc.defaults/ddns_provider.conf | |
[Custom - Namecheap] | |
modulepath=/usr/syno/bin/ddns/namecheap.php |
#! /bin/sh | |
# | |
# @file gist+x.sh | |
# | |
# Gives executable file permissions to files in a Gist. | |
# | |
set -e | |
prog=`basename "$0"` | |
# Command line options. |