title | subtitle | author | date | source |
---|---|---|---|---|
Docker Compose Cheatsheet |
Quick reference for Docker Compose commands and config files |
Jon LaBelle |
April 7, 2019 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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]:'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# === 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. | |
# |