Scripts
Scripts
sync_orcid_publications.py
Syncs publications from Naresh Kumar’s ORCID (0000-0002-0951-9621) to publications.md.
- Fetches works from the ORCID Public API (title, authors, year, journal, DOI, URL).
- Compares with existing entries in
publications.mdby DOI and normalized title to avoid duplicates. - Appends only new publications into the correct year section (same HTML format as the rest of the page).
- Uses only Python standard library (no pip install).
Run locally:
python3 scripts/sync_orcid_publications.py
Override ORCID (optional):
ORCID_ID=0000-0002-0951-9621 python3 scripts/sync_orcid_publications.py
GitHub Actions: The workflow .github/workflows/sync-orcid-publications.yml runs this script on the 1st of each month and on manual trigger, then commits and pushes publications.md if there are new entries.
find-large-files-1gb.sh
Lists files whose size is about 1 GiB or larger (find: -size +1023M). Writes tab-separated columns (BYTES, LAST_MODIFIED, PATH) to a text file and prints the same to the terminal.
Run locally:
# Default: search your home folder, save to ~/Desktop/large-files-ge-1GiB-<timestamp>.txt
./scripts/find-large-files-1gb.sh
# Custom output path and search root
./scripts/find-large-files-1gb.sh ~/Desktop/my-report.txt "$HOME"
# Whole system (slow; many “Permission denied” lines are normal without sudo)
sudo ./scripts/find-large-files-1gb.sh ~/Desktop/all-volumes.txt /
To search only the boot volume (avoid crossing into /Volumes), add -xdev right after "$ROOT" in the find line inside the script.