Skip to content

Instantly share code, notes, and snippets.

@dzvon
dzvon / s3upload.sh
Created September 28, 2020 08:46
S3 uploader
#!/usr/bin/env bash
echo "The goal of this script is to upload file to s3 storage."
echo "Endpoint (default: s3-cn-east-1.qiniucs.com):"
read endpoint
echo "Your s3 access key:"
read s3AccessKey
@dzvon
dzvon / usual-linux-command.sh
Last active November 16, 2020 02:46
usual linux command
# Generate a Random Password
generate_random () {
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w ${1:-32} | head -n 1
}