Merge branch 'master' of ssh://git.lyte.dev:2222/lytedev/dotfiles

This commit is contained in:
Daniel Flanagan 2019-11-07 08:35:45 -06:00
commit 20500dd06b
3 changed files with 21 additions and 0 deletions

17
bin/check-port Executable file
View file

@ -0,0 +1,17 @@
#!/usr/bin/env bash
if [[ $1 = t ]] || [[ $1 = tcp ]] || \
[[ $1 = T ]] || [[ $1 = TCP ]]; then
echo "TCP is the default. You don't need to specify it."
exit 1
fi
if [[ $1 = u ]] || [[ $1 = udp ]] || \
[[ $1 = U ]] || [[ $1 = UDP ]]; then
shift
set -x
sudo nmap -sU $1 -p $2
else
set -x
nmap $1 -p $2
fi

3
bin/dns Executable file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env bash
getent hosts $*

View file

@ -1,5 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# TODO: warn on merge conflicts?
cd "${NOTES_PATH}" || exit cd "${NOTES_PATH}" || exit
git add -A git add -A
git commit -m Updates git commit -m Updates