Skip to content

Instantly share code, notes, and snippets.

View anth-3's full-sized avatar

Anthony T. Holdener III anth-3

  • Ellisville, MO
View GitHub Profile
@anth-3
anth-3 / test_array_2_nest.php
Created March 29, 2017 20:10
One-Dimensional Array to Nested Multi-Dimensional Array
<?php
$array = array(1, 2, 3);
var_dump($array);
function array2NestedArray($array)
{
if (is_array($array) && count($array) > 1) {
return (array(array_shift(array_values($array)) => array2NestedArray(array_slice($array, 1))));
} else {
@anth-3
anth-3 / run_microservices.sh
Last active September 22, 2016 18:21
Bash/AppleScript to automatically start multiple micro services on Mac OSX using iTerm2
#!/bin/bash
# The local ports the micro services will run on
PORT_EMAIL=8080
PORT_ORDERS=8081
PORT_INVENTORY=8082
PORT_PDF=8083
# Main src directory
DIR_SRC="$HOME/Source/PHP/Projects/"
#!/bin/sh
# Subversion Statistics BASH Script
# Version 0.4.3
# anth*3 <anthony3@holdener.com>
#
# Copyright (c) 2014 anth*3.
#
# This tool gathers the number of lines added and removed from svn for a given
# target range and will output the number of adds, removes, and total altered
# lines. It will ignore empty (whitespace) lines when doing its parsing.
#!/bin/sh
################################################################################
# OSX Hacks: Yosemite Edition #
# #
# This script is taken mainly from osx-for-hackers.sh by Brandon Brown, while #
# adding my own options, and not using those that I did not find necessary. #
# #
# Version: 2 July 2015 rev 2 #
# #
# References: #
@anth-3
anth-3 / passThruProxy.cs
Last active April 24, 2019 11:18
Defines a simple pass-through proxy interface for C#.NET (IIS) Server applications and web sites.
<%@ WebHandler Language="C#" Class="PassThruProxy" Debug="true" %>
using System;
using System.Diagnostics;
using System.IO;
using System.Text;
using System.Web;
/**
* <summary><c>PassThruProxy</c> is a simple pass-through proxy interface for C#.NET (IIS Servers).</summary>