Skip to content

Instantly share code, notes, and snippets.

@zstadler
zstadler / undelete.txt
Created November 2, 2023 14:34
OSM Israel elements that were deleted by the vandals and not restored yet
Deleted nodes by all (2075 elements):
287237219, 291589485, 522535355, 522535358, 522535359, 522535362, 522535369, 553058295
922576819, 1018215684, 1018215739, 1018215825, 1107293664, 1107293669, 1119277112, 1122097564
1156418976, 1191477275, 1191477300, 1195711142, 1195711159, 1195711164, 1195711172, 1195711236
1195711255, 1203425761, 1203425782, 1203425801, 1203425901, 1753285893, 2144241314, 2144241323
2144241324, 2228886556, 2577660871, 2577660893, 2611449942, 2657949204, 2698056301, 2698056342
2698056354, 3025451619, 3025451701, 3025451725, 3025451955, 3228502567, 3228502588, 3437701847
3555335485, 3609242038, 3697893195, 3734954491, 3820786813, 4031900533, 4031900556, 4031900557
4031900567, 4031900568, 4031900570, 4031900571, 5402500619, 5402500620, 6037618899, 6037618900
6037618903, 6178262687, 6437900725, 6437900727, 6593146296, 6593146297, 6593146299, 7764970353
{
"version": 8,
"name": "Basic",
"metadata": {
"mapbox:autocomposite": false,
"mapbox:type": "template",
"maputnik:renderer": "mbgljs",
"openmaptiles:version": "3.x",
"openmaptiles:mapbox:owner": "openmaptiles",
"openmaptiles:mapbox:source:url": "mapbox://openmaptiles.4qljc88t"
@zstadler
zstadler / dirstack.bash
Last active December 14, 2022 16:50
Directory stack enhancements for bash
# Directory stack enhancements:
# 1. LRU directory stack manipulation:
# pushd -N and pushd +N perform pop-and-push rather than rotate
# 2. Directort stack save and restore across logins
function pushd () {
local quite
# set -x
if [[ $1 = -q ]]; then
quite=-q
@zstadler
zstadler / trig_point.json
Last active March 21, 2022 07:35
Trig Points style for NonZero
{
"version": 8,
"name": "Trig_Points",
"metadata": {"maputnik:renderer": "mbgljs"},
"center": [32, 35],
"zoom": 9,
"sources": {
"trig_point": {
"type": "geojson",
"data": "https://gist.githubusercontent.com/nonZero/a5f5165465026e2a34219d736043385d/raw/05607130536f2ceacf605c45b7a7e05bf78a4fdc/trigs5_pretty.geojson"
@zstadler
zstadler / bil-to-hgt.bat
Last active December 18, 2015 16:46
Convert all bil (Band Interleaved by Line), tif (GeoTIFF), and dt2 (DTED) files in a dircetory to HGT SRTM files
@REM Convert all bil, tif (GeoTIFF), and dt2 (DTED) files to HGT
@REM including bil files in *_bil.zip archives
@REM https://gist.github.com/zstadler/748d4884ecc99df3a4f1
@ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION
FOR %%Z IN (*_bil.zip *.bil *.tif *.dt2) DO (
SET size=
SET bil=%%Z