Skip to content

Instantly share code, notes, and snippets.

@shawngmc
shawngmc / README.md
Last active May 26, 2026 00:53
Lenovo 300w w/Fedora Sway, etc.

Using the 300w in an effective way

  • Use Fedora Sway Spin - very lightweight
  • Fix Touchpad
@shawngmc
shawngmc / README.md
Created April 3, 2026 05:48
C3 Pro 8K QMK Customization

Goals

Setup

# Install QMK via UV
uv tool install qmk
export QMK_HOME='~/qmk_firmware' # Optional, set the location for `qmk_firmware`
qmk setup  # This will clone `qmk/qmk_firmware` and optionally set up your build environment
@shawngmc
shawngmc / README.md
Last active May 27, 2026 12:04
Mac Setup

Settings

  • General - About - Set Hostname
  • General - Langauge & Region - Date Format to ISO!
  • Network - WiFi - Network - Disable Private MAC

Tweaks

  • Open Home Folder (Cmd-Shift-H), then Options (Cmd-J), then Show Library
  • Disable system sleep while plugged in: pmset -c sleep 0
@shawngmc
shawngmc / README.md
Last active March 25, 2026 05:50
Ubuntu WSL Startup

Install Docker

# Add Docker's official GPG key:
sudo apt update
sudo apt install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:
@shawngmc
shawngmc / readme.md
Last active February 20, 2026 06:39
K8S 202602 (Minikube on Ubuntu) Notes
@shawngmc
shawngmc / README.md
Last active September 25, 2025 19:42
Systemd Cron Task Example w/Email
@shawngmc
shawngmc / test.md
Created September 21, 2025 18:32
Rocky 10 RDP VM/EC2 test
@shawngmc
shawngmc / readme.md
Last active September 5, 2025 22:22
Optimizing C/C++ compilation

I'm getting interested in optimized compiling.

C/C++

  • Flags
    • Gentoo's Safe CFLAGS might be a great starting point!
    • march:
      • ZNVER4/x86_64v4 looks interesting.
      • ZNVER4 will cause tuning (-mtune), x86_64v4 will not.
  • Gentoo's Safe CFLAGS might be a great starting point
@shawngmc
shawngmc / readme.md
Last active August 27, 2025 19:31
Set Top Box
@shawngmc
shawngmc / cachyos_setup.md
Last active May 17, 2026 12:51
DeckU Project

Setup on Cachy OS w/KDE

CachyOS

  • Auto-Login
    • During CachyOS Install
  • Sleep/Auto-Lock
    • KDE Settings
      • Screen Locking: Lock Screen Automatically -> Never, Apply
      • Power Management, Display and Brightness, Turn Off Screen -> Never, Apply
  • Install Sunshine
    • Install package pacman -S sunshine