From efcf321d158af7098cd1aa7bff73556f18e8a093 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 11 Aug 2021 18:40:10 -0700 Subject: hackily sort items by time --- browse-slack/convert_slack.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'browse-slack') diff --git a/browse-slack/convert_slack.py b/browse-slack/convert_slack.py index 9e4bcb00..5dcdc91d 100644 --- a/browse-slack/convert_slack.py +++ b/browse-slack/convert_slack.py @@ -19,7 +19,9 @@ # Step 3: construct a disk image out of the archives and avatars # cd ../.. # go back to parent of images/ # dd if=/dev/zero of=data.img count=201600 # 100MB -# python path/to/convert_slack.py |dd of=data.img conv=notrunc +# python path/to/convert_slack.py > data.out +# (optionally sort items by timestamp; I currently do this in Vim by piping the latter half of data.out through `sort`) +# dd if=data.out of=data.img conv=notrunc # Currently this process yields errors for ~300 items (~70 posts and their comments) # on the Future of Software group (https://futureofcoding.org/community). We fail to load those. # -- cgit 1.4.1-2-gfad0