Skip to content

Instantly share code, notes, and snippets.

Jansen Price sumpygump

Block or report user

Report or block sumpygump

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
sumpygump / codereview
Created Jun 20, 2012
codereview bash script
View codereview
if [ -z "$1" -o -z "$2" ]; then
echo "usage: $0 <repository> <username>"
View git-info
# author: Duane Johnson <>
# contributor: Jansen Price <>
# date: 2008 Jun 12
# license: MIT
# Based on discussion at
function main() {



strpos(haystack, needle)
$leadingZero = sprintf("%02d", $string);
$currency = sprintf("%01.2f", $n);
error_reporting(E_ALL | E_STRICT); ini_set('display_errors', 1);


$(function() { ... }); // on pageload (jQuery)
sumpygump / istidy
Last active Dec 17, 2015
istidy fetches and parses a URL and provides a report on HTML errors and warnings.
View istidy
# istidy will use the tidy program to fetch and parse a URL and provide a
# report on errors and warnings found.
# Usage: istidy <URL>
# Example: istidy
# This script requires wget and tidy
# (apt-get install wget tidy)
View normal
message="Resuming Normal Mode"
width=`tput cols`
height=`tput lines`
tput clear
View gist:8661827
sumpygump /
Created Feb 20, 2014
symfony getting started

Symfony Standard Getting Started Guide


You must have composer and phing installed.

Create New Project

Create a new project by running the command

View Vagrantfile.phpdev55
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Version: 1.1.0
# Settings for this VM
MYSQL_ROOT_PW = "1111"
TIMEZONE = "America/Chicago"
sumpygump /
Created Mar 13, 2014
Script to update the cache and logs directory with correct permissions for a Symfony project. Adapted from
# This script will update the cache and logs dirs to be owned by apache user
rm -rfv app/cache/*
rm -rfv app/logs/*
APACHEUSER=`ps aux | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data' | grep -v root | head -1 | cut -d\ -f1`
echo Apache user is $APACHEUSER
sumpygump / git-notes.txt
Last active Aug 29, 2015
Some notes about git
View git-notes.txt
Amend commit (only can amend the latest commit)
git commit --amend -m "Message"
Note that this will add anything you have staged to the commit
Retrieving old versions of a file
git checkout 4b4a5c48 -- filename.txt
Reverting a commit
git revert 4b4a5c48
This will bring up an editor to edit the commit message
You can’t perform that action at this time.