Skip to content

Instantly share code, notes, and snippets.

@casonclagg
casonclagg / timelapse.md
Created May 20, 2019 01:41 — forked from billmei/timelapse.md
ffmpeg time-lapse

Convert sequence of GoPro Hero 6 Black JPEG images to MKV / MP4 video

ffmpeg \
  -r 30000/1001 \
  -pattern_type glob -i '*.JPG' \
  -vf "crop=in_w:in_w*9/16,scale=3840:-2" \
  -sws_flags lanczos \
  -pix_fmt yuv420p \
 -vcodec libx264 \
#IfWinActive Rust
Numpad0 & Numpad2::
count := 0
Loop {
Send, l
sleep, 3000
count++
If (count = 300) {
count := 0
Send, 6
@casonclagg
casonclagg / All the_Text-to__Speeches.textfile
Created December 19, 2017 05:43
All the cli text to speeches for my AIs
sudo pip install gTTS
gtts-cli "Hello" -l 'af' -o hello.mp3
sudo apt-get install gnustep-gui-runtime
say "hello"
sudo apt-get install festival
echo "hello" | festival --tts
sudo apt-get install speech-dispatcher
@casonclagg
casonclagg / mongo-redis-etc.sh
Last active March 17, 2020 20:05
Run services in docker
docker run --name mongo -d -v ~/mongodata:/data/db -p 27017:27017 mongo
docker run -d -p 6379:6379 --name redis redis
docker run \
--publish=7474:7474 --publish=7687:7687 \
--volume=$HOME/neo4j/data:/data \
--volume=$HOME/neo4j/logs:/logs \
neo4j:3.0
docker run -p 15672:15672 -d --hostname myrabbit --name rabbit rabbitmq:3-management
@casonclagg
casonclagg / image-magick-font-junk.sh
Last active October 29, 2016 23:03
Use custom fonts to generate images from text with imagemagick
# download a font (like Bebas from dafont) and put it in /Users/cason/projects/fonts
# save imagick_type_gen somewhere, go there
find /Users/cason/projects/fonts -name '*.TTF' | perl imagick_type_gen -f - > ~/.magick/type-myfonts.xml
cat ~/.magick/type-myfonts.xml
# copy the <type> tag and put it in /usr/local/etc/ImageMagick-6/type.xml after the apple fonts