Skip to content

Instantly share code, notes, and snippets.

View JakobMiksch's full-sized avatar

Jakob Miksch JakobMiksch

View GitHub Profile
@JakobMiksch
JakobMiksch / qgis_python_third_party_library.md
Created October 24, 2024 13:12
QGIS Python install third-party libraries

QGIS Python install third-party libraries

cd C:\OSGeo4W
python -m ensurepip
python -m pip install Faker

OSM POI Key

  • amenity
  • historic
  • leisure
  • shop
  • tourism
  • industrial
  • craft
  • man_made
@JakobMiksch
JakobMiksch / settings.json
Created September 26, 2024 13:54
VS Code file association with language
{
"files.associations": {
"\"*.sld\"": "\"xml\"",
"\"*.qml\"": "\"xml\"",
"\"*.qgs\"": "\"xml\""
}
}
@JakobMiksch
JakobMiksch / access-psql-in-docker-compose.sh
Created August 9, 2024 13:17
Access Postgres in docker compose setup
docker compose exec {{service-name}} psql -U {{db-user}} -h localhost {{db-name}}
@JakobMiksch
JakobMiksch / download_hugo.sh
Created July 27, 2024 13:35
Hugo Go Download Script
#!/bin/bash
set -e
HUGO_VERSION=$1
TMP_DOWNLOAD_FILE="hugo_${HUGO_VERSION}_Linux-64bit.tar.gz"
URL="https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/${TMP_DOWNLOAD_FILE}"
@JakobMiksch
JakobMiksch / inspect-container.sh
Created April 25, 2024 08:44
Labels of Podman Container inspect
sudo podman inspect <container-id> | jq .[0].Config.Labels
@JakobMiksch
JakobMiksch / README.md
Last active July 7, 2024 08:36
PostGIS simple Docker Compose file

Run a basic PostGIS database with docker

docker compose up

or directly.

docker run -d \
@JakobMiksch
JakobMiksch / exiftool_commands.md
Created November 23, 2023 10:20
exiftool commands

exiftool commands

Read GPS:

exiftool demo.jpg | grep "GPS Position"

Assign GPS Location:

@JakobMiksch
JakobMiksch / wfs_filter.md
Created November 7, 2023 11:11
WFS Filter Points by Polygon

WFS Filter

Request:

http://localhost:9000?service=WFS&version=1.1.0&request=GetFeature&TypeName=places&outputformat=geojson&filter=<Filter xmlns="http://www.opengis.net/ogc">
    <Intersects>
        <PropertyName>geometry</PropertyName>
        <Polygon xmlns="http://www.opengis.net/gml" srsName="EPSG:4326">
            <exterior>