Skip to content

Instantly share code, notes, and snippets.

View ostheperson's full-sized avatar
🚀
Experimenting with life

. ostheperson

🚀
Experimenting with life
View GitHub Profile
@ostheperson
ostheperson / closestpoints.md
Last active March 3, 2024 23:57
Get closest points to coordinate in postgis

Create table

CREATE TABLE your_table_name (
    id SERIAL PRIMARY KEY,
    geom GEOMETRY(Point, 3857) -- Use EPSG:3857 for Web Mercator
);

add records

INSERT INTO your_table_name (name, geom)
@ostheperson
ostheperson / system clipboard bypass.txt
Last active December 28, 2023 20:46
vim: Bypass system clipboard with dd or yy
In vim when using a clipboard tool like xclip with vim, to prevent `yy` and `dd` commands from copying to clipboard while keeping the functionality to copy to system
set vim.opt.keymap to nothing, or remove it entirely
```
~~vim.opt.keymap~~
```