Skip to content

Instantly share code, notes, and snippets.

View ImreSamu's full-sized avatar
🗺️

ImreSamu ImreSamu

🗺️
View GitHub Profile
ffmpeg -f image2 -i render-%04d.png -i audio.mp3 -r 25 -vcodec libx264 -b:v 1024k -b:a 192k -t 00:00:04 -vf "movie=watermark.png [watermark]; [in][watermark] overlay=10:10 [out]" out.mp4
sudo apt-get update && sudo apt-get -y dist-upgrade && sudo shutdown -r now
# wait for reboot
# as root
apt-get autoremove -y --purge
# basics and osm2pgsql deps
apt-get install -y subversion git build-essential libxml2-dev libgeos-dev libgeos++-dev libpq-dev libbz2-dev libproj-dev protobuf-c-compiler libprotobuf-c0-dev autoconf automake libtool make g++ sysstat iotop apache2.2 apache2.2-common apache2-mpm-worker liblua5.2-dev lua5.2
mkdir -m 000 /planet
@ImreSamu
ImreSamu / bridge_swing_overpass_wizard.md
Last active August 29, 2015 14:05
OpenStreetMap - Who created the first [bridge=swing] key-values ? ( Overpass-Wizard Query )

0709

type:way and ( id:27001207 or id:72584563 ) global

@ImreSamu
ImreSamu / bridge_swing.sh
Last active August 29, 2015 14:05
query the first contributor who added bridge=swing to the way - and generate Overpass-Turbo Wizard Query
#
# Ubuntu 14.04 linux
# This example file is released into the Public Domain. ( ImreSamu 2014.08.29 )
#
## Warning! - draft code! it creates lot of temp file to the working directory.
#
#### The Job ###############################
#* find all bridge=swing ( now 639 results : http://taginfo.openstreetmap.org/search?q=bridge%3Dswing )
# *split results by the first contributor who added bridge=swing to the way
# *get the results into overpass-turbo wizard format and you can copy/paste to overpass-turbo.eu Wizard
@ImreSamu
ImreSamu / check_idpresets.sh
Last active August 29, 2015 14:09
check OpenStreetMap iD Editor Translations , Determine Duplicate Elements, Export presets to CSV
#!/bin/bash
# name: check_idpresets.sh
# check iD Editor Translations
# --- Determine Duplicate Elements,
# --- Export presets to CSV
#
# License: same as iD Editor / available under the WTFPL : http://sam.zoy.org/wtfpl/
# Created by ImreSamu for helping hungarian translations
#
# requirements :
autodock:
image: prologic/autodock
ports:
- "1338:1338/udp"
- "1338:1338/tcp"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
autodocklogger:
image: prologic/autodock-logger
@ImreSamu
ImreSamu / locale.md
Last active August 29, 2015 14:20
iD Editor statistics - 2015-04-28 .. 2015-05-04

meta

  • source : OpenStreetMap Changeset data
  • where filter: created_by='iD 1.7.1' or created_by='iD 1.7.2'
  • changeset min created_at: "2015-04-28 02:42:25"
  • changeset max created_at: "2015-05-04 05:34:55"
locale changesets
en-US 22631
@ImreSamu
ImreSamu / openstreetmap_changeset_summary2015may04.md
Created May 4, 2015 07:29
OpenStreetMap Changeset Summary for iD Editor users ( 2015.05.04 )

OpenStreetMap Changeset Summary for iD Editor users

  • where platform is not null
  • created_at: min - max : "2015-04-25 00:30:10" - "2015-05-04 07:20:55"
type value count percent
browser Chrome 15.0 1 0.00 %
@ImreSamu
ImreSamu / OpenStreetMap_Changeset_Summary_20150513.md
Last active August 29, 2015 14:21
OpenStreetMap Changeset Summary ( 2 weeks; iD, JOSM )

OpenStreetMap Changeset Summary ( 2 weeks; iD, JOSM )

  • where : 2015-04-30 00:00:01 <= closed_at <= 2015-05-13 23:59:57
  • unique user: COUNT(DISTINCT(uid)) ... group by type, value
  • ordered by : "unique user" descending

Editors ( all )

|group|type|value|unique user | unique user percent per group| changeset sum | changeset percent per group|

#!/bin/sh
# To the extent possible under law, the person who associated CC0
# with this work has waived all copyright and related or neighboring
# rights to this work.
# http://creativecommons.org/publicdomain/zero/1.0/
SCRIPT_DIR=`dirname $0`
if [ -e $1 ] ; then