Skip to content

Instantly share code, notes, and snippets.

View johnjohndoe's full-sized avatar

Tobias Preuss johnjohndoe

View GitHub Profile
@johnjohndoe
johnjohndoe / xnview.ini
Created February 26, 2013 00:24
Settings file for XnView MP for Windows. Stored in C:\Users\%USER%\AppData\Roaming\XnViewMP. Created with XnView MP v0.51 beta.
[Start]
geom=@ByteArray(\x1\xd9\xd0\xcb\0\x1\0\0\xff\xff\xff\xf8\0\0\0\x1e\0\0\0\xcf\0\0\0\xf4\0\0\0\0\0\0\0<\0\0\0\xc7\0\0\0\xec\0\0\0\0\0\0)
RecentFiles=
OpenWith=@Invalid()
OpenWithName=@Invalid()
PathBrowser=C:/
History=
startupType=1
customPath=
startInFull=true
@johnjohndoe
johnjohndoe / berliner-tiefbauaemter.csv
Last active December 14, 2015 20:59
Machine readable list of the Tiefbauämter of Berlin. Converted with http://www.freepdfconvert.com/pdf-excel to convert the PDF to XLS, Google Refine to export the content as JSON and some minor manual work. Go here https://gist.github.com/stefanw/5148169 for Froide Import Format.
We can make this file beautiful and searchable if this error is corrected: Any value after quoted field isn't allowed in line 1.
"Bezirksamt";"Tel.-Zentr.";"Apparat Einwahl +";"Fax Einwahl +";"Dienstgebäude";"Postadresse";"Tiefbau- und Landschaftsplanungsamt FB Tiefbau"
"Mitte (Wedding, Tiergarten)";"9018-0";22823;22783;"Karl-Marx-Allee 31, 10178 Berlin";"Mathilde-Jakob-Platz 1, 10551 Berlin";"strassen-gruenflaechenamt@ba-mitte.verwalt-berlin.de"
"Friedrichshain-Kreuzberg";"90298-0";8040;8015;"Hallisches Ufer 80, 10963 Berlin";"Frankfurter Allee 35/37, 10247 Berlin";"tiefgruen@ba-fk.berlin.de"
"Pankow (Weißensee, Prenzlauer Berg)";"90295-0";;8629;"Darßer Straße 203, 13088 Berlin";"Breite Straße 24 A -26, 13187 Berlin";"tiefbauamt@ba-pankow.verwalt-berlin.de"
"Charlottenburg-Wilmersdorf";"9029-0";14421;14425;"Fehrbelliner Platz 4, 10702 Berlin";"Otto-Suhr-Allee 100, 10585 Berlin";"Tiefbau@charlottenburg-wilmersdorf.de"
"Spandau";"90279-0";2721;2016;"Carl-Schurz-Straße 2/6, 13578 Berlin";"Carl-Schurz-Straße 2-6, 13597 Berlin";"Tiefbau@ba-spandau.berlin.de"
"Steglitz-Zehlendorf";"90299-0";5264;7967;"Hartmannsweilerweg 63, 14163 Berlin";"K
@johnjohndoe
johnjohndoe / colorize-maven.sh
Last active July 22, 2018 16:28 — forked from DanielThomas/colorize-maven.sh
A color script for the console output of maven.
#!/bin/sh
# Written by Mike Ensor (mike@ensor.cc)
# Copywrite 2012
# Use as needed, modify, have fun!
# This is intended to be used for Maven3 + Mac OSX
#
# To use:
# in your ".bashrc" or ".bash_profile" add the following line:
# source ~/<path to script>/colorize-maven.sh
#!/bin/bash
colorize-maven-check-android-device() {
if command_exists color_maven; then
if command_exists check-for-android-device; then
# Check for device.
check-for-android-device
@johnjohndoe
johnjohndoe / check-for-android-device.sh
Created April 16, 2013 17:54
Shell script which checks if any Android device is connected. I execute this script before processing a Maven project in order to save time when the device has fallen asleep.
#!/bin/bash
check-for-android-device() {
ADB_PATH="${ANDROID_HOME}/platform-tools"
NOT_PRESENT="List of devices attached"
ADB_FOUND=`${ADB_PATH}/adb devices | tail -2 | head -1 | cut -f 1 | sed 's/ *$//g'`
if [[ ${ADB_FOUND} == ${NOT_PRESENT} ]]; then
echo "Android device seems to be missing."
@johnjohndoe
johnjohndoe / macosx-software.md
Created April 17, 2013 13:21
A list of MacOSX software which helps getting things done more efficiently.

MacOS

  • Alfred - Alfred saves you time when you search for files online or on your Mac
  • Bartender - Organize your Menu Bar Apps
  • Caffeine - Don't let your Mac fall asleep
  • Classic Color Meter - Replacement for Apple's DigitalColor Meter application
  • GrabBox - Simple screenshot sharing for Mac
  • iStat Menus - Mac system monitor, covering an enormous range of stats
  • Mailplane 3 - GMail client
  • SizeUp - The missing window manager
@johnjohndoe
johnjohndoe / README.md
Last active December 29, 2019 20:18
Perl script to convert KML data exported from Google Latitude into GPX data.

KML to GPX converter

Download GPS data from Google Latitude

Google Latitude location history KML export is very interesting. GPS track log is easy to handle geotagging photos than Google Latitude KML data file. I wrote a perl program to convert from KML to GPX track log.

Google Latitude / KML data download

@johnjohndoe
johnjohndoe / Ausländerbehörden_ortsdienst.de.csv
Last active December 18, 2015 01:48
Address list of German aliens registration authority (German: "Ausländerbehörde"). Extracted from ortdienst.de using http://scraperwiki.com/scrapers/auslanderbehorden/.
We can make this file beautiful and searchable if this error is corrected: Any value after quoted field isn't allowed in line 1.
"state";"city";"phone";"fax";"email";"name";"address";"source"
"Bayern";"Aschaffenburg";"060213301485";"06021330626";"stadt-aschaffenburg@aschaffenburg.de";"Ausländeramt in Aschaffenburg";"Dalbergstraße 15, 63739 Aschaffenburg";"http://www.ortsdienst.de/Auslaenderbehoerde/Bayern/Aschaffenburg/Auslaenderbehoerde/Auslaenderamt-inst107450/"
"Bayern";"Aschaffenburg";"06021394247";"06021394316";;"Ausländeramt des Landkreises in Aschaffenburg";"Bayernstraße 18, 63739 Aschaffenburg";"http://www.ortsdienst.de/Auslaenderbehoerde/Bayern/Aschaffenburg/Auslaenderbehoerde/Auslaenderamt-des-Landkreises-inst99307/"
"Bayern";"Bad-Kissingen";"09718013300";"09718013321";"auslaenderbehoerde@landkreis-badkissingen.de";"Ausländerbehörde des Landkreises in Bad Kissingen";"Obere Marktstraße 6, 97688 Bad Kissingen";"http://www.ortsdienst.de/Auslaenderbehoerde/Bayern/Bad-Kissingen/Bad-Kissingen/Auslaenderbehoerde/Auslaenderbehoerde-des-Landkreises-inst99605/"
"Bayern";"Bad-Neustadt-an-der-Saale";"0977194119";"097719481119";;"Auslände
@johnjohndoe
johnjohndoe / shapefiles_demo.rb
Last active December 19, 2015 19:38
Simple Ruby script to demonstrate using Ruby bindings to access gdal's API. Source: http://groups.open.org.nz/groups/geomash/messages/topic/1cM3o6EkTv0sjbeG460Qfw
# Simple Ruby script to demonstrate using Ruby bindings to access gdal's API
#
# Author: andrewfa
# Date: Mar 19, 2012
# Source: http://groups.open.org.nz/groups/geomash/messages/topic/1cM3o6EkTv0sjbeG460Qfw
require 'rubygems'
require 'gdal-ruby/ogr'
filename = './nz-primary-road-parcels.shp'