View shell.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with import <nixpkgs> { }; | |
let | |
pythonPackages = python39Packages; | |
in pkgs.mkShell rec { | |
venvDir = "./.venv"; | |
name = "nfstream"; | |
requirements = "requirements.txt"; | |
buildInputs = [ | |
# Python |
View Run Pi Hole on Docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
View git_change_email.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
ECHO Enter Tex name: | |
SET /p input="" | |
GOTO check | |
:check | |
IF "%input%" == "" ( | |
ECHO Input is empty | |
GOTO exit |
View autocommit.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
ECHO Enter commit statement: | |
SET /p input="" | |
GOTO check | |
:check | |
IF "%input%" == "" ( | |
ECHO Input is empty | |
GOTO exit |