Skip to content

Instantly share code, notes, and snippets.

View AbdelouahabMbarki's full-sized avatar
🔧

Abdelouahab Mbarki AbdelouahabMbarki

🔧
View GitHub Profile
@AbdelouahabMbarki
AbdelouahabMbarki / docker-compose.yml
Last active May 21, 2023 16:16
traefik let's encrypt
version: '3.5'
services:
traefik:
image: "traefik:v2.8"
container_name: traefik
hostname: traefik
command:
- --entrypoints.web.address=:80
- --entrypoints.websecure.address=:443
version: '2'
# https://github.com/bitnami/containers/tree/main/bitnami/minio
services:
prepare-data:
image: 'docker.io/bitnami/bitnami-shell:latest'
user: root
command:
- /bin/bash
@AbdelouahabMbarki
AbdelouahabMbarki / nginx-tuning.md
Created June 22, 2021 12:37 — forked from denji/nginx-tuning.md
NGINX tuning for best performance

Moved to git repository: https://github.com/denji/nginx-tuning

NGINX Tuning For Best Performance

For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.

Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.

You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.

Bash Shortcuts

visual cheetsheet

Moving

command description
ctrl + a Goto BEGINNING of command line
@AbdelouahabMbarki
AbdelouahabMbarki / git-tag-delete-local-and-remote.sh
Created October 22, 2019 10:26 — forked from mobilemind/git-tag-delete-local-and-remote.sh
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname