Skip to content

Instantly share code, notes, and snippets.

View esweeney-cg's full-sized avatar

Ed Sweeney esweeney-cg

View GitHub Profile
@esweeney-cg
esweeney-cg / cp.md
Last active March 14, 2023 15:57
copy file from pod to local

copy file from pod to local

kubectl cp <pod-name>:<fully-qualified-file-name> /<path-to-your-file>/<file-name> -c <container-name>

copy file from local to pod

@esweeney-cg
esweeney-cg / chatGPT_transscript_assess.md
Last active January 11, 2023 17:11
chatGPT and transcript assessments

chatGPT and transcript assessments

  1. create a chat session with https://chat.openai.com/chat
  2. paste into the chat this transcript, asking it how could the agent could have done better.
Here is a conversation between a call center agent and  a customer transcribed by automatic speech recognition: 

"agent  - Thank you for calling member services my name is Amber can I have your member ID and Social Security number to validate your . account
customer  - , um sure I thought I just put that near IB our system but let me take it up . again
@esweeney-cg
esweeney-cg / decode_pem.md
Created November 23, 2022 17:39
decode pem
openssl x509 -in certificate.crt -text -noout


@esweeney-cg
esweeney-cg / aa.sh
Created October 10, 2022 19:52
associative array via temp fs in bash
#
# BEGIN all purpose associative array via temp fs
#
prefix=$(basename -- "$0")
mapdir=$(mktemp -dt ${prefix})
trap 'rm -r ${mapdir}' EXIT
put() {
[ "$#" != 3 ] && exit 1
mapname=$1; key=$2; value=$3
[ -d "${mapdir}/${mapname}" ] || mkdir "${mapdir}/${mapname}"