This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Subversion Statistics BASH Script | |
# Version 0.4.3 | |
# anth*3 <[email protected]> | |
# | |
# 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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: # |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ 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> |