View tile_proxy.py
#!/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' | |
# https://www.genesismaps.com/SocialMap/Index |
View Python and other stuff.md
Python
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
View ausweisapp2.sh
#!/bin/bash -e | |
DIR="$(pwd)" | |
APP="$DIR/AusweisApp2" | |
TOOLS="$APP-Tools" | |
BUILD="$APP-Build" | |
IMAGE="$APP-Image" | |
git clone https://github.com/Governikus/AusweisApp2.git $APP |
View make-software.md
Start to make software
- 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.
- 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
View backup.sh
#!/bin/bash -e | |
if [[ $# < 2 ]]; then | |
echo "usage: backup REPO check | list | PREFIX SRC [--force] [borg_opts]" | |
exit | |
fi | |
if [[ "$USER" != "root" ]]; then | |
exec sudo -H systemd-inhibit "$0" "$@" | |
fi |
View kodi-setup.sh
#!/bin/bash | |
# 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 |
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 |
View ssl.conf
# this is based on information from | |
# https://cipherli.st | |
# https://mozilla.github.io/server-side-tls/ssl-config-generator/ | |
# https://raymii.org/s/tutorials/Strong_SSL_Security_On_nginx.html | |
# https://scotthelme.co.uk/a-plus-rating-qualys-ssl-test/ | |
# test it with https://www.ssllabs.com/ssltest/ | |
#listen 443 ssl http2; | |
#listen [::]:443 ssl http2; |
View Homöopathie.md
Homöopathie
Literatur
- https://de.wikipedia.org/wiki/Edzard_Ernst
- http://www.spiegel.de/wissenschaft/medizin/medizinprofessor-ernst-die-homoeopathie-ist-ein-dogma-a-706257.html
- http://www.spiegel.de/spiegelwissen/alternative-heilmethoden-edzard-ernst-ueber-die-wirkung-von-globuli-a-934517.html
- https://www.ratioblog.de/entry/sieben-legenden-der-homoeopathie
- http://scienceblogs.de/gesundheits-check/2014/03/22/10-gruende-an-die-homoeopathie-zu-glauben-oder-es-sein-zu-lassen/
- http://scilogs.spektrum.de/detritus/die-sich-wiederholenden-hom-opathenargumente/
NewerOlder