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.
CHANGE LEGEND: (you MUST replace these in the service file)
#MOUNT
Steps for RClone systemd to autostart on boot
Since all these tools are stil being actively developed, you should always use the newest versions and compile the standalone encoders yourself if necessary.
// ==UserScript== | |
// @name Admiral AntiAdblock Killer | |
// @version 0.3 | |
// @description Admiral AntiAdblock Killer | |
// @author Zekfad | |
// @match https://*/* | |
// @match http://*/* | |
// @grant none | |
// @updateURL https://gist.github.com/Zekfad/ed4f846bd51c8aff41f2cdaad24b21dd/raw/Admiral-AntiAdblock-Killer.user.js | |
// ==/UserScript== |
tar -xvf youtube-dl-2020.09.20.tar.gz
#!/bin/bash | |
### | |
### my-script — does one thing well | |
### | |
### Usage: | |
### my-script <input> <output> | |
### | |
### Options: | |
### <input> Input file to read. | |
### <output> Output file to write. Use '-' for stdout. |
rem see https://github.com/coreybutler/nvm-windows/issues/300 | |
@echo off | |
SETLOCAL EnableDelayedExpansion | |
if [%1] == [] ( | |
echo Pass in the version you would like to install, or "latest" to install the latest npm version. | |
) else ( | |
set wanted_version=%1 |
// create a bookmark and use this code as the URL, you can now toggle the css on/off | |
// thanks+credit: https://dev.to/gajus/my-favorite-css-hack-32g3 | |
javascript: (function() { | |
var elements = document.body.getElementsByTagName('*'); | |
var items = []; | |
for (var i = 0; i < elements.length; i++) { | |
if (elements[i].innerHTML.indexOf('* { background:#000!important;color:#0f0!important;outline:solid #f00 1px!important; background-color: rgba(255,0,0,.2) !important; }') != -1) { | |
items.push(elements[i]); | |
} | |
} |
Debian or Kali Linux installed to as KVM (libvirtd) guests do not automatically have qemu-guest-agent or spice-vdagent installed. This will prevent seamless movement of the mouse cursor between the guest and host desktop in Virtual Machine Manager (requiring the use of a Ctrl-Alt to release the cursor from the guest window).
To cure this, install both qemu-guest-agent and spice-vdagent on each guest and reboot (the guests).
$ sudo apt install qemu-guest-agent
$ sudo apt install spice-vdagent
<?php | |
/** | |
* Plugin Name: Multisite Domain Mapping Attachment URL Fixes | |
* Description: Update attachment URLs to use mapped domain and remove mention of "sites" path. | |
* Author: Chris Hardie | |
* | |
* Rewrite attachment URLs (and related srcset URLs) to the non-multisite, mapped domain version if a domain is mapped | |
* Requires that the related nginx config that maps the non-multisite URL to the multisite URL be in place | |
**/ | |
add_filter( 'wp_get_attachment_url', 'jch_attachment_url_with_domain_mapping' ); |