Skip to content

Instantly share code, notes, and snippets.

@tatumroaquin
tatumroaquin / wsl2-usbipd-kernel.md
Last active April 10, 2025 09:52
WSL2 custom kernel for usb support

WSL2 USB/IP Kernel Build

At the time of writing WSL 2 does not have official support for interfacing with USB type devices. To solve this, a fork of the usbip project is modified by Microsoft to allow virtual connectivity between USB devices on a host via the USB/IP protocol.

Though it is recommended to use the usbip from a Windows 11 host, there is a way to build a custom WSL2 Kernel in Windows 10 with usbip driver support enabled for USB Mass Storage devices.

This is a supplementary guide which allows for a more linear step by step instruction to eliminate the confusion introduced by the official documentation.

Install USB/IP Client

#
# File name:aria2.conf
#
## 文件保存设置 ##
# 设置代理服务器
# 默认:无
all-proxy=http://127.0.0.1:7890/
@schorrrm
schorrrm / termux-youtube-dl-setup.sh
Created May 26, 2022 12:12
Android Termux youtube-dl - How to setup Youtube Downloads
#!/bin/bash
# Give termux access to your phone's filesystem via ~/storage/shared
termux-setup-storage
# Install python
pkg install python
# Install youtube-dl with pip
pip install youtube-dl
@petershaw23
petershaw23 / yt-dlp.sh
Last active April 22, 2023 08:59
yt-dlp command line for archiving in 480p, best codec (av1)
cd /media/pi/1.42.6-25556/yt-dlp/
echo "beginning______________________________________________________________________________"
echo $(date -u)
#LGR
sudo yt-dlp -S "+res:480,ext:mp4,vcodec:av1" --embed-thumbnail --convert-thumbnails jpg --sponsorblock-mark all --embed-metadata --download-archive LGR.txt https://www.youtube.com/c/Lazygamereviews/videos -o '%(channel)s/%(upload_date>%Y-%m-%d ) s%(title)s.%(ext)s' --windows-filenames --trim-filenames 150 --reject-title 'LGR Plays' --embed-subs --sub-langs en --remux-video mkv --playlist-reverse -q
#LGR BLERBS
sudo yt-dlp -S "+res:480,ext:mp4,vcodec:av1" --embed-thumbnail --convert-thumbnails jpg --sponsorblock-mark all --embed-metadata --download-archive LGRBlerbs.txt https://www.youtube.com/c/lgrblerbs/videos -o '%(channel)s/%(upload_date>%Y-%m-%d ) s%(title)s.%(ext)s' --windows-filenames --trim-filenames 150 --embed-subs --sub-langs en --remux-video mkv --playlist-reverse -q
#GAMINGHISTORIAN
@chapmanjacobd
chapmanjacobd / bdfr+gallerydl+ytdl.fish
Created April 29, 2022 22:52
bdfr gallerydl ytdl
function reddit-photos-getter --argument dfolder url
cd $dfolder
gallery-dl --quiet --cookies ~/.local/cookies.txt --download-archive $HOME/.local/share/gallerydl.sqlite3 $url
if not test $status -eq 0 -o $status -eq 4 -o $status -eq 8 # https://github.com/mikf/gallery-dl/issues/1120
ytdl --quiet -f bestvideo[height<=576]+bestaudio/best[height<=576] --write-sub --write-auto-sub --sub-lang en --sub-format srt/sub/ssa/vtt/ass/best -- $url
end
end
function reddit-photos-get --argument dfolder subr
set tmpfile (mktemp)
@dwn64
dwn64 / gallery-dl-updater.sh
Created April 17, 2022 03:14
A simple shell script to check and update gallery-dl.bin from the official repository
@rohancragg
rohancragg / rgc_homesetup
Last active June 26, 2023 03:57
Home Setup
# Windows Subsystem for Linux
wsl --install -d Ubuntu
# winget
# work / tools
winget install -s winget --id Microsoft.Powershell
winget install -s winget --id Git.Git
winget install -s winget --id 7zip.7zip
winget install -s winget --id Foxit.FoxitReader
# winget install -s winget --id Microsoft.EdgeWebView2Runtime
@garywill
garywill / multiple-search-tool-list.md
Created February 26, 2022 06:00
List / Comparison / Alternatives of open source web searching (multiple search engines) tools

List / Comparison / Alternatives of open source web searching (multi-engines) tools

Here can be outdated. See up-to-date list

Browser Extensions / Addons

Browser addon Web app Build-in engines Categorize engines Search history reuse & manage HTTP POST Websites showing results by Ajax Provide input box User-custom engines Use browser-installed engines Context Menu Search Omnibox Drag to search In-web float panel Use many engines at once Sync settings by browser
Firefox's searchbar - - <10 🟢 ? 🟢 🟠 🟢 🟠 🟢
Big Search 🟢 Cross-browser 🟢 Desktop / Mobile 50+ 🟢 🟢 🟢 🟢 Use web inputbox / button's querySelector 🟢 Multi-line support 🟢 Extra features: 1. Multi-buttons in a engine. 2. Cross-
@NeoNeqs
NeoNeqs / debloater.md
Last active April 17, 2023 03:40
Windows Debloater

Windows FDE

A list of tasks, scripts and settings to debloat a Windows machine. Some parts of this gist are tailored specifaclly for my needs so you might wanna adjust them for yourself.

Starting from Windows 10 instalation:

  1. Backup all data
  2. Clean reset the PC
  3. Install lastest updates
  4. Download Windows 11 Installation Assistant: https://www.microsoft.com/en-us/software-download/windows11
-o "./%(title).190s.%(ext)s"
--no-mtime
--http-chunk-size 5M
--downloader aria2c
--download-archive ~/.yt-dlp-archive
--no-check-certificates
--sponsorblock-remove all