Skip to content

Instantly share code, notes, and snippets.

View iwishiwasaneagle's full-sized avatar

Jan-Hendrik Ewers iwishiwasaneagle

View GitHub Profile
@iwishiwasaneagle
iwishiwasaneagle / latex_useful_one-liners.sh
Last active November 28, 2021 20:42
🧰 Useful CLI one-liners for LaTex
# Show all errors, warnings, and undefined messages in log file after compilation with location in log file for further analysis
grep -iHEn "error|warning|undefined" *.log
# Find all the duplicated labels in a directory
grep -ERh "\\\\label\{\w*:\w*\}" --include="*.tex" | tr -d " " | sort | uniq -c | awk '$1>1 {print $0}'
# Validate references.bib using https://github.com/Pezmc/BibLatex-Check
curl https://raw.githubusercontent.com/Pezmc/BibLatex-Check/master/biblatex_check.py 2>/dev/null | python - -b $(find ./ -maxdepth 1 -name "*.bib" | head -n1) -a $(find ./ -maxdepth 1 -name "*.aux" | head -n1)
# Find all the unused labels
@clamytoe
clamytoe / mc-one_person_sleep.md
Last active February 20, 2022 16:39
Minecraft - One Person Sleep

Minecraft - One Person Sleep

It's always frustrating getting everyone on the server to go to sleep to prevent mobs from spawning and having to carry a "travel bed" takes up precious space when out gathering resources. With this setup only one person needs to sleep in order for the night cycle to be skipped.

Based on this video: Super Simple VANILLA MINECRAFT ONE PLAYER SLEEPING|1.13-1.14+

setup