Author: Matthew T Zito (goldmund)
License: MIT
git_bootstrap
- bootstrap a new git repository with .gitignore and README filesbash_bootstrap
- bootstrap a new bash script with a formatted header, add execute permissions, launch in text editordocker_clean
- stop all running processes for given Docker images; remove them, purge all resulting dangling images and volumesmkalias
- create permanent aliases; adds a .mkalias.conf file to user's home dir and sources it in user's bash runtime config. all aliases are stored in .mkalias.conf
no-env
- catch .env files in the staging area and prevent them from being included in your git commits. includes installer script
print_log_events
- print from a given log file only those events executed by the current user
flush_iptables
- flush all firewall rules, tables, chains, and manglesenable_port_fwd
- enables port forwardingedit_hosts
- Add or remove a line to/from /etc/hosts by IP & hostname (run as root)
intconv
- convert a binary or hexadecimal value to decimalfp
- functional programming utils for bashkill_port
- kill the process listening on a given portshutil
- ultimate utilities sourceable
Download: curl -O https://raw.githubusercontent.com/exbotanical/shcripts/master/scripts/<script_name.bash>
This package includes a pre-commit hook and an installer script. Once installed, the hook executes before you make a git commit; it parses the staging area for any .env
files. If a .env
file is found, the commit will be aborted and you'll be notified.
At this point, you may want to include the .env
file(s) in your .gitignore
. If you wish to commit the file(s) anyway, you can bypass the hook with git commit --no-verify
or you can set the option git config hooks.allowenv true
- the script will then ignore .env
files until set to false
.
Instructions:
- Download the hook & installer to your repository root:
curl -O "https://raw.githubusercontent.com/exbotanical/shcripts/master/hooks/no-env/{no-env.sh,installer}"
- Add execute permissions to the installer:
chmod u+rx installer
- Execute the installer:
./installer