Skip to content

Instantly share code, notes, and snippets.

View senorihl's full-sized avatar

Rodolphe Renaux senorihl

View GitHub Profile
@senorihl
senorihl / portainer.sh
Last active July 10, 2022 16:00
Simple local portainer container
set -eux; \
docker volume create portainer_data ;\
portainer_pass=$(docker run --rm httpd:2.4-alpine htpasswd -nbB admin "pass" | cut -d ":" -f 2) ;\
docker run -d -p 1337:9000 -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer-ce:latest --admin-password="$portainer_pass"
@senorihl
senorihl / README.md
Last active November 24, 2023 09:43
Clean and rebuild local staging branches

Bash script to clean & rebuild local staging branches

Installation

wget https://gist.githubusercontent.com/senorihl/637430191235b5362a27a8c785f9623c/raw/03c206bb0c8cecaff50325dfd170d913d1d97f6e/clean-staging-branch.sh -O $HOME/.clean-staging-branch.sh
chmod a+x $HOME/.clean-staging-branch.sh
git config --global alias.clean-staging '!bash $HOME/.clean-staging-branch.sh'
@senorihl
senorihl / README.md
Last active March 31, 2022 07:48
Clean local branches pushed & deleted on remote

Bash script to clean local branches which are pushed & deleted on remote

Installation

wget https://gist.githubusercontent.com/senorihl/22ee7018e0c167f994f2e75918de5166/raw/clean-local-branch.sh -O $HOME/.clean-local-branch.sh
chmod a+x $HOME/.clean-local-branch.sh
git config --global alias.clean-local '!bash $HOME/.clean-local-branch.sh'
@senorihl
senorihl / README.md
Last active March 19, 2025 11:00
Append branch to staging branch

Bash script to append branch to staging branche

Installation

wget https://gist.githubusercontent.com/senorihl/f1cb9fc3b595402535536000af15db33/raw/60fa518da823235e31923f0ec6447c846f508c7f/stage-branch.sh -O $HOME/.stage-branch.sh 
chmod a+x $HOME/.stage-branch.sh 
git config --global alias.stage-branch '!bash $HOME/.stage-branch.sh '