Skip to content

Instantly share code, notes, and snippets.

View wyatt8740's full-sized avatar
💭
I get better every day, I hope. Energetic.

Wyatt Ward wyatt8740

💭
I get better every day, I hope. Energetic.
View GitHub Profile
@wyatt8740
wyatt8740 / oldreddit_dark.user.js
Created November 24, 2023 23:21
dark old reddit userscript
// ==UserScript==
// @name Old Reddit Dark Mode
// @namespace wyatt8740.oldRedditDarkMode
// @description Dark mode for Old Reddit (old.reddit.com)
// @include http://old.reddit.com/*
// @include https://old.reddit.com/*
// @include http://np.reddit.com/*
// @include https://np.reddit.com/*
// @version 1
// @grant UnsafeWindow
@wyatt8740
wyatt8740 / userchrome.css
Created November 24, 2023 14:01
userchrome.css for firefox 118
@import "megabar_kill.css";
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
* {
font-family: "Tahoma NoAA",Tahoma,"Liberation Sans",Arial,Helvetica,sans-serif !important;
}
scrollbar * {
border: 4px black !important;
@wyatt8740
wyatt8740 / userChrome.css
Created June 14, 2021 00:46
Firefox 89 Proton userChrome.css - tabs on bottom attempt - only works with menu bar and bookmarks bar both enabled. See also https://github.com/WesleyBranton/Remove-Firefox-Megabar/blob/master/remove_megabar.css
@import "megabar_kill.css";
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
/* Mostly works as of Firefox 89 (proton). */
/*
#urlbar-container, #search-container{
padding-block: 2px !important;
@wyatt8740
wyatt8740 / android-ls-source-this.sh
Created June 10, 2021 18:29
make android ls stop escaping things
ls() {
# only way I can stop ls from escaping with backslashes
if [ -t 1 ]; then
/system/bin/ls -C $@ |cat
else
/system/bin/ls $@ |cat
fi
}
@wyatt8740
wyatt8740 / mozconfig_32
Created May 30, 2021 20:19
2.53.7(.1) Seamonkey for Pentium M 32-bit cross build
# Misc. - maybe unnecessary, but useful on FF builds
export MOZ_REQUIRE_SIGNING=0
export MOZ_REQUIRE_ADDON_SIGNING=0
export MOZ_ADDON_SIGNING=0
# If you want your voice heard apparently you need telemetry enabled (see: the
# PulseAudio/ALSA fiasco).
# These make telemetry get sent if uncommented
# export MOZILLA_OFFICIAL=1
# export BUILD_OFFICIAL=1
@wyatt8740
wyatt8740 / sega-control-pad-usb.rules
Created May 19, 2021 02:56
Sega Mega Drive/Genesis Mini gamepad (EU/US model): register as a joystick (udev rule)
# Make sega gamepad get detected as a joystick (so SDL2 sees it)
SUBSYSTEM=="input", ATTRS{idVendor}=="0ca3", ATTRS{idProduct}=="0025", GROUP="usb", ENV{ID_INPUT_JOYSTICK}="1"
@wyatt8740
wyatt8740 / mcomix-shuf
Created May 6, 2021 05:42
mcomix image shuffler
#! /usr/bin/env bash
# EXAMPLE USAGE: to shuffle all files in a directory and not traverse recursively or shuffle in subdirectories, try
# mcomix-shuf -f -d 1 .
# -f: only files, no directories
# -d (number): depth to traverse
# to make this more posix-y, don't use 'shuf -z'. Also, it might work without bash.
# you also will need to stop using readlink for true POSIX-ness.
2>/dev/null unset DEPTH
@wyatt8740
wyatt8740 / ff88_view_image_in_current_tab.patch
Last active April 29, 2021 11:21
View image in current tab FF 88 (revert mercurial commit 642068)
diff -r f7c3a7daf522 -r 2823dcb7e532 browser/base/content/browser-context.inc
--- a/browser/base/content/browser-context.inc Thu Mar 11 19:54:41 2021 +0000
+++ b/browser/base/content/browser-context.inc Thu Mar 11 19:36:20 2021 +0000
@@ -164,11 +164,11 @@
data-l10n-id="main-context-menu-image-reload"
oncommand="gContextMenu.reloadImage();"/>
<menuitem id="context-viewimage"
- data-l10n-id="main-context-menu-image-view-new-tab"
+ data-l10n-id="main-context-menu-image-view"
oncommand="gContextMenu.viewMedia(event);"
@wyatt8740
wyatt8740 / POWERPC-CROSS-BUILD.sh
Last active December 24, 2020 14:36
PowerPC 7447a G4 kernel config
#! /bin/sh
# Run only from directory containing kernel repository root.
# this will create a .deb packaged kernel, which can be installed normally via
# `dpkg`.
MAKEFLAGS='-j4'
# this might bump if I don't do this, but I'm not sure. If you want debian's
# revision numbers to bump, definitely comment the following line out:
rm -f .version
@wyatt8740
wyatt8740 / .fvwmrc
Created October 6, 2019 22:56
My Fvwm config
##################################
# ____________________________
# ( _________________________)
# ) (__ _ _ _ _
# ( __)( \/ )( \/\/ )/\/\
# ) ( \ / \ // \
# (___) \/ \/\/(_/\/\_) 2.6
#
#
# This is the default configuration file shipped with fvwm.