Skip to content

Instantly share code, notes, and snippets.

View arthurpizza's full-sized avatar

Arthur Reeder arthurpizza

View GitHub Profile
@arthurpizza
arthurpizza / quaklink
Created August 14, 2015 00:39
Grabs the first link from DuckDuckGo search
@arthurpizza
arthurpizza / imagemagick-titles.md
Created August 21, 2015 19:12
A quick guide to making titles for videos with Imagemagick

Quick guide to imagemagick titles for video

On Apple:

convert -background black -fill white -font /Library/Fonts/Apple\ LiSung\ Light.ttf -size 1920x1080 -pointsize 120 -gravity center label:'Dink Thifferent' title.png

On Linux:

@arthurpizza
arthurpizza / video-cheatsheet.md
Last active September 20, 2024 11:40
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.

#! /bin/sh
ipconfig getifaddr en0
@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
@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 / 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 / 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 / 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

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