Skip to content

Instantly share code, notes, and snippets.

View ryross's full-sized avatar

Ryder Ross ryross

View GitHub Profile
@ryross
ryross / AddressHelper.php
Last active August 16, 2017 21:36 — forked from jonathonbyrdziak/AddressHelper.php
Parse Address :: This function is designed to parse a complete street address using PHP. If it can't figure out the parsing itself, then it sends the address to google to have google parse the street address.
<?php
namespace App\Parsers\AddressParser;
/**
* @author Jonathon Byrd
* @package Address Parsing
*
*
*/
class AddressHelper extends ObjectBase
@ryross
ryross / pichromium
Created April 11, 2016 05:37 — forked from syrgak/pichromium
Instructions to Install Chromium 45 on Raspbian Jessie
#!/bin/bash
wget http://ftp.us.debian.org/debian/pool/main/libg/libgcrypt11/libgcrypt11_1.5.0-5+deb7u4_armhf.deb
wget http://launchpadlibrarian.net/218525709/chromium-browser_45.0.2454.85-0ubuntu0.14.04.1.1097_armhf.deb
wget http://launchpadlibrarian.net/218525711/chromium-codecs-ffmpeg-extra_45.0.2454.85-0ubuntu0.14.04.1.1097_armhf.deb
sudo dpkg -i libgcrypt11_1.5.0-5+deb7u4_armhf.deb
sudo dpkg -i chromium-codecs-ffmpeg-extra_45.0.2454.85-0ubuntu0.14.04.1.1097_armhf.deb
sudo dpkg -i chromium-browser_45.0.2454.85-0ubuntu0.14.04.1.1097_armhf.deb
#!/bin/sh
#
# chkconfig: 35 99 99
# description: Script for starting phantomjs.
#
. /etc/rc.d/init.d/functions
USER="phantomjs"
@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 (){
<?php
interface Context {
public function execute($params);
}
@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
#!/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