Skip to content

Instantly share code, notes, and snippets.

View hugmanrique's full-sized avatar

Hugo Manrique hugmanrique

View GitHub Profile
@ryansully
ryansully / optimize.sh
Created February 1, 2012 23:56 — forked from realdeprez/optimize.sh
image optimization script (pngcrush & jpegtran)
#!/bin/sh
# script for optimizing images in a directory (recursive)
# pngcrush & jpegtran settings from:
# http://developer.yahoo.com/performance/rules.html#opt_images
# pngcrush
for png in `find $1 -iname "*.png"`; do
echo "crushing $png ..."
pngcrush -rem alla -reduce -brute "$png" temp.png
@mrdaemon
mrdaemon / forums.sql
Created December 8, 2011 03:43
A simple MySQL schema for some sort of forums
/* Database Schema for simple Forums
* Author: Dee the great amateur RDBS wizard
* 07 Dec 2011 - Initial Version
*/
/* NOTE: You may want to alter this according to this setup,
* especially if you are not running the script as root and
* just need the tables.
*/