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 / 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 / timestamp2.py
Last active August 29, 2015 14:14 — forked from latenitecali/timestamp2.py
Adjusted Sublime Text 3 plugin for automatic Timestamps (USA datetime formats)
"""
Automatically add and update time stamps in your files.
On file open, will replace [timeStamp] with the current date and time.
Currently looks for two instances of this (example below).
To use, place the text [timeStamp] in your template file where you want it.
ex.
// CREATED: timeStamp
// MODIFIED: timeStamp
/*
Copyright 2013 Martin Hawksey
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software