Skip to content

Instantly share code, notes, and snippets.

View byted's full-sized avatar

Stefan Selent byted

  • Mountain View
  • 15:21 (UTC -07:00)
View GitHub Profile
@byted
byted / dedup.sh
Created October 28, 2025 00:09
Dedup images e.g., from a Google Takeout export
#!/usr/bin/env bash
set -euo pipefail
shopt -s nullglob
usage() {
cat <<EOF
Usage: $0 [--remove] [--unique] [--hash] <dirA> [dirB]
--remove : delete duplicate files from partner dirs
--unique : print files in dirA that are NOT duplicates (then exit)
--hash : compare by hash (md5) before declaring a duplicate
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=0)}({"./node_modules/@braintree/sanitize-url/index.js":function(e,t,n){"use strict";function r(e){return i.indexOf(e[0])>-1}function o(e){var t,n,o=e.replace(a,"");return r(o)?o:(n=o.match(u))?(t=n[0],s.test(t)?"about:blank":o):"about:blank"}var s=/^(%20|\s)*(javascript|data)/im,a=/[^\x20-\x7E]/gim,u=/^([^:]+):/gm,i=[".","/"];e.exports={sanitizeUrl:o}},"./node_modules/axios/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/axios/lib/axios.js")},"./node_modules/axios/lib/adapters/xhr.js":function(e,t,n){"use strict";var r=n("./node_modules/