Skip to content

Instantly share code, notes, and snippets.

@vicenterusso
vicenterusso / docker-compose.yml
Last active November 12, 2023 13:33
Docker Compose with fix Fedora 35/36/37 MySQL container - Leak Memory - High Usage - Error code 137
version: '3'
services:
mysqldb:
image: mysql:5.7.22
container_name: mysql_container_name
restart: always
ulimits:
nproc: 65535
nofile:
soft: 20000
@byrnedo
byrnedo / check_docker_newer_tag.sh
Created April 7, 2016 07:08
Check if newer docker image available.
#!/bin/bash
# ensure running bash
if ! [ -n "$BASH_VERSION" ];then
echo "this is not bash, calling self with bash....";
SCRIPT=$(readlink -f "$0")
/bin/bash $SCRIPT
exit;
fi
@soarez
soarez / ca.md
Last active May 3, 2024 00:04
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.