Skip to content

Instantly share code, notes, and snippets.

View patdavid's full-sized avatar

Pat David patdavid

View GitHub Profile
@patdavid
patdavid / patdavid-print-style.patch
Created December 8, 2016 17:28
PIXLS.US print style patch
From a89c508eb251a5a87793fad005fb17dfeba29be8 Mon Sep 17 00:00:00 2001
From: Pat David <patdavid@gmail.com>
Date: Thu, 8 Dec 2016 11:17:52 -0600
Subject: [PATCH] Work on print css styles
Fix the paragraph width issue (it was likely max-width being
set that was causing a problem).
Set all elements to 80% width of the container (div.column).
Set font to 14pt (12pt seemed too small when printing tests).
@patdavid
patdavid / recursive-directories-mp3-gain
Created October 4, 2016 15:45
recursively find directories and apply mp3gain to all the .mp3 files inside
find ./ -type d -exec bash -c 'cd "$1"; mp3gain -a -k -m 3 *.mp3' -- {} \;
@patdavid
patdavid / bash-rename-list
Created October 4, 2016 14:59
Rename a bunch of files including lines from an external file
while read -u 9 filename; do read -u 8 newname; mv "$filename.mkv" "$filename - $newname.mkv"; done 9<<<"$(ls -1 *.mkv | sed -e 's/\..*$//')" 8< namelist
@patdavid
patdavid / test-gist.md
Created February 18, 2016 18:39
Testing gist

Testing something

Not sure that this will work the way I expect it to...

@patdavid
patdavid / GIMP FAQ
Last active August 29, 2015 14:15 — forked from prokoudine/GIMP FAQ.md
**Can I use GIMP commercially?**
Yes, you can. GIMP is free software, it doesn't put restrictions on the kind
of work you produce with it.
**What's the GNU GPL license, and how do I comply with it?**
* You are free to use GIMP, for any purpose
* You are free to distribute GIMP
* You can study how GIMP works and change it