Skip to content

Instantly share code, notes, and snippets.

View jlogsdon's full-sized avatar

James Logsdon jlogsdon

View GitHub Profile
div.dashboard { width: 200px !important; }
div.main-content { width: 660px !important; }
<?php
class Simple_Injector {
protected $_data;
public function __construct(array $inject = array()) {
if (isset($inject['data'])) {
$this->setData($inject['data']);
}
}
<?php
require 'src/Color.php';
echo Console\Color::ize('Can we #{color}.red #{me}.yellow #{silly}.green up in this') . "\n";
echo Console\Color::ize('Can we #{color}.red(green,bright) #{me}.yellow #{silly}.green up in this') . "\n";
echo Console\Color::ize('Can we #{color
something that spans
many lines of text}.red(bright) #{me}.yellow #{silly}.green up in this') . "\n";
<?php
class Sg_Session_SaveHandler_Cache implements Zend_Session_SaveHandler_Interface {
protected $_cache;
/**
* Session lifetime
*
* @var int
*/
protected $_lifetime = false;
/**
Never did I think
That the day would come
Never did I think
That it was even possible
Never did I think
That I'd never want to eat
The Peach of my life
Yes, that's you, jmccree
The fuzz on your arms
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain('github.com') {
div.file div.input *, div.file div.name *, div.meta div.info *, div.meta div.actions *, .url-field, div#browser *, .machine, tt, pre, kbd, code {
font-family: "DejaVu Sans Mono", "Monaco", "Consolas", "Andale Mono", monospace !important;
}
}
git svn init -T/path/to/trunk -t/path/to/tags -b/path/to/branches http://svn... ./project
cd ./project
git remote add origin git@git...
git push origin master
<?php
use \lithium\security\Auth;
use \lithium\util\String;
Auth::config(array(
'account' => array(
'adapter' => 'Form',
'model' => 'Account',
'fields' => array('login'),
[20:00:08] Creating backup of Trac projects
[20:00:08] 10perimeterpark (656815)
[20:00:11] 2115piedmont (800928)
[20:00:12] aaps (1247372)
[20:00:13] acme (578997)
[20:00:14] acs (825498)
[20:00:15] acs-corporate (702622)
[20:00:16] afclients (2225320)
[20:00:17] ajff (6858629)
[20:00:18] alcan (787072)
#!/bin/bash
PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
BDIR=/mnt/backup # Backup directory
TDIR=/var/trac # Trac directory
SDIR=/var/svn # SVN directory
MDIR=/var/lib/mysql # MySQL directory
HDIR=/home # Home directory
DATE=`date +%Y-%m-%d`