Skip to content

Instantly share code, notes, and snippets.

View catpea's full-sized avatar
😺
Writing and Recording Poetry and Philosophy

Dr. Thunder Cat Pea catpea

😺
Writing and Recording Poetry and Philosophy
View GitHub Profile
@catpea
catpea / intellisense-is-embarrassing.txt
Last active October 9, 2022 14:12
Disable InelliSense Popup
{
"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,
@catpea
catpea / make.sh
Created March 13, 2022 04:19
Making art time lapse videos.
# 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
let __from = (new Error().stack.split('at ')[2]).trim()
@catpea
catpea / noir.sh
Last active October 22, 2020 02:07
# 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
@catpea
catpea / ideas.txt
Created October 12, 2020 00:39
Dot File Ideas
gsettings set org.gnome.shell.app-switcher current-workspace-only true
@catpea
catpea / git-dates.sh
Created September 13, 2020 22:39
Print git file creaton dates in ISO 8601 format.
for i in db/*/index.yaml
do
echo "$i:" $(git log --diff-filter=A --follow --format=%aI -1 -- $i)
done