Skip to content

Instantly share code, notes, and snippets.

<?php
// Stampr Mailing Hello World in PHP!
require 'vendor/autoload.php';
require 'src/Stampr/Stampr.php';
$stampr_login = "[email protected]";
$stampr_password = "your.stampr.password";
$endpoint = "https://stam.pr/api";
@cmawhorter
cmawhorter / redis.conf
Created June 7, 2013 00:16
default redis 2.6.10 conf with daemonize set to yes
# Redis configuration file example
# Note on units: when memory size is needed, it is possible to specify
# it in the usual form of 1k 5GB 4M and so forth:
#
# 1k => 1000 bytes
# 1kb => 1024 bytes
# 1m => 1000000 bytes
# 1mb => 1024*1024 bytes
# 1g => 1000000000 bytes
#!/bin/sh
#
# redis - this script starts and stops the redis-server daemon
#
# chkconfig: - 85 15
# description: Redis is a persistent key-value database
# processname: redis-server
# config: /etc/redis/redis.conf
# config: /etc/sysconfig/redis
# pidfile: /var/run/redis.pid
@cmawhorter
cmawhorter / spc
Created March 10, 2013 01:03
Simple shell script to output a number of blank lines. Defaults to 30.
#!/usr/bin/env bash
# usage: `spc` or `spc [number of lines]`
lines=${1:-30}
for ((i=1; i<=$lines; i++))
do
echo
done