Skip to content

Instantly share code, notes, and snippets.

View davidoesch's full-sized avatar
🏠
Working from home

David Oesch davidoesch

🏠
Working from home
View GitHub Profile
<?xml version='1.0' encoding='UTF-8'?>
<kml xmlns='http://www.opengis.net/kml/2.2'>
<Document>
<name>Anstoss_CH1_2016_02</name>
<Style id='Style2-polygon-1'>
<LabelStyle>
<scale>0.0</scale>
</LabelStyle>
<LineStyle>
<color>ff666666</color>
<?xml version='1.0' encoding='UTF-8'?>
<kml xmlns='http://earth.google.com/kml/2.2'>
<Document>
<name>VSA Regendaten (vsa.kml)</name>
<Style id="highlightPlacemark">
<IconStyle>
<scale>2.5</scale>
<Icon>
<href>http://maps.google.com/mapfiles/kml/pushpin/ltblu-pushpin.png</href>
@davidoesch
davidoesch / kantonelabel.kml
Created June 19, 2016 14:52
Label Kantone
<?xml version="1.0" standalone="yes"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<name><![CDATA[Kantone Label]]></name>
<visibility>1</visibility>
<open>0</open>
<Snippet><![CDATA[created using <A href="http://www.gpsvisualizer.com/?ref=ge&time=20160619074246">GPS Visualizer</A>]]></Snippet>
<Style id="gv_waypoint_normal">
<IconStyle>
<color>ffffffff</color>
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2"
xmlns:atom="http://www.w3.org/2005/Atom">
<Document>
<name><![CDATA[gps30175]]></name>
<atom:link href="http://www.garmin.com"/>
<TimeStamp>
<when>2016-05-27T17:25:53Z</when>
@davidoesch
davidoesch / googelmymaps,kml
Created August 10, 2016 08:00
googelmymaps
<?xml version='1.0' encoding='UTF-8'?>
<kml xmlns='http://www.opengis.net/kml/2.2'>
<Document>
<name>Directions from Bahnhofpl. 4, 2502 Biel, Switzerland to Lerchenweg 4-6, 3270 Aarberg, Switzerland</name>
<Placemark>
<name>Directions from Bahnhofpl. 4, 2502 Biel, Switzerland to Lerchenweg 4-6, 3270 Aarberg, Switzerland</name>
<styleUrl>#line-1267FF-5-nodesc</styleUrl>
<LineString>
<tessellate>1</tessellate>
<coordinates>7.24273,47.13286,0.0 7.24232,47.13221,0.0 7.24208,47.13201,0.0 7.24184,47.1318,0.0 7.24163,47.13151,0.0 7.2411,47.13084,0.0 7.24108,47.13081,0.0 7.24078,47.13091,0.0 7.24061,47.13097,0.0 7.24054,47.13098,0.0 7.24046,47.13096,0.0 7.24036,47.13093,0.0 7.24024,47.13092,0.0 7.24014,47.13094,0.0 7.23988,47.13103,0.0 7.23978,47.13103,0.0 7.23975,47.13103,0.0 7.23965,47.13102,0.0 7.23946,47.13097,0.0 7.23962,47.13067,0.0 7.23963,47.13065,0.0 7.23985,47.13036,0.0 7.23999,47.13015,0.0 7.24016,47.12992,0.0 7.24029,47.12975,0.0 7.24001,47.12953,0.0 7.23994,47.12947,0.0 7.23983,47.1
@davidoesch
davidoesch / delivery20161104.kml
Created November 9, 2016 10:08
delivery20161104
<?xml version='1.0' encoding='UTF-8'?>
<kml xmlns='http://www.opengis.net/kml/2.2'>
<Document>
<name>Delivery 20161104</name>
<description><![CDATA[]]></description>
<Folder>
<name>1166-42</name>
<Placemark>
<name>E357F73B-4C01-4D32-B65D-171299CA88A3</name>
<description><![CDATA[description: <br>UUID: E357F73B-4C01-4D32-B65D-171299CA88A3<br>OBJEKTART: 4m Strasse]]></description>
@davidoesch
davidoesch / abnb.kml
Created December 14, 2016 18:24
abnb.kml
This file has been truncated, but you can view the full file.
<?xml version="1.0" standalone="yes"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<name><![CDATA[airbnbZH]]></name>
<visibility>1</visibility>
<open>0</open>
<Snippet><![CDATA[created using <A href="http://www.gpsvisualizer.com/?ref=ge&time=20161214102248">GPS Visualizer</A>]]></Snippet>
<Style id="gv_waypoint_normal">
<IconStyle>
<color>ffffffff</color>
@davidoesch
davidoesch / zm.sh
Last active December 18, 2016 15:54
zm
#!/bin/bash
# Ugly script to generate MPEG files for archival purposes from zoneminder
# events. Based upon original work by mikeyintn on zoneminder forums
# Written by Doc Elliott, alabamatoy[at]gmail[dot]com
# compiles Zoneminder event files (from default "record" functionality
# buit into Zoneminder) into 1 hour .avi files which are named
# camX_20yy_mm_dd_hh.avi where YY is the year, mm is the month,
# dd is the day and hh is the hour (00 through 23).
# various files are stpored in /tmp for gathering the data
# and organizing the output.
@davidoesch
davidoesch / zm_export.sh
Created December 18, 2016 16:11
zm_export
#!/bin/bash
# Ugly script to generate MPEG files for archival purposes from zoneminder events
# Change the following two variables to accomodate your install and where you want the videos exported
# NOTE: Also manually change part of line 29 to what your events_dir is... I couldn't figure out how to get that to work with awk directly
# as well as changing lines 55 and 71 if your FFMPEG binary isn't where mine is..
events_dir=/var/cache/zoneminder/events/
archive_dir=/home/pi/temp/
# Initialize variables and set first pass
DATETOENCODE="nothing"
@davidoesch
davidoesch / Luftrauem2014.kml
Created February 1, 2017 08:38
Lufträume2014.kml
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.0">
<Document>
<description>&lt;table cellpadding=0 cellspacing=0 width=380&gt;&lt;tr&gt;&lt;td align=center&gt;&lt;h1&gt;Erstellt f&amp;uuml;r Luftsportler&lt;/h1&gt;&lt;img src='http://www.skyfool.de/XChange/swiss_splash.gif'&gt;&lt;/img&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align=center&gt;&lt;h2&gt;RECHTLICHER HINWEIS&lt;/h2&gt;Die Nutzung der folgenden Luftraumdaten entbindet nicht von der gesetzlichen Verpflichtung der gewissenhaften und ordentlichen Flugvorbereitung, sowie der Verwendung aller notwendigen und zugelassenen Navigationsmittel (z. B. Luftfahrtkarte ICAO 1:500.000).&lt;br&gt;&lt;br&gt;F&amp;uuml;r die Richtigkeit und Vollst&amp;auml;ndigkeit der Daten wird keine Gew&amp;auml;hr &amp;uuml;bernommen. Nur f&amp;uuml;r die private Nutzung und dann auf eigenes Risiko. Kommerzielle Nutzung der Daten nicht gestattet.&lt;br&gt