Skip to content

Instantly share code, notes, and snippets.

View twhitney11's full-sized avatar

Tyler Whitney twhitney11

View GitHub Profile
@twhitney11
twhitney11 / keybase.md
Created November 22, 2014 08:18
keybase.md

Keybase proof

I hereby claim:

  • I am twhitney11 on github.
  • I am twhitney (https://keybase.io/twhitney) on keybase.
  • I have a public key whose fingerprint is FFD0 FD1D EB66 A63A BF84 6690 8964 FE96 C521 CA7E

To claim this, I am signing this object:

@twhitney11
twhitney11 / find-replace.php
Created September 29, 2012 05:14
Simple Recursive Find and Replace PHP CLI Script
<?php
/**
* Tyler Whitney
*
* PHP Command line script that recursively finds and replaces a string within files of directories.
*
* Useage: php script.php DIRECTORY SEARCH-STRING REPLACE-STRING (PARTIAL-FILE-NAME-MATCH)
*
* The script will replace all strings matching SEARCH-STRING within all files inside of DIRECTORY and its sub-directories with REPLACE-STRING.
* If you provide the option PARTIAL-FILE-NAME-MATCH it will only replace occurences in files that their filenames contain the partail search.
@twhitney11
twhitney11 / Solr.class.php
Created September 29, 2012 05:12
Simple Solr Interfacing PHP Class
<?php
//Solr interfacing class
class Solr
{
//For the constructor
public $solr_url;
public function __construct($url)
{
$this->solr_url = $url;