Skip to content

Instantly share code, notes, and snippets.

🔧
Building, breaking, and fixing things.

Nick Parsons nparsons08

🔧
Building, breaking, and fixing things.
Block or report user

Report or block nparsons08

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
@nparsons08
nparsons08 / Bcrypt.php
Created Aug 7, 2012 — forked from marcoarment/Bcrypt.php
Simple PHP 5.3+ Bcrypt class and functions
View Bcrypt.php
<?php
/*
By Marco Arment <me@marco.org>.
This code is released in the public domain.
THERE IS ABSOLUTELY NO WARRANTY.
Usage example:
// In a registration or password-change form:
View gist:3499894
// build log data
$data = array(
account_id => 1,
array(
'type' => 'budget',
'message' => 'this is a test error message for budget'
),
array(
'type' => 'budget',
'message' => 'this is a test error message for budget'
View gist:3514220
?app_data={"ref":"ad","data":{"campaign_id":"1"}}
View gist:3647052
PS1='\w$ '
alias staging-mysql='pagoda -a aisle5-staging tunnel -c db1'
alias staging-redis='pagoda -a aisle5-staging tunnel -c cache1'
alias redis='redis-server'
alias redis-web='resque-web -p 8282 -F -r localhost:6379'
alias worker-start='php -f /Applications/MAMP/htdocs/aisle5/secure/workers/worker_start.php'
View gist:3693163
DB1_HOST="localhost"
export DB1_HOST
DB1_PORT="3306"
export DB1_PORT
DB1_NAME="bertha"
export DB1_NAME
DB1_USER="root"
View gist:3737721
?app_data={"ref":"ads","data":{"ad_campaign_id:"1234"}}
View gist:3739925
{
"ref": "ads",
"data": {
"ad_campaign_id": "1234"
}
}
View gist:3762153
web1:
name: app
document_root: /public
php_version: 5.3.10
php_max_execution_time: 60
php_file_uploads: "1"
php_post_max_size: "64M"
php_upload_max_filesize: "64"
php_date_timezone: America/Denver
shared_writable_dirs:
@nparsons08
nparsons08 / pre-commit
Created Sep 24, 2012
.git/hooks/pre-commit
View pre-commit
#!/bin/sh
#
#current directory
#
DIR="$( cd "$( dirname "$0" )" && pwd )"
#
#concatenate all javascript files and compress
#using yuicompressor. output as min.js.
@nparsons08
nparsons08 / pre-commit
Created Sep 24, 2012
JS and CSS compression using yuicompressor
View pre-commit
#!/bin/sh
#
#current directory
#
DIR=$PWD;
#
#concatenate all javascript files and compress
#using yuicompressor. output as min.js.
You can’t perform that action at this time.