Skip to content

Instantly share code, notes, and snippets.

View erselbey's full-sized avatar
💻
🤯🤬⚔️

erselbey erselbey

💻
🤯🤬⚔️
View GitHub Profile
@fevangelou
fevangelou / my.cnf
Last active November 14, 2024 18:42
Optimized my.cnf configuration for MySQL/MariaDB (on Ubuntu, CentOS, Almalinux etc. servers)
# === Optimized my.cnf configuration for MySQL/MariaDB (on Ubuntu, CentOS, Almalinux etc. servers) ===
#
# by Fotis Evangelou, developer of Engintron (engintron.com)
#
# ~ Updated September 2024 ~
#
#
# The settings provided below are a starting point for a 8-16 GB RAM server with 4-8 CPU cores.
# If you have different resources available you should adjust accordingly to save CPU, RAM & disk I/O usage.
#
#!/bin/bash
echo "Building extended du reports for $1 in $2 ...";
cd $1
du -sh $1/* $1/.[a-zA-Z0-9]* $1/. > $2/du-output.txt
cat $2/du-output.txt | egrep '([0-9]M)' > $2/du-output-MB.txt
cat $2/du-output.txt | egrep '[0-9]G'> $2/du-output-GB.txt
cat $2/du-output-MB.txt | sort -hr > $2/du-output-MB-sorted.txt
cat $2/du-output-GB.txt | sort -hr > $2/du-output-GB-sorted.txt
echo ""
echo '[du extended report]:';
#!/bin/bash
set -e
PROJECT_ID=$(gcloud config list project --format='value(core.project)')
ZONE=us-central1-a
CLUSTER_NAME=demo-cluster
gcloud container clusters \
create $CLUSTER_NAME \
@erselbey
erselbey / docker_compose_cheatsheet.md
Created September 2, 2023 21:53 — forked from jonlabelle/docker_compose_cheatsheet.md
Docker Compose Cheatsheet