Skip to content

Instantly share code, notes, and snippets.

View getchoo's full-sized avatar
🤠

Seth Flynn getchoo

🤠
View GitHub Profile
@getchoo
getchoo / user-overrides.js
Last active February 2, 2023 19:57
my overrides for arkenfox's user.js
/* enable binary checks ***/
user_pref("browser.safebrowsing.malware.enabled", true); // 0401
user_pref("browser.safebrowsing.phishing.enabled", true);
user_pref("browser.safebrowsing.downloads.remote.enabled", true); // 0403
/* enable search in address bar ***/
user_pref("keyword.enabled", true); // 0801
/* override recipe: enable DRM and let me watch videos ***/
user_pref("media.gmp-widevinecdm.enabled", true);
@getchoo
getchoo / protongup
Created March 1, 2022 03:04
a small bash script for updating proton-ge
#!/usr/bin/env bash
################
# protongup - a small bash script for updating proton-ge
################
## constants
_REPO="GloriousEggroll/proton-ge-custom"
_STEAMPATH="$HOME/.steam/root/compatibilitytools.d"
@getchoo
getchoo / get-extra-pkgs
Created March 7, 2022 10:36
a bash script to get what i consider 'extra' packages installed on your system (requires coreutils and sed ofc)
#!/usr/bin/env bash
## get all packages explicitly installed outside of base-devel and your installed desktop environment
if [ -z "$1" ]
then
echo -e 'please use a desktop environment group as an argument\nexample:'
echo ' $ get-extra-pkgs gnome '
exit
fi
@getchoo
getchoo / gif.sh
Last active July 26, 2022 22:15
:trollfig:
#!/bin/bash
# gif.sh - turn videos into gifs with gifski
# original code by hurricanepootis (https://github.com/HurricanePootis)
# shellcheck disable=SC2199
if [[ "$@" =~ '.*help.*']]
then
echo "============================================================================================================================================"
echo "Welcome to my script!"
echo "By default, gif.sh uses 100% quality, which can lead to large file sizes. Using the -s flag will alow you to control quality, as shown below: "
@getchoo
getchoo / windows-install.ps1
Last active January 30, 2026 11:43
my post-install script for windows 11
<#
.SYNOPSIS
post-install script for my windows machines
.DESCRIPTION
sets up apps via winget and scoop, removes default apps, and sets some services to manual
.NOTES
inspired by https://gist.github.com/mikepruett3/7ca6518051383ee14f9cf8ae63ba18a7
#>
$VerbosePreference = "Continue"
#!/usr/bin/env python3
import os
import requests
import re
import toml
PKGDIR = os.getenv("HOME") + "/pkgbuilds"
REGEX_VER = r'pkgver=(.+)'
REGEX_REL = r'pkgrel=(.+)'
API_HEADER = { 'Authorization': 'Bearer ' } # put your github key here
@getchoo
getchoo / updatepkgs.sh
Last active October 28, 2023 09:56
a small posix sh script for updating PKGBUILDs automatically
#!/usr/bin/env sh
## SPDX-License-Identifier: MIT
## a small posix sh script for updating PKGBUILDs
## this uses files named `update.sh` in the same directory as a PKGBUILD
## they can be configured like this:
##
## ```
## name="foo"
## link='https://api.github.com/repos/bar/foo/releases/latest'
@getchoo
getchoo / fedora-install.sh
Created January 30, 2023 21:43
my fedora install script
#!/usr/bin/env sh
# getchoo's fedora install script
set -e
dnf() {
command sudo dnf -y "$@"
}
# initial cleanup/setup
dnf groupremove 'Container Management' 'LibreOffice'
@getchoo
getchoo / link.ps1
Last active February 17, 2023 02:00
symlink files from a retail Team Fortress 2 build to a patched build
@getchoo
getchoo / fardfetch
Created February 18, 2023 14:16
a debloated, blazing fast system information tool written in posix sh only using posix-compliant command line utilities on posix-compliant libre gnu/linux distributions using gnu coreutils and openrc
#!/bin/sh
# fardfetch: a posix information tool
echo "$(id -un)@$(uname -n)" && printf "distro: " && grep -E '^NAME=' /etc/os-release | sed "s/NAME=//;s/\(\"\|'\)//g" && printf "kernel: " && uname -r && printf "uptime: " && uptime | cut -d" " -f 2 && printf "installed packages: " && opkg list-installed | wc -l && echo "shell: $SHELL" && printf "cpu model: " && grep -m 1 'cpu model' /proc/cpuinfo | awk '{for (i = 4; i <= NF; i++) printf "%s ",$i}' && printf "\n" && printf "memory: " && free -h | awk '{print $3,"/"$2}' | sed '1d;3d' && printf "\n" || exit 1