This file contains hidden or 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 hidden or 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')) |
This file contains hidden or 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
| function awsctx() { | |
| profile=$(aws configure list-profiles | fzf) | |
| eval "export AWS_PROFILE=$profile" | |
| echo "AWS_PROFILE=$(echo $AWS_PROFILE)" | |
| } |
OlderNewer