Skip to content

Instantly share code, notes, and snippets.

View brandongalbraith's full-sized avatar

B brandongalbraith

  • North America
View GitHub Profile
brandongalbraith /
Created June 8, 2023 17:51 — forked from jarbro/
Generate Symantec VIP Access Token as TOTP

Generate Symantec VIP Access Token as OTP

Recently I came across a web service that required two-factor authentication using the Symantec VIP Access App. I already manage all of my OTP tokens in a different app (If you are on iOS I highly recommend using OTP Auth by Roland Moers.) and did not want to have to use yet another app to generate the TOTP.

There is a way to generate a Symantec VIP Access compatible token very easily if you have access to an environment which can run Python PIP. I happen to have Ubuntu Windows Subsystem Linux running on my machine. (If you are running Windows 10 and don't have this you should really check it out.) Let's get started...



Here we install python3-pip and qrencode so we can generate our secret, I

brandongalbraith /
Last active June 13, 2023 19:18
Mexico Specific Electrical - Plumbing - Solar - Building Knowledge


Additional reference:


  1. Stay with Square D QO line panels, breakers and meter base. Install at least a 100 amp panel (200 amp is preferred) with sufficient breakers and surge suppressor in the panel.
  2. Install a large enough main panel for expansion in the future. I used 42 slot panel.
  3. The total real world amperage in use at one time should not exceed 80% of the panel rating. Example a 125 amp panel should not exceed 100 amps at any one time.
  4. Consider installing wall receptacles every 2 meters ( 6 feet )
  5. Install 20 amp receptacles in kitchen with # 12 AWG wire.
brandongalbraith /
Created May 25, 2022 00:16 — forked from disulfidebond/
Create or Restore Disk Image in Mac OSX


This gist details how to create or restore a disk image in Mac OSX. There are three methods that are described: Carbon Copy Cloner, Disk Utility, and CommandLine.

  • Disclaimer:
    • I have no financial incentives to or Apple.
    • Always make a backup of your data, and make 2 separate backups before trying something new.
    • The following steps have been tested and are a summary of my personal recommendations, but should be used at your own risk.
    • If there is a chance of imminent data loss, contact a professional for assistance, and do not rely on a random person from the Internet for help.

Method 1: Carbon Copy Cloner (CCC)

brandongalbraith / Dockerfile
Created March 11, 2022 19:29 — forked from danopia/Dockerfile
ERCOT Frozen Grid 2021 - Metrics Reporters
FROM hayd/alpine-deno:1.10.1
WORKDIR /src/app
ADD deps.ts ./
RUN ["deno", "cache", "deps.ts"]
ADD *.ts ./
RUN ["deno", "cache", "mod.ts"]
ENTRYPOINT ["deno", "run", "--unstable", "--allow-net", "--allow-hrtime", "--allow-env", "--cached-only", "--no-check", "mod.ts"]
brandongalbraith / login-gov-applications-2020-10-foia-request-response.txt
Last active September 10, 2021 15:47 Application Adoption Velocity Analysis
Department of Agriculture, Forest Service Open Forest Permits
Department of Agriculture, H2A Visa Tracking
Department of Agriculture, National Fire & Aviation Management
Department of Agriculture, Symbols
Department of Defense, ArmyIgnitED
Department of Defense, DS Logon
Department of Defense, DSIP (Defense SBIR/STTR Innovation Portal)
Department of Defense,
brandongalbraith / Minecraft - The Story of Mojang (Official Version!)-ySRgVo1X_18.json
Created July 5, 2021 23:17
Minecraft - The Story of Mojang (Official Version!)-ySRgVo1X_18.json
"title":"Minecraft: The Story of Mojang (Official Version!)",


  • The examples are all over the place. They need to be more consistent.
  • Check that x-archive-queue-derive header. I just skimmed it and it doesn't seem right.
  • Investigate getting an "" address for support requests
  • Some of the standard metadata fields are repeatable, some are not. State this in the descriptions.
  • Excellent Hank idea: Quick Start (TL;DR) section to avoid all the gory details
  • Dang, but this damn thing is hard to read. Will that get better when it gets converted to the PHP wrapper? I have my doubts. May need a some quick George love to give tips for better readability.
  • All the other 'foo' (read: green) bits below
brandongalbraith /
Created June 6, 2021 16:09 — forked from adulau/ - examples

CIRCL hash lookup is a public API to lookup hash values against known database of files. NSRL RDS database is included. More database will be included in the future. The API is accessible via HTTP ReST API and the API is also described as an OpenAPI.

Get information about the hash lookup database (via ReST)

curl -X 'GET' \
  '' \
 -H 'accept: application/json'

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

brandongalbraith / gist:623458b040cfc6b34d6629e00f82733f
Created December 10, 2020 18:19
NWS/National Weather Service Hostnames To Have Request Limits Instituted
# See for context