This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install pdftk | |
pdftk A=doc1.pdf B=doc2.pdf C=doc3.pdf cat A1-17 B1 A19-27 C1 output merged.pdf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config -e --global | |
[alias] | |
del-merged = "!git branch --merged master | grep -v master | cut -d/ -f2- | xargs -n1 -I % sh -i -c 'git push -d origin \"%\"; git branch -d \"%\";'" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE OR REPLACE FUNCTION max (uuid, uuid) | |
RETURNS uuid AS $$ | |
BEGIN | |
IF $1 IS NULL OR $1 < $2 THEN | |
RETURN $2; | |
END IF; | |
RETURN $1; | |
END; | |
$$ LANGUAGE plpgsql; |