Skip to content

Instantly share code, notes, and snippets.

View BGPSurfing's full-sized avatar

Shaiming Ma BGPSurfing

View GitHub Profile
@BGPSurfing
BGPSurfing / megafetch.sh
Created November 21, 2023 16:57 — forked from zanculmarktum/megafetch.sh
Get download url from mega.nz
#!/bin/bash
# Copyright 2018, 2019, 2020 Azure Zanculmarktum
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
@BGPSurfing
BGPSurfing / install-vultr-cli.sh
Created November 4, 2023 01:54
vultr-cli install for babies
#!/bin/bash
[ $# -ne 1 ] && { echo "Usage: $0 <api-key>"; exit 1; }
VULTR_RELEASE="https://github.com/vultr/vultr-cli/releases/download/v2.20.0/vultr-cli_v2.20.0_linux_amd64.tar.gz"
wget -qO- "$VULTR_RELEASE" | tar xvz -C /usr/local/bin/ &&
chmod +x /usr/local/bin/vultr-cli &&