exiftool -DateTimeOriginal-=4 -overwrite_original *.jpg
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 python3 | |
| import argparse | |
| from collections import namedtuple, defaultdict | |
| from collections.abc import Generator | |
| from datetime import datetime | |
| from pathlib import Path | |
| from zoneinfo import ZoneInfo # requires `pip install tzdata` on Windows | |
| FIELDS = ['TICKER', 'PRICE', 'VOL', 'TIMESTAMP'] |
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 pathlib import Path | |
| from datetime import datetime | |
| files = [f for f in Path().iterdir() if f.suffix == '.md'] | |
| files | |
| template = Path('template').read_text() | |
| template | |
| def apply(source, template): |
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
| #Requires AutoHotkey v2.0 | |
| #SingleInstance force | |
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
| ; Hotkey Modifier Symbols | |
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
| ; # WIN | |
| ; ! ALT | |
| ; ^ CTRL | |
| ; + SHIFT |
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 python3 | |
| """ | |
| Convert ticker-based files from https://stooq.com/db/h/ into date-based files | |
| """ | |
| import argparse | |
| from collections import namedtuple, defaultdict | |
| from collections.abc import Generator | |
| from datetime import datetime, date, timedelta | |
| from pathlib import Path |
OlderNewer