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
@davidoesch
davidoesch / test_dirett.kml
Created July 3, 2017 12:32
test_dirett.kml
This file has been truncated, but you can view the full file.
<?xml version="1.0"?>
<kml xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Document>
<name>Thomas Ulrich</name>
<description>Exported(UTC) 20170703 12:20:03; 20170703-20170703</description>
<Style id="LS1">
<LineStyle>
<color>FFC005FE</color>
<colorMode>normal</colorMode>
<width>4</width>
@davidoesch
davidoesch / direttisma_kmltest.kml
Created May 12, 2017 13:04
direttisma_kmltest
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.2">
<Document>
<Folder id="1491808584.73.igc">
<name>id = name IGC file</name>
</Folder>
<Style id="level-0">
<LineStyle>
<color>FAFF0000</color>
<width>3</width>
<?xml version="1.0" encoding="ISO-8859-1"?>
<kml xmlns="http://earth.google.com/kml/2.1">
<Document>
<LookAt>
<longitude>9.555992</longitude>
<latitude>46.739939</latitude>
<altitude>500</altitude>
<range>1000</range>
<tilt>45</tilt>
<heading>90</heading>
@davidoesch
davidoesch / 3buildings.kml
Created March 16, 2017 16:54
3buildingskml
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<name>Musterdaten_swissBUILDINGS3D20_LV95-complex</name>
<Placemark id="1">
<name>1</name>
<description><![CDATA[<table border="0" cellspacing="0" cellpadding="0"><tr><td>GRUND_AEND:&nbsp;&nbsp;</td><td>Verbessert </td></tr><tr><td>HERKUNFT_J:&nbsp;&nbsp;</td><td>2010</td></tr><tr><td>OBJEKTART:&nbsp;&nbsp;</td><td>Gebaeude Einzelhaus </td></tr><tr><td>ERSTELLUNG:&nbsp;&nbsp;</td><td>2010</td></tr><tr><td>REVISION_Q:&nbsp;&nbsp;</td><td> </td></tr><tr><td>REVISION_J:&nbsp;&nbsp;</td><td>2010</td></tr><tr><td>HERKUNFT_M:&nbsp;&nbsp;</td><td>6</td></tr><tr><td>NAME_KOMPL:&nbsp;&nbsp;</td><td> </td></tr><tr><td>ORIGINAL_H:&nbsp;&nbsp;</
@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
@davidoesch
davidoesch / 3dwandern.kml
Last active February 1, 2017 09:05
3dwandern.kml
<kml xmlns="http://earth.google.com/kml/2.1">
<script data-x-lastpass="">
(function(){var c=0;if("undefined"!==typeof CustomEvent&&"function"===typeof window.dispatchEvent){var a=function(a){try{if("object"===typeof a&&(a=JSON.stringify(a)),"string"===typeof a)return window.dispatchEvent(new CustomEvent("lprequeststart",{detail:{data:a,requestID:++c}})),c}catch(f){}},b=function(a){try{window.dispatchEvent(new CustomEvent("lprequestend",{detail:a}))}catch(f){}};"undefined"!==typeof XMLHttpRequest&&XMLHttpRequest.prototype&&XMLHttpRequest.prototype.send&&(XMLHttpRequest.prototype.send= function(c){return function(f){var d=this,e=a(f);e&&d.addEventListener("loadend",function(){b({requestID:e,statusCode:d.status})});return c.apply(d,arguments)}}(XMLHttpRequest.prototype.send));"function"===typeof fetch&&(fetch=function(c){return function(f,d){var e=a(d),g=c.apply(this,arguments);if(e){var h=function(a){b({requestID:e,statusCode:a&&a.status})};g.then(h)["catch"](h)}return g}}(fetch))}})(); (function(){if("undefine
@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 / 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 / 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 / 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>