View array-to-texttable.php
* Array to Text Table Generation Class
* @author Tony Landis <>
* @link
* @copyright Copyright (C) 2006-2009 Tony Landis
* @license
class ArrayToTextTable
View pdo-singleton-class.php
* @author Tony Landis
* @link
* @license Use how you like it, just please don't remove or alter this PHPDoc
class sdb
S3 to Rackspace Cloud Files Migration
This script will copy the contents of a S3
bucket to to a Rackspace Cloud Files container.
Depends on the boto and python_cloudfiles python libraries.
apt-get -y install build-essential
apt-get -y install gcc
apt-get -y install g++
apt-get -y install automake
View .emacs.el
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
;; Base distribution to use. This is a layer contained in the directory
# script for optimizing images in a directory (recursive)
# pngcrush & jpegtran settings from:
# pngcrush
for png in `find . | grep .png`; do
echo "crushing $png ..."
pngcrush -rem alla -reduce -brute "$png" temp.png
View smarty.json.php
* Smarty {json} plugin
* Type: function
* Name: json
* Purpose: fetch json file and assign result as a template variable (array)
* @author Tony Landis
* @copyright 2007 Tony Landis
* @website
Convert CSV string to fixed width text table. Supports multi-line rows, column width limits, and creates a header row automatically
@author Tony Landis
@license GPL
from math import ceil
class CsvToTxt():
Simple script you can put in your
crontab to monitor replication state
of all docs in the _replicator
couchdb database.
Will send an email with the host name,
doc name and state if state is not 'triggered'.
View gist:411622
// some data used in the examples
Ext.exampledata.states = [
['AL', 'Alabama', 'The Heart of Dixie'],
['AK', 'Alaska', 'The Land of the Midnight Sun'],
['AZ', 'Arizona', 'The Grand Canyon State'],
['AR', 'Arkansas', 'The Natural State'],
['CA', 'California', 'The Golden State'],
['CO', 'Colorado', 'The Mountain State'],