Anon 04/10/2024 (Wed) 18:22 No.10157 del
>>10151
>KHVsWryXxMk
That's " BGM, Pony Degeneracy UCk-L2CG6fxIIe_o6LreemAA " - file from
>/z9/youtube/BGM_Pony_Degeneracy_UCk-L2CG6fxIIe_o6LreemAA/18_pounds_of_cokane_Reanimated_by_FFan-BGM_Pony_Degeneracy-20240401-youtube-1920x1080-KHVsWryXxMk.png

>>10155
>Concern with ipwb: adds a pin for every file in the WARC. Solution: compare pinset before and after indexing with ipwb; then do stuff so that recent ipwb pins are only under one pin instead of multiple.
What I did for that, would be easier for other users/me if ipwb had this as a built-in feature (!!!!):
$ ipfs pin ls --type=recursive > p1.txt
$ ipwb index maremaremaremaremaremare.com-2023-07-11-999f817e-00000.warc.gz >> f1.cdxj
$ ipfs pin ls --type=recursive > p2.txt
$ cat p1.txt p2.txt > p3.txt; vim p3.txt
$ # vim - remove CIDs in both by running this: :sort and :%s/^\(.*\)\n\1$\n//g
$ ipfs files mkdir -p /web/warc/ipwb/data0000; ipfs files mkdir -p /cids/pins_in_mfs
$ cat p3.txt | sed "s/ .*//g" | h=$(wc -l p3.txt) xargs -d "\n" sh -c 'for args do grep -n $args p3.txt | sed "s/:.*//g" | tr -d \\n; echo -n "/"; echo $h; ipfs files cp /ipfs/$args /web/warc/ipwb/data0000/$args; ipfs pin rm $args; done' _
$ ipfs files ls --long /web/warc/ipwb # copy the CID for data0000, which is:
$ ipfs pin add --progress QmbrMh1Ku99kqPjuD7R8Q1QrsRyX44MM4k2Jt4m62YVAp1; ipfs add f1.cdxj
[...]
$ ipfs pin add /ipfs/QmVaQycySqU6ejZfPgQ7HmzV2kCaiT8XMmLpFxFkCPYVs7
[...]
$ h=QmbrMh1Ku99kqPjuD7R8Q1QrsRyX44MM4k2Jt4m62YVAp1; ipfs files cp /ipfs/$h /cids/pins_in_mfs/$h
$ h=QmVaQycySqU6ejZfPgQ7HmzV2kCaiT8XMmLpFxFkCPYVs7; ipfs files cp /ipfs/$h /cids/pins_in_mfs/$h
$ ipfs files cp /ipfs/$h /web/warc/ipwb/f1.cdxj
Content Address aRchive files (24-hour share): https://put.icu/0tobd49o.file and https://put.icu/9sw8ex84.file

WARC replay:
>$ ipfs daemon &
>$ ipwb replay QmVaQycySqU6ejZfPgQ7HmzV2kCaiT8XMmLpFxFkCPYVs7
It also works in Lynx browser (picrel=Brave browser, zoomed out):
>$ lynx http://localhost:2016/memento/20230711112608/maremaremaremaremaremare.com/powerabove.html