Skip to content

Instantly share code, notes, and snippets.

🤘
clickity clack

Joshua Priddle itspriddle

🤘
clickity clack
Block or report user

Report or block itspriddle

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
@itspriddle
itspriddle / keybase.md
Created Aug 28, 2019
Keybase proof for itspriddle (Regenerated 2019-08-28 1:00:00 -4:00)
View keybase.md

Keybase proof

I hereby claim:

  • I am itspriddle on github.
  • I am itspriddle (https://keybase.io/itspriddle) on keybase.
  • I have a public key whose fingerprint is A777 4AFA 7584 8144 6211 272F 9855 8247 A164 48FA

To claim this, I am signing this object:

View gist:93422
#!/usr/bin/perl -w
#
# This script was developed by Robin Barker (Robin.Barker@npl.co.uk),
# from Larry Wall's original script eg/rename from the perl source.
#
# This script is free software; you can redistribute it and/or modify it
# under the same terms as Perl itself.
#
# Larry(?)'s RCS header:
# RCSfile: rename,v Revision: 4.1 Date: 92/08/07 17:20:30
@itspriddle
itspriddle / json.php
Created Feb 26, 2011
Pure PHP json library
View json.php
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
/**
* Converts to and from JSON format.
*
* JSON (JavaScript Object Notation) is a lightweight data-interchange
* format. It is easy for humans to read and write. It is easy for machines
* to parse and generate. It is based on a subset of the JavaScript
* Programming Language, Standard ECMA-262 3rd Edition - December 1999.
View creative_and_technical_services_agreement.markdown

Creative and Technical Services Agreement

This CREATIVE AND TECHNICAL SERVICES AGREEMENT (“Agreement”) is an agreement between Joshua Priddle, (“Developer”) and the party set forth in the Project Estimate (“Customer” or “you” or “your”) incorporated herein by this reference and applies to the purchase of all services ordered by Customer (collectively, the “Services”). The parties understand, acknowledge and agree that this is an online agreement which is being entered into in conjunction with the Services.

@itspriddle
itspriddle / setup-git-bundler-merge-driver
Last active Aug 13, 2018
This script makes git automatically run `bundle install` when a merge conflict with Gemfile.lock occurs. Run it once per project to setup `.gitattributes` and `.gitconfig`
View setup-git-bundler-merge-driver
#!/usr/bin/env bash
# Usage: setup-git-bundler-merge-driver
# Help: Configures git to use a custom merge driver to resolve Gemfile.lock
# merge conflicts.
if [ ! -f Gemfile ]; then
echo 'No `Gemfile` found! Aborting'
exit 1
fi
@itspriddle
itspriddle / phpunit.rb
Created Apr 17, 2013
Install PHPUnit on OS X Mountain Lion using Homebrew
View phpunit.rb
require 'formula'
class Phpunit < Formula
homepage 'http://www.phpunit.de/manual/current/en/index.html'
url 'http://pear.phpunit.de/get/phpunit.phar'
sha1 '7aaa26086ddf7cd0c517d7f52b74a53a7a1d7e29'
version 'HEAD'
def install
bin.install "phpunit.phar" => "phpunit"
View Generate Password.rb
#!/usr/bin/env ruby
# Generates a random password using keepass-password-generator
# Imported from https://github.com/johnbintz/keepass-password-generator
require 'securerandom'
require 'set'
View api.rb
require 'sinatra_authentication'
class Api < Sinatra::Base
register ::MyApp::Sinatra::Authentication
get '/api/ping' do
render "Authentication successful"
end
end
@itspriddle
itspriddle / irbrc.rb
Created Jan 14, 2014
Fixes an issue with AwesomePrint and ActiveRecord 3 abstract models (https://github.com/michaeldv/awesome_print/pull/147). Drop it in `~/.irbrc`
View irbrc.rb
# Work around for https://github.com/michaeldv/awesome_print/pull/147
AwesomePrint::ActiveRecord.send :include, Module.new {
def awesome_active_record_class_with_fix(object)
return awesome_class(object) if object.respond_to?(:abstract_class?) && object.abstract_class?
super(object)
end
def self.included(base)
base.class_eval do
alias_method :awesome_active_record_class_without_fix, :awesome_active_record_class
You can’t perform that action at this time.