Skip to content

Instantly share code, notes, and snippets.

View AuruTus's full-sized avatar
🦄
🍌🐱 happy~happy~happy 🐱🍌

AuruTus AuruTus

🦄
🍌🐱 happy~happy~happy 🐱🍌
View GitHub Profile
@AuruTus
AuruTus / wsl2_docker_guide.md
Last active July 5, 2024 14:52
How to Install Docker in WSL2 and auto-boot with systemd
@AuruTus
AuruTus / Makefile_hints
Created February 20, 2023 11:24
Makefile useful hints and snippets
# TO MATCH FILES RECURSIVELY
## recursive wildcard
## use it like `SRC := ${call rwildcard, ., *.c *.o *.s}`
rwildcard := ${foreach d,${wildcard ${1:=/*}},${call rwildcard,$d,$2} ${filter ${subst *,%,$2},$d}}
## use find cmd
## NOTE: I prefer this one
SRC := ${shell find . -type f -name *.c -or -name *.o}
# How to prevent make echoing commands to the console
@AuruTus
AuruTus / c_cpp_properties.json
Created September 21, 2022 00:31 — forked from gyulkkajo/c_cpp_properties.json
IntelliSense config file for Linux kernel X86_64.
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}",
"LINUX_PATH/include",
"LINUX_PATH/include/uapi",
"LINUX_PATH/include/generated",
"LINUX_PATH/arch/x86/include",
@AuruTus
AuruTus / WSL_vhdx_migration.md
Last active June 7, 2024 17:00
WSL change virtual disk directories in Win

Remember to terminate the WSL distribution first

wsl --export Ubuntu-20.04 "D:\Hyper-V\wsl\Ubuntu_20_04\Ubuntu_20_04.tar"
wsl --unregister Ubuntu-20.04
wsl --import Ubuntu-20.04 "D:\Hyper-V\wsl\Ubuntu_20_04" "D:\Hyper-V\wsl\Ubuntu_20_04\Ubuntu_20_04.tar" --version 2

WSL2 Proxy Guide For Non-mirrored Network

NOTE: This guide is only for non-mirrored network. For mirrored network, see Microsoft Guide

With the default WSL2 distro setting, WSL2 will have a net interface within private network (, and you can check it with ifconfig). And the Windows Host also has a virtual net interface called vEthernet (WSL), which allows WSL2 to comunicate with it and other networks (, see the routetrack with tracepath or traceroute).