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
| from datetime import datetime | |
| from utils import make_folders | |
| from pprint import pprint | |
| import argparse | |
| from re import sub | |
| def kebab(s): | |
| """ | |
| Convert a string into kebab-case, handling acronyms, numbers, and various delimiters. |
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 | |
| RSYNC_BIN="/usr/local/opt/rsync/bin/rsync" | |
| # sudo nohup ./rsync_auto_restart.sh > rsync_output.log 2>&1 & | |
| SOURCE="/Volumes/photo/2025/" | |
| DEST="/Volumes/2024/2025/" | |
| # SOURCE="/data/source/" | |
| # DEST="/data/dest/" |
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
| FROM python:3.7-slim-buster | |
| RUN apt-get update -yqq \ | |
| && apt-get upgrade -yqq \ | |
| && apt-get install -yqq --no-install-recommends \ | |
| apt-utils \ | |
| build-essential \ | |
| libffi-dev \ | |
| libpq-dev \ | |
| libssl-dev \ |