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
# best practice: linux | |
nano ~/.pgpass | |
*:5432:*:username:password | |
chmod 0600 ~/.pgpass | |
# best practice: windows | |
edit %APPDATA%\postgresql\pgpass.conf | |
*:5432:*:username:password | |
# linux |
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 | |
# Modified from https://gist.github.com/EtherZa/581d9276336353838b2c939f9554d479 | |
# | |
# This script finds the files that are about to be committed, | |
# and runs dotnet format on them before adding them back to staging | |
# | |
# install dotnet-format: dotnet tool install -g dotnet-format | |
# make sure installed dotnet tools are on your path: | |
# export PATH="$PATH:$HOME/.dotnet/tools/" | |
# copy to .git/hooks/pre-commit and make executable |