Skip to content

Instantly share code, notes, and snippets.

View heralight's full-sized avatar

Alexandre Richonnier heralight

View GitHub Profile
@heralight
heralight / Remove all git tags
Last active November 11, 2017 16:31 — forked from okunishinishi/Remove all git tags
Delete all git remote tags
# Delete local tags.
git tag -d $(git tag -l)
#Fetch remote tags.
git fetch
#Delete remote tags.
git push origin --delete $(git tag -l) # Pushing once should be faster than multiple times
#Delete local tags.
git tag -d $(git tag -l)
# for shell copy paste:
@heralight
heralight / Zip with yyyymmdd_FirstFile.sh
Last active December 26, 2017 13:56
Automator Zip Compress / Uncompress with pattern filename
tabargs=( "$@" )
firstFile="$1"
directory=$(dirname "$1")
cd "$directory"
zipFileName=`basename "$firstFile"`
DATE=`date '+%Y%m%d_%H%M%S'`
zipFileName=${DATE}_${zipFileName}.zip
echo $zipFileName
echo $directory
@heralight
heralight / docker-compose.yml
Last active November 5, 2022 14:52
Rancher 2.6 traefik and docker-compose with let's encrypt namecheap DNS-01 challenge
version: "3.3"
services:
traefik:
image: "traefik:v2.9"
container_name: "traefik"
command:
- "--log.level=DEBUG"
- "--api.insecure=true"