Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working

Stefan Machmeier stefanDeveloper

🏠
Working
  • Germany
View GitHub Profile
View Run Pi Hole on Docker
docker run -d --name pihole -e ServerIP=XXXXXX -e TZ=Europe/Berlin -e WEBPASSWORD=XXXXXX -e DNS1=1.1.1.1 -e DNS2=1.0.0.1 -p 80:80 -p 53:53/tcp -p 53:53/udp -p 443:443 -v ~/pihole/:/etc/pihole/ --dns=127.0.0.1 --dns=1.1.1.1 --cap-add=NET_ADMIN --restart=unless-stopped pihole/pihole:latest
View git_change_email.sh
git filter-branch -f --env-filter \
"GIT_AUTHOR_NAME='NAME'; GIT_AUTHOR_EMAIL='E-MAIL'; \
GIT_COMMITTER_NAME='NAME'; GIT_COMMITTER_EMAIL='E-MAIL';" HEAD
@stefanDeveloper
stefanDeveloper / git_change_email.sh
Created Nov 26, 2020
Git change e-mail of author and committer
View git_change_email.sh
#!/bin/sh
git filter-branch --env-filter '
an="$GIT_AUTHOR_NAME"
am="$GIT_AUTHOR_EMAIL"
cn="$GIT_COMMITTER_NAME"
cm="$GIT_COMMITTER_EMAIL"
if [ "$GIT_COMMITTER_EMAIL" = "OLD E-MAIL" ]
View biber_bibliography.bat
@echo off
ECHO Enter Tex name:
SET /p input=""
GOTO check
:check
IF "%input%" == "" (
ECHO Input is empty
GOTO exit
@stefanDeveloper
stefanDeveloper / autocommit.bat
Last active Jan 23, 2018
Batch script for git auto commit
View autocommit.bat
@echo off
ECHO Enter commit statement:
SET /p input=""
GOTO check
:check
IF "%input%" == "" (
ECHO Input is empty
GOTO exit