Skip to content

Instantly share code, notes, and snippets.

View Thomashighbaugh's full-sized avatar
☢️

Thomas Leon Highbaugh Thomashighbaugh

☢️
View GitHub Profile
@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 / blocklists.txt
Last active June 12, 2024 00:11
So I never need to search for blocklists again, here they are collated once and for all,
# Blocklists for UBlock Origin + PiHole
# Mostly taken from https://firebog.net/
# List of 'Suspicious' Domains
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
@Thomashighbaugh
Thomashighbaugh / nixos-dark-mode.js
Last active September 12, 2024 14:31
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/*
@Thomashighbaugh
Thomashighbaugh / artix-dockerfiles.md
Last active January 7, 2023 00:46
Artix Linux Docker Images With the Universe and Omniverse Repos Enabled

Artix Linux Docker Images With the Universe and Omniverse Repos Enabled

As part of my on-going attempt to run my custom Linux environment from an ISO file to ease demonstration and reinstallation thereof, I found myself in need of an Artix Linux image that had two additional repositories available to it. Both of these are repositories put out by the project itself, here you can read about why they are not enabled by default and how to enable them in a fresh installation of Artix Linux. The reason this is necessary is that I need to install a package adding support for the Arch Linux repositories that was recently-ish moved to the Universe repo from Community, thus rendering my ISO

@Thomashighbaugh
Thomashighbaugh / remove-spaces.sh
Created October 1, 2022 20:50
A fully annotated script to remove spaces in file names that provides a thorough description of each portion of the script, describes the reasons for wanting to remove spaces and uses comment bars to create sections for the benefit of those learning BASH shell scripting and my own later reference.
#!/bin/bash
#####################################################################
# Author: Thomas Leon Highbaugh #
# #
# Description: A script to replace spaces in file names with #
# underscores to ease terminal access and navigation #
# on Unix based systems. #
# #
# For those new to Unix-like shell scripts, and my #
# own later reference, I have fully annnotated the #
#! /bin/bash
#################################################################################################################################
# DESCRIPTION: causes the system it is run on to consume 100% of its system resources through the recusive forking of a function
# that does nothing but will continue to fork itself in the background by calling itself.
##################################################################################################################################
# USE: crash the system it is executed on, forces the system to be restarted to resume use thereof
##################################################################################################################################
# WARNING: this is for informational purposes only, don't do stupid or illegal things with it unless willing to pay the karmic toll
# of using it.
############################################################################################################
@Thomashighbaugh
Thomashighbaugh / Notion-Enhancer-Lives.md
Last active February 25, 2023 10:28
Notion Enhancer Needs Not DIe After All See UserScript and Note!

Notion Enhancer Lives

If you are like me, you are not going to start paying some developer to package pieces of the Notion Enhancer Extension in their own extension since Notion Enhancer had stopped working.

Well you don't have thanks to a user script I just found that defeats the means by which the extension had been blocked and must be how the alternatives are able to provide a more limited set of features while desperately trying to get you to upgrade to the pro version to access those old features you knew

@Thomashighbaugh
Thomashighbaugh / icon-optimizer.sh
Last active June 28, 2022 04:44
Scripts useful for icon themes or other large collections of SVGs that one seeks to batch modify using BASH
#!/bin/bash
# --------------------------------------------------- #
# --------------------------------------------------- #
# TODO add in other sizes' subdirectories
cd actions/scalable && for i in *.svg; do svgo -i "$i" --pretty --multipass; done && cd ..
cd apps/scalable && for i in *.svg; do svgo -i "$i" --pretty --multipass; done && cd ..
cd devices/scalable && for i in *.svg; do svgo -i "$i" --pretty --multipass; done && cd ..
cd emblems/scalable && for i in *.svg; do svgo -i "$i" --pretty --multipass; done && cd ..
cd mimetypes/scalable && for i in *.svg; do svgo -i "$i" --pretty --multipass; done && cd ..
cd places/scalable && for i in *.svg; do svgo -i "$i" --pretty --multipass; done && cd ..
@Thomashighbaugh
Thomashighbaugh / convert.sh
Last active December 28, 2022 12:51
A script I use to convert all my fonts from OTF/TTF to WOFF/WOFF2/EOT
#!/bin/bash
# Author: Thomas Leon Highbaugh
# Description: Assuming you have the dependencies installed,
# this will convert your various OTF fonts to TTF than all your TTF fonts to WOFF,
# WOFF2 and EOT. This streamlines including fonts on websites, though consult with
# the font's license before using them for such!
#
# Note: for my own purposes, I have included the dependency installation commands that
# as they are found on archlinux's repositories and the AUR, adjust this to your own distro
# or comment them out otherwise you might have a bad time.