Skip to content

Instantly share code, notes, and snippets.

View willwm's full-sized avatar

Will Wolff-Myren willwm

View GitHub Profile
@willwm
willwm / Reboot to UEFI from Ubuntu.md
Last active November 4, 2023 06:21
Reboot to UEFI from Ubuntu

Yes, you can reboot directly from Ubuntu into your computer's UEFI interface without holding down any keyboard buttons. Here's how you can do it:

  1. Open a terminal window.

  2. Type the following command and press Enter:

sudo systemctl reboot --firmware-setup

@willwm
willwm / README.md
Last active July 17, 2023 04:33
Keychron K3 Pro Layout (VIA JSON)

Keychron K3 Pro Custom Layout

https://usevia.app/

Notes

  • Rear Switch: Win/Android Mac/iOS
    • Mac/iOS -> Default Layer 0
  • Win/Android -> Default Layer 2
@willwm
willwm / README.md
Created May 7, 2023 20:58
Fix for "exec format error" when running `code` via WSL with Systemd enabled

Fix for "exec format error" when running code via WSL with Systemd enabled

microsoft/WSL#8843 (comment)

sudo sh -c 'echo :WSLInterop:M::MZ::/init:PF > /usr/lib/binfmt.d/WSLInterop.conf'
@willwm
willwm / vial-qmk.md
Last active November 11, 2022 13:29
Vial QMK BrainDump
@willwm
willwm / sudo-touchid.md
Last active November 11, 2022 01:11
Use TouchID to Authenticate sudo

Source: https://it.digitaino.com/use-touchid-to-authenticate-sudo-on-macos/

  1. Run sudo micro /etc/pam.d/sudo
  2. Add auth sufficient pam_tid.so below auth sufficient pam_smartcard.so, so that the file looks like this:
# sudo: auth account password session
auth        sufficient      pam_smartcard.so
auth        sufficient      pam_tid.so
auth required pam_opendirectory.so
@willwm
willwm / 00.py
Last active August 31, 2022 19:32
MacroPad RP2040: My Macros
# SPDX-FileCopyrightText: 2021 Phillip Burgess for Adafruit Industries
#
# SPDX-License-Identifier: MIT
# MACROPAD Hotkeys example: Microsoft Edge web browser for Windows
from adafruit_hid.keycode import Keycode # REQUIRED if using Keycode.* values
app = { # REQUIRED dict, must be named 'app'
'name': 'macOS', # Application name
@willwm
willwm / bitcoin-clock.py
Last active August 23, 2022 16:20
MatrixPortal: My Clock
# SPDX-FileCopyrightText: 2020 Melissa LeBlanc-Williams, written for Adafruit Industries
#
# SPDX-License-Identifier: Unlicense
"""
This example checks the current Bitcoin price and displays it in the middle of the screen
"""
import time
import board
import terminalio
from adafruit_matrixportal.matrixportal import MatrixPortal
@willwm
willwm / code.py
Created August 23, 2022 06:29
MatrixPortal: Metro Matrix Clock (modified)
# SPDX-FileCopyrightText: 2020 John Park for Adafruit Industries
#
# SPDX-License-Identifier: MIT
# Metro Matrix Clock
# Runs on Airlift Metro M4 with 64x32 RGB Matrix display & shield
import time
import board
import displayio
@willwm
willwm / homework.sty
Last active February 7, 2022 15:48
LaTeX Homework Template
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{homework}
\usepackage[margin=1in]{geometry}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage[many]{tcolorbox}
\usepackage{mathtools,amsthm,amssymb,amsfonts,bm}
\usepackage{thmtools,amsmath}
@willwm
willwm / mycolorboxes.sty
Created January 23, 2022 08:00
Selected tcolorbox styles from NotesTeX (https://github.com/Adhumunt/NotesTeX)
%% mycolorboxes.sty:
%% Selected tcolorbox styles from NotesTeX
%% (https://github.com/Adhumunt/NotesTeX)
\ProvidesPackage{mycolorboxes}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage[many]{tcolorbox}
\usepackage{thmtools}