Skip to content

Instantly share code, notes, and snippets.

View itsme-renee's full-sized avatar

Renee Marie itsme-renee

  • Oakland, CA
View GitHub Profile
@itsme-renee
itsme-renee / mailchimp_subscribe.php
Created April 22, 2014 13:02
Mail Chimp Api subscribe to list example
<?php
/**
* First things first
*
* get the mailchimp api php package (you can use composer or just download it)
*
* https://packagist.org/packages/mailchimp/mailchimp
*
* Put it somewhere that you can access it and then instantiate it. (see the require_once line)
*
@itsme-renee
itsme-renee / gist:5576044
Created May 14, 2013 13:54
git post receive hook example
#!/bin/bash
##change website.com to your website
APP_PATH=/var/www/website.com
exit_with_error() {
echo "[DEPLOY] !!!!!!!!!!!!!!!!!!!! An error has occurred !!!!!!!!!!!!!!!!!!!!!!!"
exit 1
}