In case the browser starts complaining about invalid SRI hashes.
curl -s <URL> | openssl dgst -sha256 -binary | openssl enc -base64
#!/usr/bin/env bash | |
set -euo pipefail | |
echo "SETTING UP" | |
npm ci | |
npm install npm-check-updates | |
npm upgrade npm-check-updates | |
echo | |
echo "UPGRADING MINOR VERSIONS" |
echo '' | fzf --print-query --preview "cat *.json | jq {q}"
Add -mtime -2
to limit files by last modified time. -2
to means "in the last 2*24 hours from now".
#!/usr/bin/env bash | |
set -xeuo pipefail | |
function get_major_version () { | |
echo "${1}" | grep -Po '[^0-9]+\K(\d+)' | head -n1 | |
} | |
function get_version () { | |
echo "${1}" | grep -Po '[^0-9]+\K([0-9.]+)' | head -n1 | |
} |
function ensureNodes(children) { | |
if (Array.isArray(children[0])) { | |
return ensureNodes(children[0]) | |
} | |
return children | |
.filter(child => !!child) | |
.map(child => { | |
if (typeof child === 'string') { | |
return document.createTextNode(child); |
https://docs.google.com/spreadsheets/d/%s/export?gid=0&single=true&format=csv | |
https://docs.google.com/spreadsheets/d/{key}/gviz/tq?tqx=out:csv&sheet={sheet_name} |