Skip to content

Snapshot 10/24

Latest
Compare
Choose a tag to compare
@FalsePhilosopher FalsePhilosopher released this 03 Oct 04:10
· 4 commits to main since this release
2016b16

Zstandard is an algo created by Facebook for multithreaded high compression/decompression ratios/rates. git --recursive clone is 20s faster, but this setup gives a significant savings of bandwidth(2.4GB instead of 12GB).

Execute

wget -q -O - https://raw.githubusercontent.com/FalsePhilosopher/Infosec-Cheatsheets/refs/heads/main/zst.sh | bash

to download and extract to $HOME/Downloads on all cores, depends on zstd and gh already setup with an auth token.

For gh or aria2c you can use this script

#!/bin/bash
link1='https://github.com/FalsePhilosopher/Infosec-Cheatsheets/releases/latest/download/Infosec-Cheatsheets.tar.zstaa'
link2='https://github.com/FalsePhilosopher/Infosec-Cheatsheets/releases/latest/download/Infosec-Cheatsheets.tar.zstab'
hash1='4ef47cf19f233b2bc9dbce2245a9eea456fa3297'
hash2='0aa164e1b872edfeb00b975c496d5a2c37e7eefa'
has?() { hash $1 2>/dev/null; }
obtainium() {
  if has? gh; then gh release download -p 'Infosec-Cheatsheets.tar.zst*' -R FalsePhilosopher/Infosec-Cheatsheets
  elif has? aria2c; then aria2c --checksum=sha-1=$hash1 $link1 && aria2c --checksum=sha-1=$hash2 $link2
  else echo "Cannot has internets. :(" && exit
  fi
}
cd /tmp/
obtainium
cat Infosec-Cheatsheets.tar.zst* | tar -xvf - --use-compress-program=unzstd --directory $HOME/Downloads
rm Infosec-Cheatsheets.tar.zst*
cd $HOME/Downloads/Infosec-Cheatsheets/
b2sum -oRESULTS -c BLAKE2SUMS && echo "ALL OK" || echo "WOW! Something fishy's going on"

Or execute

wget -q -O - https://github.com/FalsePhilosopher/Infosec-Cheatsheets/releases/latest/download/zst.sh | bash

Manually you can download all the files and execute

cat Infosec-Cheatsheets.tar.zst* > Infosec-Cheatsheets.tar.zst && tar --use-compress-program "zstd -d --rm -T0" -xvf "Infosec-Cheatsheets.tar.zst"

to do an all core extraction in the same folder you downloaded the archives to.

For archival, download to your NAS and pull/decompress with

ssh user@HostIP "cat /sample-location/Infosec-Cheatsheets.tar.zst" | tar -xvf - --use-compress-program=unzstd