-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
58 additions
and
30 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
command -v dz >/dev/null 2>&1 || (echo "dz is not installed or in PATH"; exit 1) | ||
|
||
UUID=$(cat ~/.dz/vms.json | jq -r '.[][] | select(.alias=="'${1}'") | select(.state=="running") | .uuid') | ||
dz shell ${UUID:-${@}} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
case ${OSTYPE} in | ||
darwin*) | ||
killall -HUP mDNSResponder | ||
;; | ||
solaris*) | ||
pkill nscd | ||
;; | ||
esac |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
case ${OSTYPE} in | ||
darwin*) | ||
linux*) | ||
sudo lsof -i :${1} | ||
;; | ||
solaris*) | ||
lsof -o ${1} | ||
;; | ||
esac |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# vim:ft=sh | ||
|
||
# operation specific file | ||
[ -r ${HOME}/.hosts.d/_${MS_OS} ] && source ${HOME}/.hosts.d/_${MS_OS} | ||
[ -r ${HOME}/.hosts.d/_${MS_OS} ] && source ${HOME}/.hosts.d/_${MS_OS} || : | ||
|
||
# hostname specific file | ||
HOST_FILE=$(hostname | sed 's/[.].*//g') | ||
[ -r ${HOME}/.hosts.d/${HOST_FILE} ] && source ${HOME}/.hosts.d/${HOST_FILE} | ||
[ -r ${HOME}/.hosts.d/${HOST_FILE} ] && source ${HOME}/.hosts.d/${HOST_FILE} || : |
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
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