Skip to content

Instantly share code, notes, and snippets.

View elzii's full-sized avatar

Alexander Zizzo elzii

View GitHub Profile
@elzii
elzii / so_node_modules.md
Last active January 4, 2016 07:29
S.O Nodejs Modules for consideration
@elzii
elzii / addthis_ajax_fix.js
Last active January 3, 2016 15:09
addthis ajax fix
/*
Addthis JS Fix
--------------
Assumes content lives in partial/content that is being loaded by an AJAX call
*/
// set addthos_config obj
var addthis_config = addthis_config||{};
// set the pubid to config obj
addthis_config.pubid = '__YOUR_PUBID__';
@elzii
elzii / header_example.php
Created December 11, 2013 23:25
// email components $data_cf_email = '__EMAILADDRESS__'; $headers = 'From: Imagination Foundation <[email protected]>' . "\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=utf-8\r\n"; $subject = 'Your event __EVENT NAME__ has been created!'; $message = ''This is the email content'; // mail it out wp_m…
<?php
// email components
$data_cf_email = '__EMAILADDRESS__';
$headers = 'From: Imagination Foundation <[email protected]>' . "\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=utf-8\r\n";
$subject = 'Your event __EVENT NAME__ has been created!';
$message = ''This is the email content';
@elzii
elzii / wgc.sh
Created December 2, 2013 21:37
WGET Walkthrough Bash Scripts
#!/bin/bash
# DEFAULTS
#=========================================
WGETDIRNAME="wget"
# WGETDEFAULTDIR="/Users/`whoami`/Dropbox/Development/$WGETDIRNAME"
WGETDEFAULTDIR="/Users/`whoami`/$WGETDIRNAME"
# REV=""
# L=""
# NP=""
# Rails Stuff
alias stoprails='kill -9 $(lsof -i :3000 -t)'
alias startrails='rails server -d'
alias restartrails='stopRails && startRails'
#Check PHP For Erroes
alias phpcheck='find ./ -name \*.php | xargs -n 1 php -l'
# ROT13-encode text. Works for decoding, too! ;)
alias rot13='tr a-zA-Z n-za-mN-ZA-M'