short url: caseywatts.com/selfpublish
my book is out! an applied psychology / self-help book targeted at developers: Debugging Your Brain
Markdown --> PDF (as a booklet!)
Markdown --> EPUB and MOBI
| echo 'Scripts for debian13 post-install' |
| apt install python3-flake8 pylint mypy |
| sqlite3 .kobo/KoboReader.sqlite | |
| sqlite> INSERT INTO user (UserID,UserKey,Subscription) VALUES('2','1','1'); | |
| sqlite> .exit |
| echo 'Scripts for debian12 post-install' |
| #!/bin/bash | |
| function video_edit(){ | |
| rm -f transforms.trf | |
| ffmpeg -i "${1}" -vf vidstabdetect=shakiness=5 -f null - | |
| case "$1" in | |
| *.MTS) VCODEC="-vcodec libx264" ;; | |
| *) VCODEC= ;; | |
| esac |
short url: caseywatts.com/selfpublish
my book is out! an applied psychology / self-help book targeted at developers: Debugging Your Brain
Markdown --> PDF (as a booklet!)
Markdown --> EPUB and MOBI
| echo 'Scripts for debian11 post-install' |
| #!/bin/bash | |
| #by caio2k | |
| #tested on debian10 | |
| #based on https://del.igh.tf/ul/bodypix-and-obs/ | |
| #install obs-studio and dependencies to compile v4l2 output plugin | |
| sudo apt install obs-studio v4l2loopback-dkms cmake libobs-dev qtbase5-dev | |
| git clone --recursive https://github.com/obsproject/obs-studio.git | |
| git clone https://github.com/CatxFish/obs-v4l2sink.git | |
| cd obs-v4l2sink/ && mkdir build && cd build |
| #rebase from upstream | |
| #first add the upstream refer into .git/config | |
| #[remote "upstream"] | |
| git rebase upstream/master | |
| #remove last commmit | |
| git reset --hard HEAD^ |
| #!/bin/bash | |
| ls -1 *JPG > /tmp/files.txt | |
| mencoder -nosound -ovc lavc -lavcopts vcodec=mpeg4 -o /tmp/test.avi -mf type=jpeg:fps=15 mf://@/tmp/files.txt | |
| ffmpeg -r 15 -pattern_type glob -i '*.JPG' -vcodec libx264 -vf scale=-1:1080 output.mp4 |