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 | |
# me | |
# ------------------------------------------------------------------------------ | |
script=$(basename $0) | |
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &>/dev/null && pwd )" | |
script_path="${script_dir?}/${script}" | |
# error & usage |
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 | |
# https://medium.com/@Drew_Stokes/bash-argument-parsing-54f3b81a6a8f | |
PARAMS="" | |
while (( "$#" )); do | |
case "$1" in | |
-a|--my-boolean-flag) | |
MY_FLAG=0 | |
shift | |
;; |
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
└─▪ curl --insecure -vvI https://porkbellies.randolph.duke.sell/ 2>&1 | | |
awk 'BEGIN{cert=0} /^\* SSL connection/ {cert=1} /^\* / {if(cert) print}' | |
* subject: CN=*.randolph.duke.sell | |
* start date: Dec 7 13:54:42 2020 GMT | |
* expire date: Mar 7 13:54:42 2021 GMT | |
* issuer: C=US; O=Let's Encrypt; CN=R3 | |
* SSL certificate verify ok. |
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
aws ec2 describe-images \ | |
--filters "Name=name,Values=kinetica*" --query \ | |
"Images[*].{ID:ImageId,NAME:Name,DESC:Description,CREATED:CreationDate}" |
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
#!/usr/bin/perl | |
############################################################################# | |
### poll_subs.pl: Net:SSH or Func guts | |
############################################################################# | |
use Data::Dumper; | |
our $SHELL_TRUE = 0; | |
our $DEBUG = 0; |
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
#!/usr/bin/perl | |
##################################################################### | |
### | |
### sort_ips.pl | |
### ----------- | |
### | |
##################################################################### | |
use strict; |
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
ntpdc -c loopinfo | awk '^offset: {print $2}' |
NewerOlder