This guide explains how to create, mount, and maintain a VHDX drive for use with WSL (Windows Subsystem for Linux).
- Windows 10/11 with WSL2 installed
- Administrative access
- PowerShell
- Sufficient disk space
| settings put global captive_portal_mode 1 | |
| settings put global captive_portal_use_https 1 | |
| settings put global captive_portal_http_url http://connect.rom.miui.com/generate_204 | |
| settings put global captive_portal_https_url https://connect.rom.miui.com/generate_204 | |
| settings put global captive_portal_fallback_url http://captive.v2ex.co/generate_204 | |
| settings put global captive_portal_other_fallback_urls http://www.google.cn/generate_204 |
| #!/usr/bin/env python3 | |
| import sys | |
| import csv | |
| import argparse | |
| import datetime | |
| def _amount_match(a1,a2): | |
| d1 = float(a1) if a1 else 0 |
| 0.0.0.0 | |
| 1.1.80.147 | |
| 1.1.127.45 | |
| 1.33.190.70 | |
| 1.33.191.58 | |
| 1.209.208.200 | |
| 1.234.1.235 | |
| 1.234.2.155 | |
| 1.234.4.97 | |
| 1.234.17.34 |
| Convention: Byte array notation as it would appear in a hexeditor. | |
| = Layout= | |
| KDBX files, the keepass database files, are layout as follows: | |
| 1) Bytes 0-3: Primary identifier, common across all kdbx versions: | |
| private static $sigByte1=[0x03,0xD9,0xA2,0x9A]; | |
| 2) Bytes 4-7: Secondary identifier. Byte 4 can be used to identify the file version (0x67 is latest, 0x66 is the KeePass 2 pre-release format and 0x55 is KeePass 1) |
| #!/usr/bin/perl | |
| use strict; | |
| use warnings; | |
| use CGI::Emulate::PSGI; | |
| my $app = CGI::Emulate::PSGI->handler(sub { | |
| use CGI; | |
| use Smokeping; | |
| CGI::initialize_globals(); |
| net.core.wmem_max = 12582912 | |
| net.core.rmem_max = 12582912 | |
| net.ipv4.tcp_rmem = 10240 87380 12582912 | |
| net.ipv4.tcp_wmem = 10240 87380 12582912 | |
| net.ipv4.ip_local_port_range = 18000 65535 | |
| net.ipv4.netfilter.ip_conntrack_tcp_timeout_time_wait = 1 | |
| net.ipv4.tcp_window_scaling = 1 | |
| net.ipv4.tcp_max_syn_backlog = 3240000 | |
| net.core.somaxconn = 3240000 | |
| net.ipv4.tcp_max_tw_buckets = 1440000 |
| import SocketServer | |
| from gevent import monkey | |
| monkey.patch_socket(dns=False) | |
| import requests | |
| from dnslib import * | |
| cache = {'0bad.com': ['69.163.160.212'], 'bitstress.com': ['127.0.0.1']} | |
| def redirect_ip(data, ip='144.214.121.220'): |
| // origin: @ayanamist | |
| // ==UserScript== | |
| // @name Twitter Timeline URL Expand | |
| // @namespace Twitter-Timeline-URL-Expand | |
| // @description Replace t.co href of A tag with real url. | |
| // @match http://twitter.com/* | |
| // @match https://twitter.com/* | |
| // @version 1.1 | |
| // ==/UserScript== | |
| (function (window) { |
| # This is supposedly what CRIME by Juliano Rizzo and Thai Duong will do | |
| # Algorithm by Thomas Pornin, coding by xorninja, improved by @kkotowicz | |
| # http://security.blogoverflow.com/2012/09/how-can-you-protect-yourself-from-crime-beasts-successor/ | |
| import string | |
| import zlib | |
| import sys | |
| import random | |
| charset = string.letters + string.digits + "%/+=" |