Plugin https://github.com/fatih/vim-go
Tutorial https://github.com/fatih/vim-go-tutorial
Vimrc https://github.com/fatih/dotfiles/blob/master/vimrc
- File
:GoRun %
- Package
:GoRun
- Debug
:GoDebugStart
``` | |
apt install siege -y | |
siege -c 255 -t 5m https://my.tls.host/api/status | |
``` |
# enter any kubernetes pod/container directly just by "part" of it's cotnainer name | |
cshell () | |
{ | |
d=$1; | |
docker exec -it $(docker ps |grep "k8s_$d" | awk '{print $1}' | head -1) /bin/bash | |
} |
seal-sops: ## SOPS Encrypt all secrets path matching [_sec|secret|config|*.secret*] | |
@find $(PTH) -path "*/_sec/*" -type f -o -path "*/secret/*" -type f -o -path "*/config/*" -name "*.secret*" -type f |\ | |
egrep -v '(\.enc|\.asc|\.sealed|\.matrix)' |\ | |
while read file; do \ | |
./scripts/seal-sops $$file;\ | |
done; | |
unseal-sops: ## SOPS Decrypt all secrets (suffix: .enc and .enc.yaml) | |
@find $(PTH) -name "*.enc" -type f -o -name "*.enc.*" -type f |\ | |
while read file; do \ |
# Generating throwaway QR codes from the command line for shunting URLS to mobile devices | |
brew install qrencode | |
qrencode -o - http://www.google.com | open -f -a preview |
Install Dafang Hacks on the Wyze Cam.
Once running and all is functional, continue. Set video bitrate to 1500, VBR, 30fps.
Byobu is a suite of enhancements to tmux, as a command line | |
tool providing live system status, dynamic window management, | |
and some convenient keybindings: | |
F1 * Used by X11 * | |
Shift-F1 Display this help | |
F2 Create a new window | |
Shift-F2 Create a horizontal split | |
Ctrl-F2 Create a vertical split | |
Ctrl-Shift-F2 Create a new session |
#!/bin/bash | |
# /System/Library/CoreServices/Screen Sharing.app | |
# https://ss64.com/osx/kickstart.html | |
# https://apple.stackexchange.com/questions/30238/how-to-enable-os-x-screen-sharing-vnc-through-ssh | |
SWITCH=${1:-on} | |
[[ "$SWITCH" == "on" ]] && { | |
echo "Enter VNC PASS" | |
read -s VNCPASS |
{ | |
"foo": { | |
"bar": { | |
"baz": "xyz" | |
} | |
} | |
} |