Skip to content

Instantly share code, notes, and snippets.

View rgbink's full-sized avatar

Anthony DeCrescenzo rgbink

View GitHub Profile
@rgbink
rgbink / README.md
Last active August 29, 2015 14:20 — forked from oodavid/README.md

Backup MySQL to Amazon S3

This is a simple way to backup your MySQL tables to Amazon S3 for a nightly backup - this is all to be done on your server :-)

Sister Document - Restore MySQL from Amazon S3 - read that next

1 - Install s3cmd

this is for Centos 5.6, see http://s3tools.org/repositories for other systems like ubuntu etc

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

@rgbink
rgbink / Terminal Notifier CLI Syntax [Mac]
Created April 29, 2015 14:11
Terminal Notifier command line syntax
/usr/bin/terminal-notifier -title 'Clinical Trials...' -message 'have been updated. Click to view.' -activate 'com.apple.Finder' -open 'file:///private/tmp/clinical_trial/' -group 'P4P'
// Include Color Thief Script
// https://github.com/lokesh/color-thief
function colorChange(){
//Be sure to include <img id="coverImage" src="" alt=""/>
var $myImage = $("#coverImage");
var colorThief = new ColorThief();
//Grabs 8 swatch color palette from image and sets quality to 5 (0 =slow, 10=default/fast)
var cp = colorThief.getPalette($myImage[0], 8, 5);
@rgbink
rgbink / find-and-delete-mac-terminal.sh
Last active June 20, 2016 01:03
Find and Delete files in Mac OS X Terminal
# Substitute your search term for YOURSEARCH
find ./ -name 'YOURSEARCH' -exec rm {} \;
# Change the command you apply to the found files by adjusting the call after the -exec
# For example, to list the found files…
find ./ -name '._*' -exec ls -al {} \;