Skip to content

Instantly share code, notes, and snippets.

quantenschaum /
Last active August 25, 2020 13:44
simple tile proxy for osmand allowing to use quadkey named tiles
#!/usr/bin/env python3
from flask import Flask, abort, send_file, request
from mercantile import quadkey
from requests import get
from os import makedirs
from os.path import isfile, join, dirname
cache_dir = 'cache'
quantenschaum / Python and other
Last active March 26, 2019 20:27
Python and other cool stuff
View Python and other


Python is great - Batteries included! 🐍

implementations and extensions

  • CPython - the reference
  • IronPython - for the .NET Framework
  • PyPy - alternative implementation with JIT
  • Jython - Python running on Java VM
quantenschaum /
Created August 8, 2018 09:33
create appimage of ausweisapp2
#!/bin/bash -e
git clone $APP
quantenschaum /
Last active June 4, 2018 12:37
my little guide on how to get started with writing software

Start to make software

  1. Use english language, because it's the language of the international community. There is more useful stuff out there in english than in any other language.
  2. Google is your friend! Have a question? Try googling it!

I don't want to give full explanations here, it's just a set of hints and enrty points to get you started.

There are many links in this document. Follow them and read, read, read ...

Open Source Software

quantenschaum /
Created April 15, 2018 18:55
borg backup cron script
#!/bin/bash -e
if [[ $# < 2 ]]; then
echo "usage: backup REPO check | list | PREFIX SRC [--force] [borg_opts]"
if [[ "$USER" != "root" ]]; then
exec sudo -H systemd-inhibit "$0" "$@"
quantenschaum /
Last active December 1, 2022 03:05
install script for kodi standalone mediacenter
# prepare a Ubuntu server minimal installation with working network using network manager
# this works on raspbian, too
apt-get install software-properties-common -y
# install KODI
add-apt-repository ppa:team-xbmc/ppa -y
apt-get update && apt-get install -y kodi xserver-xorg xinit dbus-x11 alsa-utils avahi-daemon
quantenschaum / default.conf
Created January 7, 2018 17:02
nginx default config
View default.conf
server {
listen 80 default_server;
server_name _;
# For Lets Encrypt, this needs to be served via HTTP
location /.well-known/acme-challenge/ {
root /var/www/html; # Specify here where the challenge file is placed
# enforce https
quantenschaum / ssl.conf
Last active January 7, 2018 16:54
nginx ssl config
View ssl.conf
# this is based on information from
# test it with
#listen 443 ssl http2;
#listen [::]:443 ssl http2;