Skip to content

Instantly share code, notes, and snippets.

View Martini991's full-sized avatar
πŸ’»
✌🏻 😎

Lorenzo Martini Martini991

πŸ’»
✌🏻 😎
View GitHub Profile
@jaymody
jaymody / docker_save_progress_bar.sh
Created June 2, 2020 23:43
docker save with a progress bar
# If you're impatient like me, a progress bar can be a comforting way to impulsively check the progress
# of your docker save command
#
# You'll need tqdm installed (https://github.com/tqdm/tqdm) for this to work.
docker save IMAGE_NAME | tqdm --bytes --total $(docker image inspect IMAGE_NAME --format='{{.Size}}') > OUTPUT_TAR_NAME
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active July 17, 2025 06:10
set -e, -u, -o, -x pipefail explanation
@tuxfight3r
tuxfight3r / s3_upload.sh
Last active July 3, 2025 14:23
AWS - Upload files to S3 via curl
#!/bin/bash -x
#Date: 21/7/2017
#Author: Mohan
#Purpose: To upload files to AWS S3 via Curl
#Uploads file at the top level folder by default
#S3 parameters
S3KEY="XXXXXXXXXXX"
S3SECRET="XXXXXXXXXXXXXXXX"