Skip to content

Instantly share code, notes, and snippets.

View m99coder's full-sized avatar

Marco Lehmann m99coder

View GitHub Profile
@m99coder
m99coder / README.md
Last active September 3, 2022 11:05
Run EC2 instance with SSH access and install Docker with Docker Compose as CLI plugin

Run EC2 instance and install Docker

AWS EC2

How to install CLI

brew install awscli
@m99coder
m99coder / README.md
Created September 7, 2022 06:57
Install Docker Community Edition on CentOS

Install Docker Community Edition on CentOS

Based on Install Docker Engine on CentOS

$ # uninstall old versions
$ sudo yum remove docker \
                  docker-client \
                  docker-client-latest \
                  docker-common \
@m99coder
m99coder / README.md
Last active September 9, 2022 14:30
Docker Stats

Docker Monitoring

Docker Stats

docker stats
docker stats \
  --format "table {{ .Name }} {{ .ID }} {{ .MemUsage }} {{ .CPUPerc }}"
@m99coder
m99coder / README.md
Last active September 9, 2022 20:37
Docker Swarm

Docker Swarm

Initialization

# on leader node
docker swarm init
docker node ls

# on worker nodes
@m99coder
m99coder / alacritty.yaml
Last active March 27, 2023 19:16
Alacritty + tmux
# Configuration for Alacritty, the GPU enhanced terminal emulator.
# Full config: https://github.com/alacritty/alacritty/blob/master/alacritty.yml
env:
TERM: xterm-256color
window:
padding:
x: 8
y: 8
@m99coder
m99coder / configure.sh
Last active May 7, 2024 14:06
Ubuntu 20.04 config for Kubernetes
#!/usr/bin/env bash
# run it like that:
# bash <(curl -sL https://gist.github.com/m99coder/d39540caaa04b8aaac5ef1e041dec99b/raw/configure.sh)
# bash <(curl -sL http://tiny.cc/configure)
# colorize prompt
export PS1="\[\e[0;32m\][\u@\h \W]$\[\e[m\] "
# change locale to English
@m99coder
m99coder / markdown.appearance.json
Created August 27, 2025 20:03
Obsidian Profile Switcher QuickAdd Custom Script
{
"cssTheme": "Material Gruvbox",
"theme": "obsidian",
"textFontFamily": "FiraCode Nerd Font,Alegreya",
"baseFontSize": 14,
"showViewHeader": false
}
@m99coder
m99coder / README.md
Last active September 3, 2025 11:01
VSCodium + Rust Analyzer