Skip to content

Instantly share code, notes, and snippets.

View ryross's full-sized avatar

Ryder Ross ryross

View GitHub Profile
<?php
$repo_dir = '/var/www/';
// Full path to git binary is required if git is not in your PHP user's path. Otherwise just use 'git'.
$git_bin_path = 'git';
$branch = '';
//$update = false;
$update = true;
@ryross
ryross / phantom.sh
Last active August 29, 2015 14:08 — forked from ruudud/buster-phantom.sh
#!/bin/bash
#
# Depends on phantom.js being installed
#
PHANTOM_CMD="phantomjs"
command -v $PHANTOM_CMD > /dev/null || { echo "Phantomjs not found"; exit 1; }
get_phantom_pid (){
@ryross
ryross / .profile
Created March 5, 2010 19:00
bash script for git branch recognition
function find_git_branch {
local dir=. head
until [ "$dir" -ef / ]; do
if [ -f "$dir/.git/HEAD" ]; then
head=$(< "$dir/.git/HEAD")
if [[ $head == ref:\ refs/heads/* ]]; then
git_branch=" (${head#*/*/})"
elif [[ $head != '' ]]; then
git_branch=' (detached)'
else
javascript:elms=document.getElementById('friends').getElementsByTagName('li');for(var fid in elms){if(typeof elms[fid] === 'object'){fs.click(elms[fid]);}}
[2:24pm] <MaximusColourum_>four tet
[2:24pm] <MaximusColourum_> eoto
[2:24pm] <MaximusColourum_> sound tribe sector 9
[2:24pm] <MaximusColourum_> 5 style
[2:25pm] <MaximusColourum_> the duo
[2:25pm] <MaximusColourum_> aka Benevento Russo Duo
[2:25pm] <MaximusColourum_> ryduh hope that helps keep you going for a while ^^
[2:26pm] <ryduh> it will lol. thanks. I'm checking out Four Tet right now
[2:27pm] <MaximusColourum_> the next two are electronica jam bands. the duo play an old ass soundcraft keyboard and a simple jazz drum set. 5 style is as it says in the name, a hodge podge of stuff
@ryross
ryross / Helper_States
Created April 12, 2010 21:57
Helper_States
<?php defined('SYSPATH') or die('No direct script access.');
class Helper_States
{
public static $state_list = array(
'alabama' => 'Alabama',
'alaska' => 'Alaska',
'arizona' => 'Arizona',
'arkansas' => 'Arkansas',
#!/bin/bash
dir=$(pwd)
project=''
# Check for Git
type -P git || { echo 'Git is not installed. Exiting.'; exit 1; }
while [ "$1" != '' ]
do
case $1 in
@ryross
ryross / kreate.sh
Created August 5, 2010 04:07
kreate.sh
#!/bin/bash
dir=$(pwd)
project=''
# Check for Git
type -P git || { echo 'Git is not installed. Exiting.'; exit 1; }
while [ "$1" != '' ]
do
case $1 in
@ryross
ryross / base.php
Created August 5, 2010 04:13
classes/controller/base.php
<?php defined('SYSPATH') or die('No direct script access.');
class Controller_Base extends Controller_Template
{
public $auto_render = TRUE;
public $template = 'template/template';
protected $session;
public function __construct(Request $request)
{
@ryross
ryross / base.css
Created August 5, 2010 04:15
public_html/css/base.css
/* DISCLAIMER: This file was based off of YUI reset and font css files. */
html{color:#000;background:#FFF;}
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td {margin:0;padding:0;color:#222;}
table { border-spacing: 0; border-collapse: collapse; }
th, td { border:1px solid #000; padding:.5em; }
th { font-weight:bold; text-align:center;}
fieldset,img {border:0;}
address,caption,cite,code,dfn,em,strong,var { font-style:normal; font-weight:normal; }