Skip to content

Instantly share code, notes, and snippets.

View Thomashighbaugh's full-sized avatar
:octocat:
W O R K I N G

Thomas Leon Highbaugh Thomashighbaugh

:octocat:
W O R K I N G
View GitHub Profile
@Thomashighbaugh
Thomashighbaugh / favicons.sh
Created August 31, 2023 21:32
Bash script to generate favicons of an assortment of sizes. Lighter, faster and more portable than online tools to achieve the same task necessary for creativity infused web development.
#!/usr/bin/env bash
# from https://github.com/fariasmateuss/favicon-generator/blob/main/favicon.sh
# Provide an image as a parameter, recieve favicons
SRC_IMAGE=$1
CYAN='\033[0;36m'
RED='\033[0;31m'
COLORRESET='\033[0m'
declare -a SIZES
@Thomashighbaugh
Thomashighbaugh / metasearch.user.js
Last active November 12, 2023 23:54
Metasearch user script but without Chinese sites I don't use and some extra search engines I do use.
// ==UserScript==
// @name Metasearch
// @namespace https://gist.github.com/Thomashighbaugh/8a9934e272fe9988e3bc3ff2bf6fea26
// @version 1.2.6
// @description Toolbar on the bottom of search result pages for using the same query to search other search engines. Fork of Jkker's Metasearch
// @author Thomas Leon Highbaugh
// @license MIT
// @match *://google.com/search*
// @match *://*.google.com/search*
// @match *://duckduckgo.com/*
#! /usr/bin/env python
import sys, os
inputOne = sys.argv[1]
inputTwo = sys.argv[2]
for i in sys.argv[1:]:
if ".mp3" in i:
output = i.replace("mp3", "mp4")
#!/usr/bin/env bash
# Check if the required commands are available
if ! command -v ffmpeg &>/dev/null; then
echo "Error: FFmpeg is not installed. Please install FFmpeg."
exit 1
fi
if ! command -v convert &>/dev/null; then
echo "Error: ImageMagick's 'convert' command is not installed. Please install ImageMagick."
#!/usr/bin/env bash
# Check if ffmpeg is installed
if ! command -v ffmpeg &>/dev/null; then
echo "Error: ffmpeg is not installed. Please install it before running this script."
exit 1
fi
# Check for the correct number of command-line arguments
if [ $# -ne 1 ]; then

Getting Pinback to Work With Firefox Versions That Are Not Bookmarklet Friendly

  1. Go to the GitHub repository for Pinback and open up the the file pinback.js
  2. Click the button for Raw and when that opens, Ctrl + a then Ctrl + c
  3. Go to your pintrest user name logged in like the regular instructions
  4. Open up the developer tools by hitting F12 then click the tab for Console that will open up a command-prompt/terminal like line. This will run Javascript locally, which is useful for things like this especially
  5. Now paste the content into the console with ctrl + v and hit Enter (or Return if you are using an Apple keyboard)

Boom! Now It Runs As Expected

@Thomashighbaugh
Thomashighbaugh / neomemphis-template.html
Last active December 13, 2023 12:21
Current (Q4 2023) HTML email and cover letter template. Inspired by Neo-Memphis design (like neubrutalism but not hideous or gawdy).
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Neubrutalist Email Template</title>
<style>
@import url("https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

Keybase proof

I hereby claim:

To claim this, I am signing this object:

info@0ptimus.com
connect@180bytwo.com
privacy@180bytwo.com
connect@180bytwo.com
drew.paquette@33across.com
legal@evercommerce.com
privacy@360mediadirect.com
partner@360mediadirect.com
privacy@360mediadirect.com
partner@360mediadirect.com