Skip to content

Instantly share code, notes, and snippets.

@shawnli87
shawnli87 / workupload_download.sh
Created August 27, 2022 04:47 — forked from rexlManu/workupload_download.sh
Download workupload files via curl
#!/bin/bash
[ -z "$1" ] && echo "Usage: workupload_download.sh '<workupload link>'" && exit 1
id_string=$(sed 's|.*workupload.com/||g' <<< "$1")
type=$(cut -d'/' -f1 <<< "$id_string")
id=$(cut -d'/' -f2 <<< "$id_string")
[[ "$type" != "file" ]] && [[ "$type" != "archive" ]] && echo "Invalid link provided" && exit 1
@shawnli87
shawnli87 / gofile_dl
Last active April 11, 2024 22:43
Zsh script to download files from gofile.io
#!/bin/zsh
url="$1"
until [ ! -z "$url" ] ; do
read "url?url="
done
id=$(rev <<< "$url" | cut -d'/' -f1 | rev)
@shawnli87
shawnli87 / download_gofile.sh
Last active April 9, 2024 10:03 — forked from MCOfficer/README.md
Bash script to download files from gofile.io
#!/bin/bash
url="$1"
#prompt for url if not provided
until [ ! -z "$url" ] ; do
read -p "url=" url
done
id=$(sed 's|.*gofile.io/d/||g' <<< "$url")