Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
rm -f nopwd.pdf bill.pdf
qpdf --decrypt --password=pwd "$1" nopwd.pdf
#pdftk nopwd.pdf cat 1 output bill.pdf
qpdf nopwd.pdf --pages nopwd.pdf 1 -- bill.pdf
@anvesh
anvesh / merge_diff_tool_setup
Last active August 2, 2023 16:44
Setup merge and diff tools (kdiff3) for SVN and Git on Windows
KDiff3 setup on windows:
SVN:
TortoiseSVN settings:
Merge Tool:
C:\Install\KDiff3\kdiff3.exe %base %mine %theirs -o %merged --L1 %bname --L2 %yname --L3 %tname
Diff Tool:
C:\Install\KDiff3\kdiff3.exe %base %mine --L1 %bname --L2 %yname
Git:
@anvesh
anvesh / gist:5795081
Created June 17, 2013 06:55
Command to count files grouped by extension
find . -type f | sed 's/\(.*\)\.\(..*\)$/\2/' | sort | uniq -c | sort -k1r