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
| #!/usr/bin/env sh | |
| docker run --rm --name local-postgres -e POSTGRES_PASSWORD=$(op get item "local postgres" | jq -r '.details.password') -d -p 5432:5432 -v "$HOME/Documents/postgres/data:/var/lib/postgresql/data" postgres |
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
| #!/usr/bin/env sh | |
| # Check missing references extension for proper functioning. | |
| set +ex +o pipefail | |
| DOCS=$(dirname $(dirname $0)) | |
| # Test first by writing the missing references file | |
| git checkout $DOCS/conf.py | |
| git checkout lib |
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
| """ | |
| PPA - Progress Parallel Apply | |
| A quick tool for parallel apply in python using multiprocessing. | |
| """ | |
| import functools | |
| import multiprocessing as mp | |
| from typing import Dict, Iterable, NamedTuple, Optional, Tuple, Union |
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
| """ | |
| Python parallelism demo | |
| Run this file with `python parallel-demo.py` to see how different | |
| parallelism strategies fare with different kinds of parallism. | |
| This requires aiohttp (pip install aiohttp) and requests (pip install requests) | |
| Two environment variables control behavior: |
OlderNewer