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 / ebook-convert.sh
Created June 1, 2024 11:32
Converts epubs and azw files into PDFs, recursively within the present directory.
#!/bin/bash
# Check if Calibre's ebook-convert command is available
if ! command -v ebook-convert &>/dev/null; then
echo "Calibre's ebook-convert command not found. Please install Calibre."
exit 1
fi
# Create a directory to store the converted PDF files
mkdir -p converted_pdfs
@Thomashighbaugh
Thomashighbaugh / git-history-population.sh
Created June 1, 2024 11:27
A quick bash script that populates each day with several git commits to keep your activity feed looking its fullest.
#!/usr/bin/env bash
TODAY=$(date)
export TODAY
echo "Let's fake us some funk shall we?"
npx fake-git-history my-history
cd my-history || echo "my-history doesn't exist! Failure" && exit
@Thomashighbaugh
Thomashighbaugh / favicon-generation.sh
Created June 1, 2024 10:02
Script to generate faavicons of varied sizes.
#!/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
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

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