Skip to content

Instantly share code, notes, and snippets.

View merlinsbeard's full-sized avatar
🍙
hey

Ben Paat merlinsbeard

🍙
hey
View GitHub Profile
@merlinsbeard
merlinsbeard / keychron_linux.md
Created October 2, 2021 10:01 — forked from andrebrait/keychron_linux.md
Keychron keyboards on Linux (+ Bluetooth fixes)

Here is the best setup (I think so :D) for Keychron + Linux

Make Fn + F-keys work

Keychron Keyboards on Linux use the hid_apple driver (even in Windows/Android mode), both in Bluetooth and Wired modes. By default, this driver uses the F-keys as multimedia shortcuts and you have to press Fn + the key to get the usual F1 through F12 keys.

In order to change this, you need to change the fnmode parameter for the hid_apple kernel module. Here's some documentation on it, but a quick summary can be found below:

@merlinsbeard
merlinsbeard / GitCommitEmoji.md
Last active July 1, 2019 05:45 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
@merlinsbeard
merlinsbeard / AESCipher.py
Created April 27, 2019 04:52 — forked from swinton/AESCipher.py
Encrypt & Decrypt using PyCrypto AES 256 From http://stackoverflow.com/a/12525165/119849
#!/usr/bin/env python
import base64
from Crypto import Random
from Crypto.Cipher import AES
BS = 16
pad = lambda s: s + (BS - len(s) % BS) * chr(BS - len(s) % BS)
unpad = lambda s : s[0:-ord(s[-1])]