Skip to content

Instantly share code, notes, and snippets.

View janosh's full-sized avatar

Janosh Riebesell janosh

View GitHub Profile
@janosh
janosh / compile-vasp-m1.md
Last active March 13, 2026 15:29
VASP M1 Mac Compilation Guide

Compiling VASP on M1 Mac

Written by Alex Ganose @utf and Janosh Riebesell @janosh. Published 2022-03-28. Last updated 2024-03-30.

  1. Install Xcode command line tools:

    xcode-select --install
@janosh
janosh / make_sequential_with_xmp.py
Last active November 2, 2020 14:34
Batch rename files sequentially while handling possible XMP sidecar files.
import os
import sys
_, dirname, prefix = sys.argv
os.chdir(dirname)
files = sorted(f for f in os.listdir() if not f.endswith(".xmp"))