Skip to content

Instantly share code, notes, and snippets.

View xPMo's full-sized avatar

Gamma xPMo

View GitHub Profile
@xkonni
xkonni / gist:895b3ae4a1cd9bde0d14312cd7bf1a28
Last active February 15, 2021 13:27
QMK functionality via XKB eight-level config

QMK functionality via XKB eight-level config

Description

Redefine a regular/laptop keyboard to have caps as level5 modifier with special combinations, e.g.

  • vim
    • caps + h = arrow left
    • caps + j = arrow down
    • caps + k = arrow up
@mtigas
mtigas / onion-svc-v3-client-auth.sh
Last active April 22, 2024 07:31
experiments with using v3 onions with client auth (as of tor 0.3.5.X)
#!/bin/bash
# needs openssl 1.1+
# needs `basez` https://manpages.debian.org/testing/basez/base32hex.1.en.html
# (but something else that decodes the base64 and re-encodes the raw key bytes
# to base32 is probably fine too)
##### generate a key
openssl genpkey -algorithm x25519 -out /tmp/k1.prv.pem
@jacoby
jacoby / forecast.pl
Last active February 11, 2017 09:37
Perl program to search Forecast.IO API for current weather conditions, based upon latitude and longitude, and display them in Linux using notify-send
#!/usr/bin/env perl
# forecast.pl is Copyright (C) 2014, by Dave Jacoby.
# It is free software; you can redistribute it and/or modify it under the terms of either:
#
# a) the GNU General Public License as published by the Free Software Foundation; either external linkversion 1, or (at your option) any later versionexternal link, or
#
# b) the "Artistic License".