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 / 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
@WillPresley
WillPresley / delay-mapping-netdrives.bat
Created September 12, 2018 15:41
Windows 10 - Delay Mapping Network Drives Until Interface is Up
@echo off
set "Server=192.168.50.125"
set "RetryCount=0"
:CheckServer
rem Ping server only once with a time limit of 1000 ms.
%SystemRoot%\System32\ping.exe -n 1 -w 1000 %Server% >nul
if not errorlevel 1 goto MapDrive
rem Connection to server is not yet established. Give up after 30 seconds
@WillPresley
WillPresley / Bonnaroo Subreddit GPM Playlist Notes - 2018
Last active January 9, 2018 19:12
Notes for the unofficial Bonnaroo 2018 playlist for https://reddit.com/r/bonnaroo | Listen to it: https://goo.gl/jirQyC
Ten songs for each artist (if possible) UP TO and including St Paul & The Broken Bones.
Five each after that.
Missing entirely:
Colin Elmore & The Danville Train (see Youtube).
Could not get enough songs for 10 or 5 (accordingly):
5 more from Virtual Self
SuperJam (will add once leader is announced)
Grand Ole Opry (will add once details released)
Verifying that +cryptecks is my blockchain ID. https://onename.com/cryptecks