Skip to content

Instantly share code, notes, and snippets.

View mitchsmith's full-sized avatar

John Mitchell Smith mitchsmith

View GitHub Profile
@mitchsmith
mitchsmith / genpass.py
Created April 1, 2016 16:43
Python getopt example: genpass - A pasword/secret_key generator for all occasions
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""USAGE:
genpass [OPTIONS]
OPTIONS:
-h, --help
Display this help message.
-a, --allow=dec|hex|alpha|alnum|all
@mitchsmith
mitchsmith / gen_intro.sh
Created August 17, 2020 19:59
Deep dive into the ffmpeg man page
#!/usr/bin/env bash
IMGDIR=/home/john/Projects/video_projects/notd/assets/images/intro/
VIDDIR=/home/john/Projects/video_projects/notd/assets/video/
TMPDIR=tmp/
OUTPUTDIR=../tmp/
#ls $IMGDIR
mkdir $TMPDIR
# create init sequence from pngs --> step0
ffmpeg -r 6 -f image2 -s 1920x1080 -i ${IMGDIR}notd_init/%03d.png -vcodec libx264 -crf 5 -pix_fmt yuv420p ${TMPDIR}step0.mp4 &&