Skip to content

Instantly share code, notes, and snippets.

View kratzert's full-sized avatar

Frederik Kratzert kratzert

View GitHub Profile
@kratzert
kratzert / keychron_linux.md
Created October 30, 2022 07:25 — forked from andrebrait/keychron_linux.md
Keychron keyboards on Linux + Bluetooth fixes

Here is the best setup (I think so :D) for K-series Keychron keyboards on Linux.

Most of these commands have been tested on Ubuntu 20.04 and should also work on most Debian-based distributions. If a command happens not to work for you, take a look in the comment section.

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.

@kratzert
kratzert / multiple_ssh_setting.md
Created June 9, 2022 08:34 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@kratzert
kratzert / tmux-cheatsheet.markdown
Created September 21, 2021 19:59 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
#include <qgsapplication.h>
#include <qgsvectorlayer.h>
int main(int argc, char ** argv) {
QgsApplication app(argc, argv, true);
puts ("im alive");
QgsVectorLayer layer ("/home/fishtv/workspace/qgis_test/gre1mio.shp", "a name I like", "ogr");