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/env bash | |
# | |
# Git pre-commit hook | |
# | |
# Colours https://misc.flogisoft.com/bash/tip_colors_and_formatting | |
reset=$'\e[0m' | |
red=$'\e[1;31m' | |
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
# Script to get locations based on lat/long or IP address | |
# | |
# Installation: | |
# pip install geopy | |
# pip install ip2geotools | |
from geopy.geocoders import Nominatim | |
from ip2geotools.databases.noncommercial import DbIpCity | |
# ------------------------------ |
OlderNewer