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 / hosts
Last active August 11, 2026 11:38 — forked from ronaldronson/hosts
Block Spotify ads
127.0.0.1 media-match.com
127.0.0.1 adclick.g.doublecklick.net
127.0.0.1 www.googleadservices.com
127.0.0.1 open.spotify.com
127.0.0.1 pagead2.googlesyndication.com
127.0.0.1 desktop.spotify.com
127.0.0.1 googleads.g.doubleclick.net
127.0.0.1 pubads.g.doubleclick.net
127.0.0.1 audio2.spotify.com
127.0.0.1 www.omaze.com
@saviour123
saviour123 / remover.sh
Last active February 3, 2026 17:08
Remove annoying Microsoft autoupdate agent from Mac / apple osx
# This bash script help to remove the microsoft autoupdate agent for poping up
# every now and then on your computer
# instruction
# open the Terminal app on you macbook
# copy and paste the below and voila.
# You are saved. It would ask you for password in executing sudo command
sudo rm -rf /Library/Application\ Support/Microsoft/MAU2.0
sudo rm -rf /Library/LaunchAgents/com.microsoft.update.agent.plist
sudo rm -rf /Library/LaunchDaemons/com.microsoft.autoupdate.helper.plist
https://moon.mydream42.com/yelizariev/bceb91664910e5eb5bf225c6b22d5fe9/%E2%98%80/AmonRa.markdown
@saviour123
saviour123 / nextjs-custom-server.js
Created November 27, 2025 10:14
nextjs-custom-server.js is a patch for urlencode problem on cloudrun.
const { createServer } = require('http')
const { parse } = require('url')
const next = require('next')
const dev = process.env.NODE_ENV !== 'production'
const hostname = '0.0.0.0'
const port = process.env.PORT || 8000
// Initialize Next.js app
const app = next({ dev, hostname, port })
@saviour123
saviour123 / linode.txt
Created September 26, 2025 16:23
Linode instance types
"Nanode 1GB", "g6-nanode-1",
"Linode 2GB", "g6-standard-1",
"Linode 4GB", "g6-standard-2",
"Linode 8GB", "g6-standard-4",
"Linode 16GB", "g6-standard-6",
"Linode 32GB", "g6-standard-8",
"Linode 64GB", "g6-standard-16",
"Linode 96GB", "g6-standard-20",
"Linode 128GB", "g6-standard-24",
"Linode 192GB", "g6-standard-32",
@saviour123
saviour123 / guide.md
Created September 14, 2025 10:37
Host static page on firebase
npm create vite@latest mybeautifulapp

cd mybeautifulapp
npm install && npm install -g firebase-tools

firebase init hosting


npm run build
@saviour123
saviour123 / main.tf
Created July 29, 2025 11:00
Provision LKE enterprise
# tf init
# tf apply
terraform {
required_providers {
linode = {
source = "linode/linode"
}
}
}
@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 / job.sh
Created January 22, 2025 13:17
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 / 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)