Skip to content

Instantly share code, notes, and snippets.

View simonpoole's full-sized avatar

Simon Poole simonpoole

  • Myself
  • A bit outside of Zürich, Switzerland
View GitHub Profile
Dec 07 16:50:58 hz2 kernel: invalid opcode: 0000 [#1] SMP NOPTI
Dec 07 16:50:58 hz2 kernel: CPU: 9 PID: 4184676 Comm: postgres Tainted: P O 5.4.0-121-generic #137-Ubuntu
Dec 07 16:50:58 hz2 kernel: Hardware name: Gigabyte Technology Co., Ltd. B360 HD3P-LM/B360HD3PLM-CF, BIOS F7a HZ 11/18/2>
Dec 07 16:50:58 hz2 kernel: RIP: 0010:LZ4_uncompress_unknownOutputSize+0x3e/0x270 [zfs]
Dec 07 16:50:58 hz2 kernel: Code: 57 41 56 41 55 4c 8d 2c 0e 41 54 53 4c 39 d7 0f 83 32 02 00 00 48 89 f8 49 89 f4 4d 8d>
Dec 07 16:50:58 hz2 kernel: RSP: 0018:ffffbeac4b9f7850 EFLAGS: 00010287
Dec 07 16:50:58 hz2 kernel: RAX: ffffbeac93779545 RBX: ffffbeac85c5c34a RCX: ffffbeac85c5c342
Dec 07 16:50:58 hz2 kernel: RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffffbeac85c5c348
Dec 07 16:50:58 hz2 kernel: RBP: ffffbeac4b9f7878 R08: ffffbeac93779542 R09: 0000000000000002
Dec 07 16:50:58 hz2 kernel: R10: ffffbeac9377e631 R11: ffffbeac85c64ff8 R12: ffffbeac85c55000
@simonpoole
simonpoole / null_island.xslt
Created August 30, 2022 13:32
Remove track points with 0 coordinates from a GPX file
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:m="http://www.topografix.com/GPX/1/1">
<xsl:template match="m:trkpt[@lon='0'][@lat='0']" />
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()" />
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
"\Program Files (x86)\VideoLAN\VLC\vlc.exe" update_downloaded_default_preset.mp4 --rate=1 --video-filter=scene --vout=dummy --start-time=10 --stop-time=11 --scene-format=png --scene-ratio=24 --scene-prefix=snap --scene-path=. vlc://qui
@simonpoole
simonpoole / gist:7b0f8835ac9e11bcac8ce6e79acaf8b4
Created November 19, 2021 09:16
Postoffice deletion-readding
https://openstreetmap.org/changeset/112528548
https://openstreetmap.org/changeset/112528532
https://openstreetmap.org/changeset/112528233
https://openstreetmap.org/changeset/112528091
https://openstreetmap.org/changeset/112528003
https://openstreetmap.org/changeset/112518872
https://openstreetmap.org/changeset/112517215
https://openstreetmap.org/changeset/112492966
https://openstreetmap.org/changeset/112491695
git log --pretty=format:"-%C(yellow)%d%Creset %s " --abbrev-commit
@simonpoole
simonpoole / gist:362d3e464064a7866c5647c685581c03
Created April 5, 2021 07:17
Opening hours evaluator notes
Please read https://wiki.openstreetmap.org/wiki/Google_Summer_of_Code/2021, for this project a sucessful contribution to any of my projects https://github.com/simonpoole or other OSM related project will be considered. Please note that having the contribution merged is a requirement for being considered as GSOC student.
- Documentation on the opening_hours tag is here https://wiki.openstreetmap.org/wiki/Key:opening_hours, the grammar can be found here https://wiki.openstreetmap.org/wiki/Key:opening_hours/specification
- What is widely considered the reference implementation of both a parser and an evaluator is https://openingh.openstreetmap.de/evaluation_tool/
- The project should take generated data structures from https://github.com/simonpoole/OpeningHoursParser, a date and time and determine if the OH value indicates if the current state is open or not. It should further report non-grammar related errors.
- As a minimum the evaluator should evaluate all conditions that do not rely on external data and pro
git update-index --chmod=+x gradlew
Just an additional fact, assuming providing more data for making a considered decision is not out of line: using RapId currently requires accepting Facebooks Terms of Service and Privacy Policy (yes this is not properly made clear in the corresponding plugin for JOSM either, but two wrongs don't make a right). A simple link would clearly not fulfill GDPR requirements on transparency and control of personal data.
Do
==
gr Greece
sg Singapore
pe Peru
ph Philippines
tv Tuvalu
Snark (do)
@simonpoole
simonpoole / Renumber OSN file
Created April 10, 2020 15:38
xslt to renumber a OSM Notes file
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet
version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output
method="xml"
indent="yes" />
<xsl:template match="@id" />
<xsl:template match="note">
<xsl:copy>