Skip to content

Instantly share code, notes, and snippets.

@rantastic
rantastic / crontab
Last active October 4, 2015 15:28
UNIX: Php Script Cron Job
wget -O - -q http://THEURL >/dev/null 2>&1
@rantastic
rantastic / index.html
Created April 28, 2012 18:22
HTML: Start Template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title></title>
<link rel="stylesheet" href="css/style.css" type="text/css" />
<!--[if IE]> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
</head>
<body>
@rantastic
rantastic / mail.php
Created April 16, 2012 22:17
PHP: Send email using amazon SES
<?php
//class docs: http://www.orderingdisorder.com/aws/ses/
require_once('ses.php');
//get credentials at http://aws.amazon.com My Account / Console > Security Credentials
$ses = new SimpleEmailService('ACCESSkeyID', 'SECRETaccessKEY');
$m = new SimpleEmailServiceMessage();
@rantastic
rantastic / GA_event_track.js
Last active October 2, 2015 09:08
JS: Google Analytics Javascript Trigger
_gaq.push(['_trackEvent', 'RootCat', 'Cat2', 'Cat3']);