Skip to content

Instantly share code, notes, and snippets.

View deevroman's full-sized avatar

Roman Deev deevroman

View GitHub Profile
<item name="Подъезд" type="node" icon="barrier_entrance.png">
<label text="Подъезд" />
<key key="entrance" value="staircase" />
<text key="ref" text="Номер"/>
<text key="addr:flats" text="Квартиры"/>
</item>
Creating cluster "kind3" ...
• Ensuring node image (kindest/node:v1.24.0) 🖼 ...
✓ Ensuring node image (kindest/node:v1.24.0) 🖼
• Preparing nodes 📦 📦 📦 📦 📦 📦 📦 📦 ...
✓ Preparing nodes 📦 📦 📦 📦 📦 📦 📦 📦
• Writing configuration 📜 ...
✓ Writing configuration 📜
• Starting control-plane 🕹️ ...
✗ Starting control-plane 🕹️
ERROR: failed to create cluster: failed to init node with kubeadm: command "docker exec --privileged kind3-control-plane kubeadm init --skip-phases=preflight --config=/kind/kubeadm.conf --skip-token-print --v=6" failed with error: exit status 1
// WARN постепенным добавлением ключей можно скрыть искомые ключи
// Если у всех точек с somekey есть name, то они не будут обнаружены этим запросом
// Однако запрос простой и быстрый по времени, чтобы получить примерный список
```graphql
[out:json]
[timeout:25];
node[~".*"~".*;.*"]
[!opening_hours]
[!"opening_hours:covid19"]
[!collection_times]
@deevroman
deevroman / gist:a415a7e466cb4fafd05288b47769f9c3
Last active January 3, 2024 11:17
Заметки в РФ, которые закрыли юзеры не сделавшие ни одной правки. (выбраны только с те, которые затронули лишь одну заметку и не свою же)
https://osm.org/note/5047
https://osm.org/note/5159
https://osm.org/note/6123
https://osm.org/note/6331
https://osm.org/note/7461
https://osm.org/note/8068
https://osm.org/note/15207
https://osm.org/note/16721
https://osm.org/note/17646
https://osm.org/note/18741
@deevroman
deevroman / userChrome.css
Created June 2, 2024 13:15
userChrome.css to increase address bar width in Firefox
#urlbar[open] {
width: 80vw !important;
}
// ==UserScript==
// @name Better osm.org
// @version 0.4.1
// @author deevroman
// @match https://www.openstreetmap.org/*
// @namespace https://github.com/deevroman/better-osm-org
// @sandbox JavaScript
// @grant GM_info
// @run-at document-end
// ==/UserScript==
@deevroman
deevroman / switchLeafletMapIntoESRI.js
Last active April 4, 2025 16:29
Bookmarklet for switch OSM layer into ESRI. Select the code below and drag it to your bookmarks bar. Part of https://github.com/deevroman/better-osm-org
javascript:var OSMPrefix = "https://tile.openstreetmap.org/"; var ESRIPrefix = "https://server.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/tile/"; var ESRIBetaPrefix = "https://clarity.maptiles.arcgis.com/arcgis/rest/services/World_Imagery/MapServer/tile/"; var SatellitePrefix = SatellitePrefix ?? ESRIPrefix; var SAT_MODE = "%F0%9F%9B%B0"; var MAPNIK_MODE = "%F0%9F%97%BA%EF%B8%8F"; var currentTilesMode = currentTilesMode ?? MAPNIK_MODE; var tilesObserver = tilesObserver ?? undefined; (() => { function invertTilesMode(mode) { return mode === "%F0%9F%9B%B0" ? "%F0%9F%97%BA%EF%B8%8F" : "%F0%9F%9B%B0"; } function parseOSMTileURL(url) { let match = url.match(new RegExp(`${OSMPrefix.replace("tile", "(?:[abc]\\.)?tile")}(\\d+)\\/(\\d+)\\/(\\d+)\\.png`)); if (!match) { return false; } return { x: match[2], y: match[3], z: match[1], } } function parseESRITileURL(url) { let match = url.match(new RegExp(`${SatellitePrefix}(\\d+)\\/(\\d+)\\/(
---
style:
version: 8
layers:
- type: background
- type: line
filter: [has, highway]
line-color: rgb(0, 102, 153)
- type: fill
filter: [has, building]
@deevroman
deevroman / dark.css
Last active June 29, 2025 18:29
OpenStreetMap Dark Theme. Based on AlexPS's https://userstyles.world/style/15596/openstreetmap-dark-theme
::-webkit-scrollbar {overflow: visible; background: #282828; border-color: #43484C;}
::-webkit-scrollbar-track {background-clip: padding-box; border: solid transparent; border-width: 0;}
::-webkit-scrollbar-thumb {background-color: rgba(238,238,238,.4); background-clip: padding-box; border: solid transparent; border-width: 3px; border-radius: 6px;}
::-webkit-scrollbar-thumb:hover, ::-webkit-scrollbar-thumb:active {background-color: rgba(238,238,238,.5);}
::-webkit-scrollbar-corner {background: #282828;}
:root, [data-bs-theme=light] {
color-scheme: dark;
--bs-body-color: #dee2e6;
--bs-body-color-rgb: 222, 226, 230;
// ==UserScript==
// @name id-dark-mode
// @version 0.1
// @description Dark mode for iD OSM-editor. Part of better-osm-org. Based on AlexPS userstyle
// @license ¯\_(ツ)_/¯
// @match https://www.openstreetmap.org/*
// @exclude https://www.openstreetmap.org/api*
// @match https://master.apis.dev.openstreetmap.org/*
// @exclude https://master.apis.dev.openstreetmap.org/api/*
// @updateURL https://github.com/deevroman/better-osm-org/raw/master/id-dark-mode.js