This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# Ta in en GeoJSON fil av QGIS, | |
# producera en ny GeoJSON med nya etiketter och brus tillagt till koordinater | |
# Källor och referenser: | |
# - http://www.naturvardsverket.se/Sa-mar-miljon/Kartor/Nationella-Marktackedata-NMD/ | |
# - http://gpt.vic-metria.nu/data/land/NMD/NMD_Produktbeskrivning_NMD2018Basskikt_v1_0.pdf | |
# - https://lists.openstreetmap.org/pipermail/talk-se/2019-March/003537.html | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add this snippet to the end of your .git/hook/commit-msg script | |
# Check spelling | |
ASPELL=$(which aspell 2> /dev/null) | |
if [ $? -ne 0 ]; then | |
echo "Aspell not installed, unable to check spelling" >&2 | |
else | |
WORDS=$(grep -v "^Change-Id:" "$1"| $ASPELL --mode=email --add-email-quote='#' list | sort -u) | |
if [ -n "$WORDS" ]; then | |
echo -ne "\e[31m" | |
printf "### Possible spelling errors found in commit message: ###\n%s\n" "$WORDS" >&2 |
OlderNewer