Skip to content

Instantly share code, notes, and snippets.

View xphir's full-sized avatar

Elliot Schot xphir

View GitHub Profile
#!/usr/bin/env bash
set -euo pipefail
cli_path="/Library/Developer/CommandLineTools"
flag_file="/tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress"
# Create install trigger file if CLI tools are not installed
if [[ ! -d "$cli_path" ]]; then
echo "🔍 Xcode Command Line Tools not found — preparing installation..."
touch "$flag_file"
@lordpixel23
lordpixel23 / Readme.md
Last active December 3, 2025 20:56
Adding support for Apple fn/Globe key to QMK

What this does

This allows you to define a key for your QMK keyboard which has some of the same functionality as the fn/Globe key on an Apple keyboard. Applying the following patch to your qmk repository creates a new keycode KC_GLOBE which can then be used in your keymaps.

Where is this from

This commit is updating @drashna's code from Nov 2023 to work with the Nov 2024 files.

How to

@fworks
fworks / install-zsh-windows-git-bash.md
Last active August 12, 2025 14:25
Zsh / Oh-my-zsh on Windows Git Bash
@wangruohui
wangruohui / Install NVIDIA Driver and CUDA.md
Last active September 27, 2025 02:50
Install NVIDIA Driver and CUDA on Ubuntu / CentOS / Fedora Linux OS