This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## diagnose http requests from this container | |
## if the response timed out, create a diagnostic report, and email it | |
readonly NOW=$(date +%Y.%m.%d-%H:%M:%S) | |
reasons="Test .." | |
email="[email protected]" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://gist.github.com/LaKing/fd0dadf24e2ad0cca1c3f085d29916f6#file-accessor-demo-js | |
/* @DOC Accessor-string implementation | |
// An accessor is a js-like syntax string that can be evaluated (without eval) | |
// set the env object: where keys are symbols for the string, and values are from our scope | |
// the string then has access to these values, and can perform dot notation, bracket notation, function evaluation with arguments. | |
// I wrote this for dynamic access to stuff in vuex store. (2021) | |
*/ | |
// Demo Object | |
const o = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/sh | |
ffmpeg -i input -c:v libx264 -preset slow -profile:v high -crf 18 -coder 1 -pix_fmt yuv420p -movflags +faststart -g 30 -bf 2 -c:a aac -b:a 384k -profile:a aac_low output |