Instantly share code, notes, and snippets.


Model 20KH-006MMX (with NFC & HDR) notes for stuff I've done this far to get the machine to an usable state.

openSUSE Tumbleweed works ok and touchpad & trackpoint & hibernation works out-of-the-box (not the case with Ubuntu 18.04 LTS).

To test out hibernation just type (after this it will appear in the GNOME menus):

# systemctl hibernate


View csv2table.hs
#!/usr/bin/env runhaskell
The MIT License (MIT)
Copyright (c) 2015 Wasif Hasan Baig <>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
View jekyll-flickresponsive.rb
require 'flickraw'
module Jekyll
class FlickresponsiveTag < Liquid::Tag
def initialize(tag_name, text, tokens)
@text = text


curl -sS > bannerlist.txt && \
curl -sS > public_suffix_list.dat

The alternative adds also labels to the database of links generated by the links extract command.

# here, the file to analyise is
cat | tr -c '[:alnum:]' '[\n*]' | tr '[:upper:]' '[:lower:]' | fgrep -v -w -f /usr/share/groff/1.22.3/eign | sort | uniq -c | sort -nr | head -20
#!/usr/bin/env bash
find . -print0 | while read -d $'\0' file
convert -size 800x800 ${file} -resize 800x800 +profile '*' ${file%\.*}_big.jpg
convert -size 200x150 ${file} -resize 200x150 +profile '*' ${file%\.*}_small.jpg
echo "<a class=\"zoom\" rel=\"group02\" title=\"${file}\" href=\"{relocatable: /referenzen/${file%\.*}_big.jpg}\"><img src=\"{relocatable: /referenzen/${file%\.*}_small.jpg}\" alt=\"\" /></a>"
#!/usr/bin/env python3
# based on
import pandocfilters as pf
import sys
import re
def latex(s):
return pf.RawBlock('tex', s)
View features.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am rriemann on github.
  • I am rriemann ( on keybase.
  • I have a public key whose fingerprint is 748F FAD5 40A1 FC46 4035 140A E2F5 D37D 8CA0 510F

To claim this, I am signing this object:

# Scale PDF to specified percentage of original size.
# Ref:
echo "This script doesn't handle files with spaces in them."
SCALE=0.95 # scaling factor (0.95 = 95%, e.g.)