Skip to content

Instantly share code, notes, and snippets.

@bradtraversy
bradtraversy / docker_wordpress.md
Last active June 3, 2024 07:17
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes
ffmpeg -i "$1" -r 14 -an -vf scale=1080:1920 -filter:v "setpts=0.5*PTS" "$1.fr.mp4"
#exit;
ffmpeg -i "$1.fr.mp4" -r 30 -filter:v "setpts=0.5*PTS" "$1.rs.mp4"
ffmpeg -i "$1.rs.mp4" -filter_complex "[0:v]reverse,fifo[r];[0:v][r] concat=n=2:v=1 [v] " -map "[v]" "$1.b.mp4"
for i in {1..4}; do printf "file '%s'\n" $1.b.mp4 >> list.$1.txt; done
ffmpeg -f concat -i list.$1.txt -c copy $1.boomerang.mp4
rm "$1.fr.mp4"
@tayvano
tayvano / gist:6e2d456a9897f55025e25035478a3a50
Created February 19, 2017 05:29
complete list of ffmpeg flags / commands
Originall From: Posted 2015-05-29 http://ubwg.net/b/full-list-of-ffmpeg-flags-and-options
This is the complete list that’s outputted by ffmpeg when running ffmpeg -h full.
usage: ffmpeg [options] [[infile options] -i infile]… {[outfile options] outfile}…
Getting help:
-h — print basic options
-h long — print more options
-h full — print all options (including all format and codec specific options, very long)
@gkhays
gkhays / DrawSineWave.html
Last active April 27, 2024 06:01
Oscillating sine wave, including the steps to figuring out how to plot a sine wave
<!DOCTYPE html>
<html>
<head>
<title>Sine Wave</title>
<script type="text/javascript">
function showAxes(ctx,axes) {
var width = ctx.canvas.width;
var height = ctx.canvas.height;
var xMin = 0;
@hofmannsven
hofmannsven / README.md
Last active June 4, 2024 04:25
Git CLI Cheatsheet