Skip to content

Instantly share code, notes, and snippets.

View selfieebritto's full-sized avatar

Kavibritto Chalaman selfieebritto

View GitHub Profile
@selfieebritto
selfieebritto / vestacp-spaces-backup.sh
Last active February 28, 2022 11:43
this snippet helps you to enable DIGITALOCEAN SPACES backup in vestacp.
spaces_backup() {
# Defining google settings
#source $VESTA/conf/space.backup.conf
export END_POINT=<ENTER THE ENDPOINT>
export AWS_ACCESS_KEY_ID=<ENTER THE AWS ACCESS KEY>
export AWS_SECRET_ACCESS_KEY=<ENTER THE AWS SECRET KEY>
BUCKET=<YOUR BUCKET NAME HERE>
BPATH=<DESTINATION PATH>
@selfieebritto
selfieebritto / commands.txt
Created July 5, 2019 08:03 — forked from JesseRWeigel/commands.txt
ImageMagick Compression Commands
// Must install ImageMagick first
http://www.imagemagick.org/script/index.php
//This compresses a jpg with no visible loss of quality. Add in your own file names for target.jpg and result.jpg
convert -strip -interlace Plane -sampling-factor 4:2:0 -quality 85% target.jpg result.jpg
// This does the same as above but to an entire folder (will overwrite original files):
mogrify -strip -interlace Plane -sampling-factor 4:2:0 -quality 85% *.jpg
//This does the same thing but to all subfolders as well (Be careful with this one it will overwrite all original files)