Skip to content

Instantly share code, notes, and snippets.

View jannefleischer's full-sized avatar

jannefleischer

  • ILS - Institut für Landes- und Stadtentwicklungsforschung gGmbH
  • Dortmund
View GitHub Profile
@jannefleischer
jannefleischer / startborg_for_docker_compose.sh
Last active November 21, 2024 15:32
Script that stops a docker stack, does a backup of its containing folder using borgbackup, and starts the stack once again. Meant to be run from crontab, assuming only binds, no volumes in docker.
#!/bin/bash
#/*
# * Copyright (c) 2024 Janne Jakob Fleischer (ILS gGmbH).
# *
# * This program is free software: you can redistribute it and/or modify
# * it under the terms of the GNU General Public License as published by
# * the Free Software Foundation, version 3.
# *
# * This program is distributed in the hope that it will be useful, but
# * WITHOUT ANY WARRANTY; without even the implied warranty of
@jannefleischer
jannefleischer / fouled_up_column.py
Created January 17, 2019 08:53 — forked from steveoh/fouled_up_column.py
RuntimeError: A column was specified that does not exist. How to find which field
#: the fields in the feature class
actual = set([str(x.name) for x in arcpy.ListFields(r'')])
#: the fields you are trying to use
expected = set([])
fouled_up = expected - actual