Skip to content

Instantly share code, notes, and snippets.

View 94rain's full-sized avatar
🎯
Focusing

94rain

🎯
Focusing
View GitHub Profile
@94rain
94rain / os_setup.sh
Created November 22, 2021 02:54
rcore_os setup
curl https://sh.rustup.rs -sSf | sh
source $HOME/.cargo/env
rustup install nightly
rustup default nightly
rustup target add riscv64gc-unknown-none-elf
cargo install cargo-binutils --vers ~0.2
rustup component add llvm-tools-preview
rustup component add rust-src
sudo apt install autoconf automake autotools-dev curl libmpc-dev libmpfr-dev libgmp-dev \
gawk build-essential bison flex texinfo gperf libtool patchutils bc \
@94rain
94rain / Java related commands.sh
Created June 15, 2021 11:26
Java related commands.sh
@94rain
94rain / Linux commands.md
Last active June 11, 2022 00:03
Linux commands

tar -xzvf

  • -x is JUST A FUCKING SUBCOMMAND. And yes, it stands for "extract" just like you'd expect.
  • -f means "read from a file and not stdin".
  • -v stands for "verbose" like every other GNU program ever.
  • -z means "use GZip to compress/decompress first", which is not only an easy mnemonic but is also (as other commenters pointed out) totally unnecessary in basic uses. Same for -Z, -j, and -J (different compresison algorithms). You can be excused if you need to look into the manual to remember which one is BZip and which one is XZ.