gs -o repaired.pdf -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress corrupted.pdf
If even that failes then Okular can probably still open it and print to PDF file.
myscript.sh 2>&1 | logger -s -t MYLABEL 2>> log.log |
#!/usr/bin/env sh | |
git checkout "$(git rev-list -1 --before=14.days.ago main)" |
gs -o repaired.pdf -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress corrupted.pdf
If even that failes then Okular can probably still open it and print to PDF file.
#!/bin/bash | |
cut -f 1 -d : /etc/passwd | \ | |
while read i; do find / -user "$i" | grep -q . || echo "$i"; done |
deletes all local branches that are merged into master
git branch | grep -v '^*' | xargs git branch -d
use uppercase -D to force delete also branches that haven't been merged.