I hereby claim:
- I am mcint on github.
- I am mcint (https://keybase.io/mcint) on keybase.
- I have a public key ASCfrC1CkNEqo47DDEgRsIdKR5ID8BGp719vfN0__wfCFAo
To claim this, I am signing this object:
[[ "$PATH" =~ "%" ]] PATH=(for SUB in `echo $PATH | tr : '\n'`; do [[ "$SUB" =~ "%" ]] && (echo "$(printenv `echo $SUB|cut -d% -f2`)$(echo $SUB|cut -d% -f3)" | sed 's_C:_/c_g' | sed 's_\\_/_g') || echo $SUB; done) | tr '\n' : | sed 's_:$__' |
if [[ "$PATH" =~ "%" ]]; then | |
PATH="$((for SUB in $(echo $PATH | tr : '\n'); do [[ \"$SUB\" =~ \"%\" ]] && (echo \"$(printenv `echo $SUB|cut -d% -f2`)$(echo $SUB|cut -d% -f3)\" | sed 's_C:_/c_g' | sed 's_\\_/_g') || echo $SUB; done) | tr '\n' : | sed 's_:$__')" | |
fi |
# Unix SysAdmin Decal | |
## Lab 1: Unix, the Shell, OSS {#lab1} | |
[Slides](https://ocf.io/decal/slides/1) and [lab](https://ocf.io/decal/labs/1) links for Tuesday 9-12-2017. | |
### Table of Contents {#toc} | |
1. [Create ssh key](#ssh-create) | |
2. [VPS hosting provider](#vps-hosting) | |
- We'll be providing the machines, one of | |
- Amazon Web Services | |
- Google Cloud Platform - account provided by us | |
- Digital Ocean |
### Keybase proof | |
I hereby claim: | |
* I am mcint on github. | |
* I am mcint (https://keybase.io/mcint) on keybase. | |
* I have a public key ASCUlyLiIN-lEUEuiJGoi1vceKBWs4nu9TifsX--2O99Ywo | |
To claim this, I am signing this object: |
I hereby claim:
To claim this, I am signing this object:
{ | |
"settingsVersion": "1.63.3", | |
"exclusionRules": [ | |
{ | |
"pattern": "https?://mail.google.com/*", | |
"passKeys": "" | |
} | |
], | |
"filterLinkHints": true, | |
"waitForEnterForFilteredHints": true, |
#!/bin/bash | |
set -eu -o pipefail | |
gen_priv() { | |
openssl genrsa 2048 2> /dev/null | |
} | |
gen_pub() { | |
echo "${1}" | openssl rsa -pubout 2> /dev/null | |
} |
# pip3 install fluentpy jinja2 | |
python3 -m fluentpy '_.lib.jinja2.Template("""asdf\n{% if "qwer" in lst %}rewq{% endif %}\nfdsa""").render({"lst":["qwer"]}).print()' |
-- Javascript for Automation | |
-- *this* works, but simple naive JS-literate variants do not. | |
-- prepending newlines b/c values are returned with implicit trailing "," | |
Application("Brave") | |
.windows.tabs() | |
.map(w=>"\n"+ | |
w.map(t=>"\n"+ | |
t.url()+" | "+t.title())) |
#!/usr/bin/env bash | |
: ${DEBUG:=} # 0 ... 2 | |
shopt -s extglob | |
debug(){ if [[ $DEBUG -ge $1 ]]; then shift 1; eval "${@}"; fi; } | |
debug 2 shopt -p extglob | |
acceptArg () { | |
local spec="$1" cb="$2" arg="$3"; |