Based on the timeless TextMate theme.
Foreground: #FEFFD3
Background: #141414
<?php | |
/** | |
* Convert a comma separated file into an associated array. | |
* The first row should contain the array keys. | |
* | |
* Example: | |
* | |
* @param string $filename Path to the CSV file | |
* @param string $delimiter The separator used in the file | |
* @return array |
#!/usr/bin/env bash | |
set -e | |
# Dreamhost Mosh Install Script | |
# Jay Williams (https://gist.github.com/jaywilliams/c9ffab789b3f622abc932dd4cfaaeef5) | |
# Based on the gracious work of: | |
# Paul R Alexander (https://gist.github.com/palexander/2975305) | |
# Sami Samhuri https://gist.github.com/samsonjs/4076746 |
<?php | |
// https://gist.github.com/jaywilliams/bee2512f0f12d6791315d6939119e135 | |
// Forked: https://gist.github.com/magnetikonline/650e30e485c0f91f2f40 | |
// Usage: php -S localhost:8080 dumprequest.php | |
// Path to store all incoming requests | |
define('LOG_OUTPUT', __DIR__ . '/requests.log'); | |
$data = sprintf( | |
"[%s]\n%s %s %s\n\nHTTP HEADERS:\n", |
# Installing PHP 7.4.33 as CGI/FastCGI on a Pair Networks VPS | |
# By Jay Williams <http://myd3.com/> | |
# Based off of the Pair Users wiki page "Installing PHP5 as cgi" <http://www.pairusers.com/?How%20to%20install%20PHP5> | |
# Note: Replace "USERNAME" with your actual server username | |
# Make src directory in home | |
mkdir ~/src | |
# Download, configure, and compile OpenSSL |
<?php | |
/** | |
* Convert a QuickBooks QBXML Report to HTML/CSV File | |
* | |
* I created this little script to help me read through the raw XML responses | |
* from QuickBooks. I originally built it to export to a CSV file, but found | |
* that a simple HTML table was better suited for my usage. However, I've | |
* included the CSV code below for anyone who may need that functionality. | |
* |
<?php | |
/** | |
* Remove any non-ASCII characters and convert known non-ASCII characters | |
* to their ASCII equivalents, if possible. | |
* | |
* @param string $string | |
* @return string $string | |
* @author Jay Williams <myd3.com> | |
* @license MIT License | |
* @link http://gist.github.com/119517 |
set :repo_url, 'git@github.com:Design-Collective/some-repo.git' | |
set :application, 'the-app-name.com' | |
set :theme_name, 'sage' | |
# Branch options | |
# Prompts for the branch name (defaults to current branch) | |
#ask :branch, -> { `git rev-parse --abbrev-ref HEAD`.chomp } | |
# Hardcodes branch to always be master | |
# This could be overridden in a stage config file |
<?xml version="1.0" encoding="UTF-8"?> | |
<modification> | |
<id>Display products in sub-categories while browsing a parent category</id> | |
<version>1.0.0</version> | |
<vqmver>2.4.0</vqmver> | |
<author>Jay Williams - jay@myd3.com</author> | |
<file name="catalog/controller/product/category.php"> | |
<operation> | |
<search position="after"><![CDATA['filter_category_id' => $category_id,]]></search> | |
<add><![CDATA[ 'filter_sub_category' => true,]]></add> |
#!/bin/ksh | |
# | |
# searchd - Sphinxsearch network daemon | |
# | |
# Use --nodetach flag in combination with rc_bg to workaround searchd not | |
# listening on specified network ports | |
daemon="/usr/local/bin/searchd" | |
daemon_flags="--nodetach" | |
# daemon_user="www" |