Skip to content

Instantly share code, notes, and snippets.

View rugk's full-sized avatar
🤔
Thinking…

rugk rugk

🤔
Thinking…
View GitHub Profile
@rugk
rugk / 95-latinimegoogle.sh
Created December 21, 2017 11:12
OTA survival script for AOSP keyboard swipe (LatinME)
#!/sbin/sh
#
# /system/addon.d/95-latinimegoogle.sh
# During an OS upgrade, this script backs up /system/lib/libjni_latinimegoogle.so,
# /system is formatted and reinstalled, then the file is restored.
#
. /tmp/backuptool.functions
list_files() {
@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" )
@rugk
rugk / isVegetarianismKnown.yml
Created August 27, 2017 13:55
YAML with list of countries where vegetarianism is a thing.
# Is vegetarianism (and veganism) a thing in this country?
default: false
# Source: https://en.wikipedia.org/wiki/Vegetarianism_by_country
# (decending sorted by percentage of vegetarians)
# Last updated: Aug 2017
IN: true
IL: true
AU: true
NZ: true
SE: true