Skip to content

Instantly share code, notes, and snippets.

View jtuz's full-sized avatar

Jacob Tuz Poot jtuz

View GitHub Profile
@jtuz
jtuz / vim_copy_lines.text
Created June 12, 2024 19:58 — forked from dinjas/vim_copy_lines.text
How to copy lines matching pattern in vim
qaq # clear register A
:g/pattern/y A # copy lines matching pattern to register A
:let @+ = @a # copy register A to clipboard
@jtuz
jtuz / fix-infinality.md
Created January 3, 2023 06:46 — forked from cryzed/fix-infinality.md
A set of instructions on how to fix the harfbuzz + Infinality issue and restoring good-looking, Infinality-like font rendering.

Disclaimer: Please follow this guide being aware of the fact that I'm not an expert regarding the things outlined below, however I made my best attempt. A few people in IRC confirmed it worked for them and the results looked acceptable.

Attention: After following all the steps run gdk-pixbuf-query-loaders --update-cache as root, this prevents various gdk-related bugs that have been reported in the last few hours. Symptoms are varied, and for Cinnamon the DE fails to start entirely while for XFCE the icon theme seemingly can't be changed anymore etc.

Check the gist's comments for any further tips and instructions, especially if you are running into problems!

Screenshots

Results after following the guide as of 11.01.2017 13:08:

@jtuz
jtuz / keychron_linux.md
Created October 21, 2021 03:17 — 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: