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
#!/bin/bash | |
pg_version=10.5 pg_user=user db_name=db && \ | |
docker run -it --rm -v /tmp/pgdump:/tmp/pgdump:rw --network=host postgres:$pg_version \ | |
pg_dump -h localhost -U $pg_user -W -f /tmp/pgdump/${db_name}_$(date +%Y%m%d%H%M%S) -Fc -v $db_name |
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
import querycontacts | |
import dns | |
import sys | |
import socket | |
print('sys.version:', sys.version) | |
print(querycontacts, getattr(querycontacts, '__version__', None)) | |
print(dns, getattr(dns, '__version__', None)) | |
querycontacts.ContactFinder().find(socket.gethostbyname('google.nl')) |
OlderNewer