Skip to content

Instantly share code, notes, and snippets.

View clok's full-sized avatar
👾
I can do this all day.

Derek Smith clok

👾
I can do this all day.
View GitHub Profile
@clok
clok / prune-git.sh
Created August 11, 2022 11:56
prune-git - local git maintenance script
#!/bin/bash
set +e
bold="\e[1m"
dim="\e[2m"
underline="\e[4m"
blink="\e[5m"
reset="\e[0m"
red="\e[31m"
@clok
clok / heap.go
Created June 16, 2022 16:07
generic heap
package main
type Heap[T any] struct {
data []T
compare func(a, b T) bool
}
func CreateHeap[T any](compare func(a, b T) bool) *Heap[T] {
return &Heap[T]{compare: compare}
}
.nh
.TH gwsm 8
.SH NAME
.PP
gwsm \- interact with config map and secret manager variables
.SH SYNOPSIS
.PP
.nh
.TH gwsm 8
.SH NAME
.PP
gwsm \- interact with config map and secret manager variables
.SH SYNOPSIS
.PP

% gwsm 8

NAME

gwsm - interact with config map and secret manager variables

SYNOPSIS

gwsm

Usage:

gwsm [GLOBAL OPTIONS] command [COMMAND OPTIONS] [ARGUMENTS...]

% gwsm 8

NAME

gwsm - interact with config map and secret manager variables

SYNOPSIS

gwsm

###
# nvm auto detect
find-up () {
path=$(pwd)
while [[ "$path" != "" && ! -e "$path/$1" ]]; do
path=${path%/*}
done
echo "$path"
}
@clok
clok / lominger_w_descriptions.md
Last active May 28, 2020 22:12
Lominger Standard 67 Competencies and Related Descriptions

Lominger Standard 67 Competencies and Related Descriptions

  1. Action Oriented

    Enjoys working hard; is action oriented and full of energy for the things he/she sees as challenging; not fearful of acting with a minimum of planning; seizes more opportunities than others.

  2. Dealing With Ambiguity

    Can effectively cope with change; can shift gears comfortably; can decide and act without having the total picture; isn t upset when things are up in the air; doesn't have to finish things before moving on; can comfortably handle risk and uncertainty.

Best practices for Communication

  • Choose a SINGLE, live, asynchronous chat tool (slack, teams, etc) that provides a single source of communication
  • Chat in PUBLIC channels. Visibility and transparency. Avoid private direct messages.
  • Create a parallel channel for recreational/non-work conversation within the designated chat tool.
  • Email is good for information distribution, not discussion
  • GW Behaviors

Best practices for Video

  • Top Down approach: The entire company from top to bottom embraces WFH
  • Use video during meetings to feel more engaged with your coworkers.
@clok
clok / crontab
Created June 6, 2017 13:09
Snowplow ES backup sync to S3
# m h dom mon dow command
0 * * * * /usr/sbin/es-dump
30 * * * * /usr/sbin/es-dump-s3-sync
45 0 * * * find /elasticsearch/backup/ -mtime +7 -delete