Skip to content

Instantly share code, notes, and snippets.

View saviour123's full-sized avatar

Saviour Gidi saviour123

  • Andela
  • Accra, Ghana
View GitHub Profile
@saviour123
saviour123 / images.sh
Last active November 4, 2024 08:52
Basic Scripts to clean, convert, manipulate images
## Inspect image metadata
exiftool IMG_4487.JPG
## convert apple .HEIC to .jpg
find . -type f -name "*.HEIC" -exec heif-convert {} \;
## scale the images by half size(Reduce the Image size)
@saviour123
saviour123 / job.sh
Created January 22, 2025 13:17 — forked from alanmatiasdev/job.sh
argocd-ecr-rotating-key
#!/bin/sh
namespaces="${NAMESPACES}"
if [ -z "$NAMESPACES" ]; then
namespaces="default"
fi
if [ -z "$SECRET_NAME" ]; then
SECRET_NAME=regcred
fi
@saviour123
saviour123 / cleanup-docker.sh
Created February 19, 2025 10:45
docker clean up commands
docker rm -vf $(docker ps -aq)
docker rmi -f $(docker images -aq)
docker volume prune -f
docker system prune
@saviour123
saviour123 / main.tf
Created July 29, 2025 11:00
Provision LKE enterprise
# tf init
# tf apply
terraform {
required_providers {
linode = {
source = "linode/linode"
}
}
}