This file contains hidden or 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
function get(path, obj, fb = `$\{${path}}`) { | |
return path.split('.').reduce((res, key) => res[key] || fb, obj); | |
} | |
function parseTpl(template, map, fallback) { | |
return template.replace(/\$\{.+?}/g, (match) => { | |
const path = match.substr(2, match.length - 3).trim(); | |
return get(path, map, fallback); | |
}); | |
} |
This file contains hidden or 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
{ | |
"editor.hover.enabled": false, | |
"workbench.colorTheme": "Solarized Dark", | |
"terminal.explorerKind": "external", | |
"atomKeymap.promptV3Features": true, | |
"editor.formatOnPaste": true, | |
"html.format.wrapAttributes": "preserve", | |
"html.format.wrapLineLength": 0, |
This file contains hidden or 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
# smush frames intoa video | |
ffmpeg -framerate 7 -pattern_type glob -i '*.jpg' -c:v libx264 -r 30 ~/output1.mp4 | |
# hold the last frame for 60 s | |
ffmpeg -i output1.mp4 -vf tpad=stop_mode=clone:stop_duration=60 output1-long.mp4 |
This file contains hidden or 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
let __from = (new Error().stack.split('at ')[2]).trim() |
This file contains hidden or 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
# Please use the stills for photographing nature at night | |
# dont use video as shown below, it is only 0.16 fps... mewh | |
#listen | |
nc 192.168.1.68 5000 | mplayer -fps 60 -cache 2048 -cache-min 1 - | |
#NOTE you must set fps to a fraction ex: --framerate 0.1, if not -ss 6000000 will cause a shutdown | |
raspivid --timeout 0 --nopreview --framerate 0.1 -ss 6000000 -ISO 800 -l -o tcp://0.0.0.0:5000 | |
# with extras |
This file contains hidden or 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
gsettings set org.gnome.shell.app-switcher current-workspace-only true |
This file contains hidden or 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
for i in db/*/index.yaml | |
do | |
echo "$i:" $(git log --diff-filter=A --follow --format=%aI -1 -- $i) | |
done |