Skip to content

Instantly share code, notes, and snippets.

@BjoernSchilberg
BjoernSchilberg / README.md
Last active September 7, 2018 12:02
SSL HTTPS server in Python 2

README

To generate key and cert files with OpenSSL use following command

openssl req -x509 -newkey rsa:2048 -keyout key-with-pass.pem -out cert.pem -days 365

Strip password out

@BjoernSchilberg
BjoernSchilberg / README.md
Last active November 30, 2022 21:41
tinybasic, micropython, javascript, go and lua on the pokitto?

Custom QGIS

Create customizationfile

The quickest way to get the ini file you need is exporting it from the the Settings -> Customization dialog. Once you have this ini file you can open and edit it to disable any widgets you don't need to see.

Load customizationfile

qgis --customizationfile qgis_custom.ini

Portable QGIS under Windows

@BjoernSchilberg
BjoernSchilberg / README.md
Last active September 7, 2018 11:18
proj4

proj4 Snippets

cs2cs -f "%.6f" +proj=latlong +datum=WGS84 << EOF
52d16'4"N 8d2'35"E
EOF
52.267778	8.043056 0.000000
@BjoernSchilberg
BjoernSchilberg / README.md
Last active September 8, 2017 18:04
Import videos and images stored on an SD card to the IPad

Import videos and images stored on an SD card to the IPad

Videos stored on an SD card can be imported with the Camera Connection Kit when formatted properly.

Formatting your SD card

First, you must set up your SD card. In order for the iPad to recognize your media files, it has to think that the card you store your media on is from a camera.

To do this, set the folder structure to something of the type created on a

@BjoernSchilberg
BjoernSchilberg / .block
Last active November 4, 2021 21:18
Naturdenkmale in Osnabrück
license: bsd-2-clause
@BjoernSchilberg
BjoernSchilberg / blindtiffs.go
Created November 1, 2017 12:37 — forked from s-l-teichmann/blindtiffs.go
A small tool to create a copy of a directory tree with all GeoTIFFs 'blinded' (all values zero) by gdal_calc.py preserving the meta data.
// blindtiffs
// ----------
// Usage: blindtiffs <src> <dst>
// Recursively copies folder <src> to folder <dst>.
// All GeoTIFFs in the source tree are 'blinded' by
// gdal_calc.py to have zero channels but still contain
// all the meta data.
//
// (c) 2017 by Sascha L. Teichmann