Skip to content

Instantly share code, notes, and snippets.

View rugk's full-sized avatar
🤔
Thinking…

rugk rugk

🤔
Thinking…
View GitHub Profile
@rugk
rugk / CHANGELOG.md
Last active June 29, 2018 06:55
Stylish reader mode extensions: columns, custom width and real dark background

Changelog.md

2016-09-25

  • removed static width as it breaks the width changing mechanism of Firefox 49

2015-11-25

  • improved comments in css files
  • better config on userstyles.org
@rugk
rugk / revealjs-custom-navigation.js
Last active June 16, 2018 23:00
RevealJS – manually specify order/way to move through slides
var customSlideOrder = (function () {
var me = {};
let cycleMode = null;
function customNavigate(navigate) {
const pos = Reveal.getIndices();
// use if's so keywords like "rightdown" are allowed
if (navigate.includes("right")) {
pos.h += 1
@rugk
rugk / git-signing-key-proof.txt
Created October 3, 2017 10:14
Proof that the git signing key belongs to the other key
The PGP key for signing git commits (ABA9 B8F6 F448 B07F D7EA 4A1A 05D4 0A63 6AFA B34D) belongs to me, rugk <at> posteo.de.
Here is a copy of the full key:
- -----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFfIWIwBEADiNf/o13G2RlKSSQH5sriR5ReRwZ6rbuZjisaJzmQ9KKu7o+a9
T7XE88EwcyX3jwTH+mspvtjHNn4eyZHUYm3NmNI/8ZcsGMss6xMq7/27KvhYHvT8
uI+Y3Aszj3OZ1r/bne+D0lW+eY5obH+AR4wMnxLd9AggaQVDOCJ90S0lQJR3gc15
Sn6OdUZdTFc4VyxhsnJu0G/xGTTsxLO4ciBqUYbqDhaiFMNRijjiw601lxri/Cdu
@rugk
rugk / keybase.md
Created October 3, 2017 09:33
Keybase verification

Keybase proof

I hereby claim:

  • I am rugk on github.
  • I am rugk (https://keybase.io/rugk) on keybase.
  • I have a public key whose fingerprint is 7046 C1B2 8644 9EAF 9F3F F5C1 8F16 2AE4 4088 F1BE

To claim this, I am signing this object:

@rugk
rugk / openpgp.txt
Created September 29, 2017 19:38
Verknüpfte OpenKeychain-Identität
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:7046c1b286449eaf9f3ff5c18f162ae44088f1be]
@rugk
rugk / openpgp.txt
Created September 29, 2017 19:38
Verknüpfte OpenKeychain-Identität
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:7046c1b286449eaf9f3ff5c18f162ae44088f1be]
@rugk
rugk / openpgp.txt
Created September 29, 2017 19:38
Verknüpfte OpenKeychain-Identität
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:7046c1b286449eaf9f3ff5c18f162ae44088f1be]
@rugk
rugk / openpgp.txt
Created September 29, 2017 19:38
Verknüpfte OpenKeychain-Identität
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:7046c1b286449eaf9f3ff5c18f162ae44088f1be]
@rugk
rugk / openpgp.txt
Created September 29, 2017 19:38
Verknüpfte OpenKeychain-Identität
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:7046c1b286449eaf9f3ff5c18f162ae44088f1be]
@rugk
rugk / getActiveUser.sh
Last active September 28, 2017 12:34
Return currently active, graphical user…
#!/bin/sh
#
# THanks to https://unix.stackexchange.com/a/394763/146739, there are alos some alternatives
#
# returns all active users currently logged in
getActiveUsers() {
for sessionid in $(loginctl list-sessions --no-legend | awk '{ print $1 }'); do
session=$( loginctl show-session "$sessionid" )