Skip to content

Instantly share code, notes, and snippets.

View WillPresley's full-sized avatar
🏠
Working from home

Will Presley WillPresley

🏠
Working from home
View GitHub Profile
@WillPresley
WillPresley / userscript_scroll-hijack-fixer.user.js
Last active May 24, 2026 15:46
Scroll Hijacking Fixer (Selective)
// ==UserScript==
// @name Scroll Hijacking Fixer (Selective)
// @namespace https://willpresley.com/
// @version 1.7
// @description Selectively disable scroll hijacking on specific domains.
// @author Billy Presley
// @license Apache-2.0
// @match *://*/*
// @grant GM_setValue
// @grant GM_getValue
@WillPresley
WillPresley / stylus_virtana-zenoss.css
Last active January 20, 2026 14:14
Stylus - Virtana-Zenoss Style Tweaks
/* ==UserStyle==
@name Virtana-Zenoss Style Tweaks [willpresley]
@version 1.0.0
@author WillPresley
==/UserStyle== */
@-moz-document url-prefix("https://ohioit.zenoss.io/cz0/zport/dmd/Events/"), url-prefix("https://ohioit.virtana.ai/cz0/zport/dmd/Events/") {
/* ============================================================
Dark-theme header logo override
------------------------------------------------------------
@WillPresley
WillPresley / wordpress-password-reset-multisite.php
Last active November 12, 2025 14:48 — forked from eteubert/wordpress-passwort-reset-unmultisite.php
WordPress Multisite: Password Reset on Local Blog
<?php
/**
* Plugin Name: Multisite — Local Password Reset
* Plugin URI: https://gist.github.com/WillPresley/6c4d736158f9988fe5298b7fbf03d9cf
* Description: Keep users on their subsite for the entire password reset flow in WP Multisite (lost password, reset links in emails, titles, etc).
* Version: 1.2.0
* Author: Will Presley
* Author URI: https://willpresley.com
* License: MIT
*
@WillPresley
WillPresley / wsl-disk-space.md
Created May 16, 2025 15:36 — forked from janderudder/wsl-disk-space.md
Reclaim WSL's virtual disk unused space

Reclaim WSL's unused virtual disk space

Compact a WSL distro's virtual disk to reclaim unused storage space.

WSL's virtual disk grows when needed but doesn't shrink by itself. Here is how to reclaim the unused space. This can sometimes free hundreds of GBs for use on Windows.

Trim the WSL partition

@WillPresley
WillPresley / Obbe-Vermeij_Development of the Trilogy-and-IV.md
Created December 1, 2023 17:40
Development of the Trilogy & IV by Obbe Vermeij
@WillPresley
WillPresley / wsl-backup-and-compress.ps1
Last active April 17, 2025 04:33
Backup WSL2 Virtual Disks and Compress with 7-Zip
# Backup WSL2 virtual disks using native functions and compress them using 7zip
## Will Presley, 2020
## willpresley.com
#### http://mats.gardstad.se/matscodemix/2009/02/05/calling-7-zip-from-powershell/
# Alias for 7-zip
if (-not (test-path "$env:ProgramFiles\7-Zip\7z.exe")) {throw "$env:ProgramFiles\7-Zip\7z.exe needed"}
set-alias sz "$env:ProgramFiles\7-Zip\7z.exe"
#### Alternative native PS 7-zip: https://www.sans.org/blog/powershell-7-zip-module-versus-compress-archive-with-encryption/
@WillPresley
WillPresley / custom.css
Created May 2, 2020 15:03
PrivateBin Bootstrap CSS Changes
/* PrivateBin Bootstrap CSS Changes -- Will Presley -- https://gist.github.com/WillPresley/159b1027010f88eb3e2b026c8c66756e */
footer h4 small { display: none; }
#aboutbox { font-size: 12px; text-align: right; line-height: 1.15; }
@media (min-width: 992px) { #aboutbox { padding-left: 75px; } }
@media (min-width: 1280px) { #aboutbox { padding-left: 200px; padding-left: 12vw; } }
@WillPresley
WillPresley / monitorr-min.css
Last active April 17, 2020 15:27 — forked from Generator/monitorr-min.css
Monitorr slim minimal - forked & updated in 2020
/* Monitorr minimal - WillPresley fork - https://gist.github.com/WillPresley/b80072238c665ba1170e03cc092c0ab6 */
body.embedded-view {
background: transparent !important;
margin-bottom: 0 !important;
}
body.embedded-view #footer {display:none !important;}
#headermin {
margin-top: 0;
@WillPresley
WillPresley / freshrss-feed-styles.css
Created September 2, 2019 18:55
FreshRSS CSS rules
/* GLOBAL/Interface */
.flux .item.website > a { margin-right: 10px; }
/* All Feeds */
.content blockquote p { margin: 1em; }
/* Android Police */
div[data-feed="3"] .content header,
div[data-feed="3"] .content header ~ div:first-of-type,
div[data-feed="3"] .content header ~ div:nth-last-child(3) { display: none; }
@WillPresley
WillPresley / .gitignore
Last active February 21, 2019 20:39
Filebot Format Expressions - Cryptecks
# folders and files to be ignored by git
############
## Bones
############
Bones.esproj/
############
## IDEs