projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
4073923
)
Add hack script.
author
Carl Hetherington
<cth@carlh.net>
Mon, 10 Apr 2017 08:38:42 +0000
(09:38 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Wed, 19 Apr 2017 22:04:32 +0000
(23:04 +0100)
hacks/poor_mans_digest
[new file with mode: 0644]
patch
|
blob
diff --git a/hacks/poor_mans_digest
b/hacks/poor_mans_digest
new file mode 100644
(file)
index 0000000..
843a28f
--- /dev/null
+++ b/
hacks/poor_mans_digest
@@ -0,0
+1,5
@@
+#!/bin/bash
+
+head -c 1000000 "$1" > /tmp/$$.a
+tail -c 1000000 "$1" > /tmp/$$.b
+cat /tmp/$$.a /tmp/$$.b | md5sum