Skip to content

Instantly share code, notes, and snippets.

View jcanfield's full-sized avatar
💭
If I do not respond quickly, try me on Twitter at @creativeboulder.

Joshua Canfield jcanfield

💭
If I do not respond quickly, try me on Twitter at @creativeboulder.
View GitHub Profile
@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active June 27, 2025 03:11 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy

Exporting your 2FA tokens from Authy to transfer them into another 2FA application

IMPORTANT - Update regarding deprecation of Authy desktop apps

Past August 2024, Authy stopped supported the desktop version of their apps:
See Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August for details.

And indeed, after a while, Authy changed something in their backend which now prevents the old desktop app from logging in. If you are already logged in, then you are in luck, and you can follow the instructions below to export your tokens.

If you are not logged in anymore, but can find a backup of the necessary files, then restore those files, and re-install Authy 2.2.3 following the instructions below, and it should work as expected.

@insane-dev
insane-dev / .bash_aliases
Created July 9, 2017 15:02
Commonly used bash aliases
#!/bin/bash
# Colors
RED='\033[0;31m'
BLACK='\033[0;30m'
DARK_GRAY='\033[1;30m'
LIGHT_RED='\033[1;31m'
GREEN='\033[0;32m'
LIGHT_GREEN='\033[1;32m'
BROWN_ORANGE='\033[0;33m'
@siathalysedI
siathalysedI / new-macos-setup.sh
Created June 28, 2017 06:14
Things to setup/install on a new macOS
#!/bin/bash
# change default shell to zsh (asks for password)
chsh -s /bin/zsh
# install xcode command line tools
xcode-select --install
# download my custom .zshrc
curl https://gist.githubusercontent.com/simonhaenisch/382eab0cfa3435dad7e177a49fe198fc/raw/.zshrc > ~/.zshrc
@jcanfield
jcanfield / rename-files_to-folder.sh
Last active June 11, 2017 00:23
Rename files in a folder to match folder name (useful for htpc usage)
#!/bin/bash
# SYPOPSIS: Rename files in folder to match folder.
# CREDIT: Unamed user on superuser or superadmin. If you find this, let me know and I will add you to the credits.
# UPCOMING: Allow for secondary input such as `rename-files-to-folder $MOVIENAME` so not to rename all movies in directory just one or two.
find * -type f -maxdepth 1 | while read file
do
dirname="$(dirname "$file")"
new_name="${dirname##*/}"
file_ext=${file##*.}
@fibergames
fibergames / dnsupdater.sh
Last active June 23, 2024 18:27
DigitalOcean dynamic DNS updater script for your subdomain
#!/bin/bash
# Created by fibergames.net // Loranth Moroz // v.0.5
# Required tools to run this script as is: curl (https://curl.haxx.se/) & jq (https://stedolan.github.io/jq/)
# This only works for Digitalocean - 10$ credit referral link: https://m.do.co/c/fed75101475f
# Edit token, domain, subdomain to fit your needs
# Substitute ipinfo.io with your own ip-checker e.g. ipecho.net/plain
# This is to be used with crontab -> example entry to run it every 3hours:
# 0 */3 * * * sh /path/to/script/dnsupdater.sh
# Don't forget to make it executable: chmod +x /path/to/script/dnsupdater.sh
@jcanfield
jcanfield / ubuntu-anacrontab.text.sh
Last active February 27, 2017 09:59
[Ubuntu 16.04] Device Information
# /etc/anacrontab: configuration file for anacron
# See anacron(8) and anacrontab(5) for details.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
HOME=/root
LOGNAME=root
# These replace cron's entries
@fabiomontefuscolo
fabiomontefuscolo / docker-compose.yml
Created February 25, 2017 16:21
docker-compose.yml jwilder/nginx + rockechat
version: '2'
services:
nginx:
image: jwilder/nginx-proxy
container_name: superchat
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./nginx.tmpl:/app/nginx.tmpl
@SkaTeMasTer
SkaTeMasTer / opennic
Created February 12, 2017 05:39
Open NIC Project -- get local DNS Servers -- https://www.opennicproject.org/nearest-servers/
output:
Home › Your nearest OpenNIC DNS servers
Your nearest OpenNIC DNS servers
Are…
45.56.117.118 (ns6.ga.us) -- 99.42% uptime
138.197.25.214 (ns10.ny.us) -- 94.79% uptime
96.90.175.167 (ns4.co.us) -- 98.10% uptime
87.98.175.85 (ns10.fr) -- 98.75% uptime
@jcanfield
jcanfield / dns-servers_updated-2017.md
Last active June 10, 2023 09:50
DNS Server List for 2015/2017 (courtesy of http://sos.smerwick.com.tw)

List of DNS Servers

'The following is a list of DNS Servers: both, Private and Public.'

DNS Servers

Why does DNS matter?

The Domain Name System (DNS) protocol is an important part of the web's infrastructure, serving as the Internet's phone book: every time you visit a website, your computer performs a DNS lookup. Complex pages often require multiple DNS lookups before they start loading, so your computer may be performing hundreds of lookups a day.

List of Public DNS Servers

@jknight2014
jknight2014 / atomicinstall.sh
Last active March 7, 2018 10:49
Installer for the Atomic Toolkit by HTPC Beginner
#/bin/bash
#The one step installer for the AtoMiC-ToolKit
#Written by KnightCinema.com
touch /var/log/atomic-install.log
echo "Updating APT ..."
apt-get -y update > /var/log/atomic-install.log
echo "Installing Prerequsits"
apt-get -y install git-core nano python-software-properties dialog > /var/log/atomic-install.log
dialog --title "The AtoMiC Tool Kit installer" --yesno "This will install the AtomMiC toolkit as well as some prerequsits. Please be aware this software is provided with no warranties. Proceed at your own risk. Would you like to continue?" 8 100
# Cloaning into the OPT folder for organization.