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

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@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");

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

#!/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
#!/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 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")
@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/*
@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 / ublock-origin-urls.txt
Last active September 19, 2023 14:21
The copy-paste url links I throw on ublock-origin to really keep the BS down to a low level while searching the web. From https://firebog.net/
https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt
https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts
https://v.firebog.net/hosts/static/w3kbl.txt
https://raw.githubusercontent.com/matomo-org/referrer-spam-blacklist/master/spammers.txt
https://someonewhocares.org/hosts/zero/hosts
https://raw.githubusercontent.com/VeleSila/yhosts/master/hosts
https://winhelp2002.mvps.org/hosts.txt
https://v.firebog.net/hosts/neohostsbasic.txt
https://raw.githubusercontent.com/RooneyMcNibNug/pihole-stuff/master/SNAFU.txt
https://paulgb.github.io/BarbBlock/blacklists/hosts-file.txt
@Thomashighbaugh
Thomashighbaugh / nixos-dark-mode.js
Last active January 13, 2024 10:42
Dark mode for NixOS related websites (nixos.org, nixos.wiki, etc) so I can search for packages and read wiki pages, necessities when using this extremely obtuse OS I cannot escape, without burning my eyes.
// ==UserScript==
// @name Dark NixOS Package, Wiki and Main Site
// @namespace http://userstyles.org
// @description Darkened NixOS Websites, includes Wiki and Package Search
// @author Thomas Leon Highbaugh
// @homepage https://userstyles.org/styles/163453
// @match http://nixos.org/*
// @match https://nixos.org/*
// @match http://*.nixos.org/*
// @match https://*.nixos.org/*