Skip to content

Instantly share code, notes, and snippets.

View AirstarsAsia's full-sized avatar
🎯
Focusing

PeterM AirstarsAsia

🎯
Focusing
View GitHub Profile
@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active April 7, 2025 09:43 — 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.

@bwbaugh
bwbaugh / unifi-raspberry_pi-instructions.sh
Created August 20, 2016 22:38
Installing Ubiquiti UniFi Controller 5 on Raspberry Pi.
# Mirror of the instructions available here:
# http://www.lowefamily.com.au/2016/06/02/installing-ubiquiti-unifi-controller-5-on-raspberry-pi/
#
# These commands CANNOT be run in a script.
# They're just for reference.
# Install on Raspbian Jessie, or upgrade from Wheezy.
# Make sure all packages are upgraded (update && upgrade).
@tuxudo
tuxudo / AD_Bind.sh
Created June 13, 2016 15:22
Script used to bind Macs to AD. Copied from DeployStudio 1.7.2
#!/bin/sh
# This script shamelessly copied and edited from DeployStudio 1.7.2
# Original here: https://github.com/timsutton/DeployStudioDiffs/blob/c96f9a6244e68a7fb7af432ad47cc39d91b444b6/Packages/Admin/DeployStudio%20Admin.app/Contents/Plugins/DSADBindingTask.bundle/Contents/Resources/Scripts/ds_active_directory_binding/ds_active_directory_binding.10.7.sh
# disable history characters
histchars=
#
# functions
@sheagcraig
sheagcraig / Makefile
Last active October 26, 2017 21:24
Munki/Outset/PyObjC Self Service Set Apple Mail as Default Handler for mailto
include /usr/local/share/luggage/luggage.make
TITLE=set_apple_mail_handler
REVERSE_DOMAIN=com.sas
PAYLOAD=\
pack-usr-local-sas-sas.png \
pack-script-postinstall \
pack-outset-on-demand-set_apple_mail_handler.py \
PACKAGE_VERSION=1.0.0
@pudquick
pudquick / osx_backdrop.py
Last active September 30, 2016 13:56
Python to show an image centered on a black background as your OS X desktop while other python code can run
#!/usr/bin/python
# Put a background in the same directory as this .py file and name it
backdrop_filename = "backdrop.jpg"
# http://wallreborn.com/wp-content/uploads/2015/05/cool-desktop-backgrounds-8-Cool-Wallpaper.jpg
# is a pretty sweet example to try with
# Then run this script from the Terminal :)
@wodim
wodim / poster.py
Created September 19, 2014 12:41
Python script to post images to Twitter. (Needs tweepy)
# -*- coding: utf-8 -*-
import re
import requests
import sys
import md5
import magic
import os
from tweepy.streaming import StreamListener
from tweepy import OAuthHandler
@bryanzak
bryanzak / MunkiConfigure.sh
Last active August 29, 2015 13:57
A very simple example of how we configure Munki based on some information encoded in the computer name and some input from the building tech doing the configuration. This script is normally sent via ARD
#!/bin/bash
# Munki: Configure
role="school"
# valid options: school, staff, lab, classroom, cart
# #################################################
@anotherspot
anotherspot / benderplus
Last active November 30, 2015 03:06
A modified script for robot clouds bender to include Mavericks Server backups of Service Databases
#!/bin/bash
# Bender
# Written by Chad Nielsen
# Forget Computers, Get Creative!
# Version History
# 1.0 - Initial creation of script for use with a companion launch daemon.
# 1.1 - Moved binary and log locations to /usr/local/robotcloud.
# 1.2 - Code improvements and added compatibility with OS X 10.9 Mavericks.
@rtrouton
rtrouton / gist:8016797
Last active September 28, 2023 12:54
createmyguest.sh script, original by nbalonso (https://gist.github.com/nbalonso/5696340)
#!/bin/bash
# Original script by Noel B. Alonso: https://gist.github.com/nbalonso/5696340
#variables
DSCL="/usr/bin/dscl"
SECURITY="/usr/bin/security"
LOGGER="/usr/bin/logger"
# Determine OS version
@scifiman
scifiman / gist:5109047
Created March 7, 2013 15:56
LaunchDaemon to check Adobe Flash version versus Apple's XProtect.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.company.xprotect_re-enable_adobe_flash</string>
<key>ProgramArguments</key>
<array>
<string>sh</string>
<string>/Library/Scripts/xprotect_re-enable_adobe_flash.sh</string>