Skip to content

Instantly share code, notes, and snippets.

View lucasburlingham's full-sized avatar
👀

Lucas Burlingham lucasburlingham

👀
View GitHub Profile

Keybase proof

I hereby claim:

  • I am lucasburlingham on github.
  • I am simondanerd (https://keybase.io/simondanerd) on keybase.
  • I have a public key ASCaPDFL4JNXpv8WJyJVI1tdufphZsMRPTT7mY038t40rwo

To claim this, I am signing this object:

@lucasburlingham
lucasburlingham / sha.html
Created January 11, 2024 17:53
Singlepage SHA256 calculator in PHP using htmx
<?php
if(isset($_REQUEST["string"])) {
printf(hash("sha256", $_REQUEST["string"]));
} else {
printf("No string provided in request. Please provide a \"string\" to hash. POST & GET are supported.");
}
?>
@lucasburlingham
lucasburlingham / sync
Created March 13, 2023 02:34
gnomesettingssync
s
@lucasburlingham
lucasburlingham / index.html
Last active November 27, 2022 00:40
In-tab notepad with storage
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.min.js"
integrity="sha384-cuYeSxntonz0PPNlHhBs68uyIAVpIIOZZ5JqeqvYYIcEL727kskC66kF92t6Xl2V"
crossorigin="anonymous"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
</head>
@lucasburlingham
lucasburlingham / script.sh
Created February 9, 2022 01:45
Loop photo over MP3 file for specified time
#!/bin/bash
# get audio, image, and output files
audio_file=`yad --file . --title "Select MP3 file:"`
image_file=`yad --file . --title "Select image file:"`
output_file=`yad --file . --save --title "Output file name:"`
hours_loop=`yad --entry --numeric --title "Hours to Loop:"`
minutes_loop=`yad --entry --numeric --title "Minutes to Loop:"`
seconds_loop=`yad --entry --numeric --title "Seconds to Loop:"`

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

@lucasburlingham
lucasburlingham / bible.sh
Created September 10, 2021 00:51
Search Biblegateway from the command-line, opening results in the default browser
#!/bin/bash
# (C) Lucas Burlingham 2021
# MIT License
# Command-line client to Biblegateway
#
# Defaults to NASB if version is not specified
if [ -z "$1" ]; then
echo "Usage: "
@lucasburlingham
lucasburlingham / get_popular.sh
Last active September 9, 2021 02:05
Get most popular interactive prompt names
@lucasburlingham
lucasburlingham / catalog.sh
Last active June 8, 2024 19:19
File Scan and Tracker
#!/bin/bash
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[1;34m'
NC='\033[0m'
$CAT_DIR
echo -e "--------- ${GREEN}CATALOGING ISO FILES${NC} ------------"
@lucasburlingham
lucasburlingham / acernitro-ubuntu.txt
Last active August 6, 2021 03:38
Acer Nitro 5 Laptop AN515-53 Review
Installation of any recent Ubuntu release was smooth, simple, and there were no issues to report.
I2C compatible trackpad worked out of the box, and continued to work after compiling and using a more recent 5.11 low-latency kernel.
No issues to report.