Skip to content

Instantly share code, notes, and snippets.


Robert Riemann rriemann

View GitHub Profile
rriemann / definionlist-filter.lua
Created Feb 4, 2020
Pandoc Lua Filter to convert Some Definition Lists to Latex theorem-like Environments and some references to cref tags
View definionlist-filter.lua
-- #!/usr/bin/env lua
-- Pandoc filter to add recommendation blocks in Latex and recognise cleveref references (cref)
-- Markdown Example:
-- Recommendation (Use of Pandoc) {#rec:pandoc}
-- : Pandoc is a nice editor for several reasons:
-- - fast
rriemann /
Created Aug 24, 2018 — forked from JZfi/
Lenovo ThinkPad X1 Carbon 6th gen (X1C6) and openSUSE Tumbleweed notes

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


rriemann / csv2table.hs
Created Apr 30, 2018 — forked from baig/csv2table.hs
A Pandoc filter that replaces Image links having *.csv extension with Pandoc Markdown Tables.
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.

rriemann /
Created Feb 9, 2018
Static Text Analysis: Word Frequency
# 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
rriemann /
Created Feb 9, 2018
convert pictures in for loop
#!/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>"
rriemann /
Created Aug 19, 2017
Pandoc Floating Tables
#!/usr/bin/env python3
# based on
import pandocfilters as pf
import sys
import re
def latex(s):
return pf.RawBlock('tex', s)
rriemann / features.geojson
Last active Jun 23, 2017
Impressions from Romania
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: