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.
/* 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; |
""" | |
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 |