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
# Dependancies: | |
# - Java | |
# - sqljdbc42.jar downloaded to local directory; http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=11774 | |
# - Graphviz; https://www.graphviz.org/download/ | |
# - use `-vizjs` in place of installing Graphviz; very slow and creates a larger output then Graphviz set to `-lq` | |
# - use `-hq` and `-lq` to control image quality | |
java -jar schemaspy-6.1.0.jar -lq -degree 1 -t mssql05 -host <host> -db <database> -o outDir -u <username> -p <password> -dp ./sqljdbc42.jar |
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
oc get -n devex-von-bc-registries-agent-tools pod -o wide 2>/dev/null | grep Error | awk '{print $1}' | xargs oc -n devex-von-bc-registries-agent-tools delete pod {} |
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
# Examples: | |
# | |
# - List all pods in an 'Unknown' state: | |
# oc projects -q | xargs -I {} sh -c "oc get -n {} pod -o wide 2>/dev/null | grep Unknown | awk '{print \"{},\"\$1\",\"\$3\",\"\$7}' | column -t -s , -N Namespace,Pod,Status,Node" | |
# | |
# - Delete all pods in an 'Unknown' state: | |
# oc projects -q | xargs -I {} sh -c "oc get -n {} pod -o wide 2>/dev/null | grep Unknown | \$(awk '{print \"oc -n {} delete --force --grace-period=0 pod \" \$1}')" | |
# | |
# - List pods on a given node: | |
# oc projects -q | xargs -I {} sh -c 'echo -e "\n{}:" && oc get -n {} pod -o wide 2>/dev/null | grep Running | grep ociopf-p-195.dmz' | awk '{print $1","$7}' | column -t -s , |
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/bash | |
OCTOOLSBIN=$(dirname $0) | |
# ================================================================================================================= | |
# Usage: | |
# ----------------------------------------------------------------------------------------------------------------- | |
usage() { | |
cat <<-EOF | |
Tests to see if a port is open. |
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
oc delete builds $(oc get builds | grep 'New\|Pending' | awk '{print $1;}') |
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
oc get builds | grep 'New\|Pending' | awk '{print $1;}' |
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
Windows Registry Editor Version 5.00 | |
; ============================================================================================================================== | |
; Registry script to fix Windows Explorer overlay icon priority issues with Tortoise and Dropbox. | |
; | |
; Priority is given to the Tortoise and Dropbox overlays. All others are ordered but are beyond the 15 overlays that | |
; Windows will use (Window will only use 11 from this list). | |
; | |
; Refer to the references for additional details. | |
; | |
; Open RegEdit as an administrator. |
NewerOlder