Skip to content

Instantly share code, notes, and snippets.

View cemlyn007's full-sized avatar

Cemlyn Waters cemlyn007

View GitHub Profile
@cemlyn007
cemlyn007 / switch-shortcuts.sh
Last active March 20, 2025 03:00
MacOS apply keyboard settings and change scroll without restart
#!/bin/sh
set -e
# Function to check if key 118 is enabled (used as a state indicator)
is_windows_mode() {
current_state=$(defaults read com.apple.symbolichotkeys AppleSymbolicHotKeys | grep -A5 '"118" =' | grep "enabled" | grep -c "0")
[ "$current_state" -eq 1 ]
}
# Function to toggle between Mac and Windows keyboard settings
@cemlyn007
cemlyn007 / jitrlaxlambdareturnsbenchmark.ipynb
Created October 31, 2022 15:08
JitRlaxLambdaReturnsBenchmark.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.