Skip to content

Instantly share code, notes, and snippets.

View thomasbruninx's full-sized avatar

Thomas Bruninx thomasbruninx

View GitHub Profile
@kmatt
kmatt / void-wsl.txt
Last active September 1, 2025 13:35
Install Void Linux on WSL2
# Based on https://gist.github.com/kmatt/71603170556ef8ffd14984af77ff10c5
# prompt ">" indicates Powershell commands
# prompt "$" are Linux shell commands
# https://docs.microsoft.com/en-us/windows/wsl/install-win10
> dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
> dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
# install https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi
@Gaeel
Gaeel / README.md
Last active July 17, 2023 14:41
Logitech MxKeys for Mac setup guide for Windows 10

Why you need this tweak

By default, the physical layout of the Logitech Mx Keys for Mac does not match any layout defined in Windows 10.

This is quite embarssing because many physical keys are not mapped on the correct character by the operation system.

What is not (yet) working

Only the Print-Screen key.

@exAspArk
exAspArk / macos+ntfs.sh
Last active March 30, 2025 14:42
Mount writable NTFS disk with osxfuse + ntfs-3g
# brew install ntfs-3g
sudo mkdir /Volumes/NTFS
diskutil list
sudo ntfs-3g /dev/disk2s1 /Volumes/NTFS -olocal -oallow_other
rsync -v --progress ~/Downloads/something /Volumes/NTFS/
sudo umount /Volumes/NTFS
@exAspArk
exAspArk / curl.sh
Last active October 18, 2025 13:48
Test CORS with cURL
curl -I -X OPTIONS \
-H "Origin: http://EXAMPLE.COM" \
-H 'Access-Control-Request-Method: GET' \
http://EXAMPLE.COM/SOMETHING 2>&1 | grep 'Access-Control-Allow-Origin'
@dews
dews / Limit mac bandwidth.md
Last active February 14, 2025 18:43
Limit mac bandwidth

Mac limit bandwidth

Enable firewall

Apple menu -> System Preferences -> Security & Privacy -> Firewall

sudo pfctl -e

Example

sudo dnctl pipe 1 config bw 10Kbit/s

@joeypiccola
joeypiccola / diskpart.bat
Created February 2, 2017 18:29
Use diskpart to online, initialize, and format disks
diskpart
select disk 1
attributes disk clear readonly
online disk
select disk 1
clean
convert gpt
create partition primary
format quick fs=ntfs label="data" unit=64k
assign letter=“E"