Skip to content

Instantly share code, notes, and snippets.

View arthurpizza's full-sized avatar

Arthur Reeder arthurpizza

View GitHub Profile
@arthurpizza
arthurpizza / film-to-dvd-ffmpeg.md
Created March 29, 2016 03:10
FFMPEG Film DVD Cheat Sheet

FFMPEG to DVD

This is the default for most movies.

Scope Movies

ffmpeg -y -i {Input} -vf scale=720:352,pad=720:480:0:64 \
-target film-dvd -vb 4M -aspect 1.7777 -ac 2 -ab 192k {Output}
@arthurpizza
arthurpizza / dailyshow.sh
Created February 4, 2016 20:55
Comedy Central Streaming
#! /bin/sh
mpv $(youtube-dl -g http://www.cc.com/shows/the-daily-show-with-trevor-noah/full-episodes)
@arthurpizza
arthurpizza / mysql-cheatsheet.markdown
Created January 6, 2016 22:32
MySQL Cheatsheet

MySQL Cheat Sheet

I stole this from a [stackoverflow] thread and it's been hella helpful.

To Export

mysqldump -u [uname] -p[pass] db_name > db_backup.sql
@arthurpizza
arthurpizza / wp.sh
Created January 6, 2016 18:15
Rapid local Wordpress Setup - NOT FOR DEPLOYMENT
#! /bin/sh
echo 'Pulling down Wordpress'
wget https://wordpress.org/latest.tar.gz
echo 'Extracting Wordpress'
tar -zxvf latest.tar.gz
cd wordpress
mv * ../
cd ..
rm -Rf wordpress
@arthurpizza
arthurpizza / rsync-cheat-sheet.markdown
Created December 23, 2015 00:20
RSYNC Cheat sheet

RSYNC Cheat Sheet

rsync -rtvu --delete source_folder/ destination_folder/

This will delete any files that are missing from the source that may be on the destination. This will also not rewrite identical files.

@arthurpizza
arthurpizza / naked-style.css
Last active December 22, 2015 22:06
Naked CSS
body {
max-width: 900px;
margin: 0 auto;
}
img {
max-width: 100%;
border-radius: 3px;
display: block;
margin-left: auto;
@arthurpizza
arthurpizza / blah-blah-blah.markdown
Created November 20, 2015 01:04
Jekyll Template
layout tags date title published slug
post
blog
2020-01-01 09:30
Blah Blah Blah
true
blah-blah-blah
@arthurpizza
arthurpizza / fix-broken-icons.md
Created September 18, 2015 05:51
Fix broken icons for Terminal and Thunar in xfce4 (Docky)

Fix the Broken Icons

Fix broken icons for Terminal and Thunar in xfce4 (Docky)

sudo cp /usr/share/applications/* ~/.local/share/applications
#! /bin/sh
ipconfig getifaddr en0
@arthurpizza
arthurpizza / video-cheatsheet.md
Last active December 6, 2022 16:04
Video editing cheat sheet

Video Processing with FFMPEG

Intro

Editng and Processing with FFMPEG and Imagemagick is fairly strait forword. Process your clips, concatenate, and compress. You need to make sure all you footage and title cards are the same resolution, framerate, and audio settings. You can convert the files when you first compress them to your working format.

Formats

Lossless Raw Video Format for editing.