Skip to content

Instantly share code, notes, and snippets.

View jlogsdon's full-sized avatar

James Logsdon jlogsdon

View GitHub Profile
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
@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;
}
}
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
<?php
class Sg_Session_SaveHandler_Cache implements Zend_Session_SaveHandler_Interface {
protected $_cache;
/**
* Session lifetime
*
* @var int
*/
protected $_lifetime = false;
/**
<?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 Simple_Injector {
protected $_data;
public function __construct(array $inject = array()) {
if (isset($inject['data'])) {
$this->setData($inject['data']);
}
}
div.dashboard { width: 200px !important; }
div.main-content { width: 660px !important; }
<?php
/**
* CREATE TABLE `accounts` (
* `id` INT AUTO INCREMENT,
* `login` VARCHAR(50) NOT NULL,
* `password` VARCHAR(64) NOT NULL,
* `salt` VARCHAR(14) NOT NULL,
* PRIMARY KEY (`id`),
* INDEX (`login`, `password`);
Fanciful_Ghost -> 24.235.218.9
FlakCannon -> 98.225.209.78
Johnsonator1 -> 98.225.209.78
kururjui -> 173.168.74.26
mehboi -> 24.150.183.162
2011-02-13 23:50:05 [INFO] <§fkururuji§f> I want to appeal a ban
2011-02-13 23:50:15 [INFO] <§fkururuji§f> Oh
2011-02-13 23:50:16 [INFO] <§fkururuji§f> By the way
2011-02-13 23:50:22 [INFO] <§fkururuji§f> The majority of our hacks are not public
#!/bin/bash
#
# Links files in this directory to the current users home directory.
#
# If the link already exists the file will be skipped unless the -f flag is given.
real_path () {
_=`pwd`
[ -d $DIR ] && DIR=$1
[ -f $DIR ] && DIR=`dirname $1`