Skip to content

Instantly share code, notes, and snippets.

View Daemonslayer2048's full-sized avatar

Jacob Hanafin Daemonslayer2048

View GitHub Profile
# Mount your USB
mkdir /tmp/usb
mount *your usb*
cd /tmp/usb
# As we speak latest version is apk-tools-static-2.9.1-r0. If you get 404 you will need to change it with actual version.
wget http://uk.alpinelinux.org/alpine/latest-stable/main/aarch64/apk-tools-static-2.9.1-r0.apk
tar -xzf apk-tools-static-*.apk
# Pulling the "stage3" binaries;
@Daemonslayer2048
Daemonslayer2048 / .bashrc
Created March 17, 2020 03:06
how to tar/zip/untar/unzip
# function for .bashrc to facilitate (extraction of archive|archiving of file)
# extract based on the file extension.
function extract(){
if [ -f $1 ] ; then
case $1 in
*.tar.bz2) tar xvjf $1 ;;
*.tar.gz) tar xvzf $1 ;;
*.bz2) bunzip2 $1 ;;
*.rar) unrar x $1 ;;