Skip to content

Instantly share code, notes, and snippets.

View glenntnorton's full-sized avatar

Glenn T Norton glenntnorton

View GitHub Profile
@lorenzoaiello
lorenzoaiello / xml2array
Created December 30, 2013 22:31
php xml2array
<?php
function xml2array($contents, $get_attributes=1, $priority = 'tag') {
if(!$contents) return array();
if(!function_exists('xml_parser_create')) {
//print "'xml_parser_create()' function not found!";
return array();
}
@eyecatchup
eyecatchup / mkgit-centos6.sh
Created June 26, 2015 08:08
Bash script to install the latest Git version on CentOS 6.x.
#!/usr/bin/env bash
# Install the latest version of git on CentOS 6.x
# Install Required Packages
sudo yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
sudo yum install gcc perl-ExtUtils-MakeMaker
# Uninstall old Git RPM
sudo yum remove git