Skip to content

Instantly share code, notes, and snippets.

View edwardgalligan's full-sized avatar

Ed Galligan edwardgalligan

View GitHub Profile
/**
* document.createElement re-implemented with a fluid interface
*
* Note: This will break lots of stuff. Don't use it.
* Note: This could be done by altering Element.prototype but that would break even more stuff
*
* Usage example:
* document.body.appendChild(
* document
* .createElement('a')
@edwardgalligan
edwardgalligan / CURL.php
Last active February 10, 2017 13:29
Simple as chips wrapper around PHP curl
<?php
/**
* Simple as chips wrapper around PHP curl
* @author git@lucideer.com
*/
namespace lucideer;
use Composer\CaBundle\CaBundle;
class CURL
@edwardgalligan
edwardgalligan / Vagrantfile
Created March 7, 2016 11:46
Logic to check for stuff pre-vagrantbox boot pre-provision
if !File.file?(File.dirname(__FILE__) + '/.vagrant/machines/default/virtualbox/id') &&
# INSERT EXTRA CONDITIONS HERE
puts 'Stuff needed for proper provisioning not found'
puts 'Please ensure the proper stuff is in the proper place'
exit 1
end
@edwardgalligan
edwardgalligan / generate-hosts.sh
Created February 2, 2016 16:26
Generates /etc/hosts entries from Apache vhosts
#!/bin/bash
##
# Usage:
# generaate-hosts.sh 127.0.0.1
#
# Generates:
# 127.0.0.1 vhost1.domain
# 127.0.0.1 vhost1.domainalias1
# etc.
@edwardgalligan
edwardgalligan / install-cacert-roots.sh
Last active August 29, 2015 14:22
Install CACert.org Root Certificates
#!/bin/bash
sudo mkdir -p /usr/local/share/ca-certificates
wget https://raw.githubusercontent.com/INOPIAE/CAcert/master/www/certs/root.crt https://raw.githubusercontent.com/INOPIAE/CAcert/master/www/certs/class3.crt
sudo mv root.crt /usr/local/share/ca-certificates/cacert-root.crt
sudo mv class3.crt /usr/local/share/ca-certificates/cacert-class3.crt
sudo update-ca-certificates

Keybase proof

I hereby claim:

  • I am lucideer on github.
  • I am lucideer (https://keybase.io/lucideer) on keybase.
  • I have a public key whose fingerprint is 531E 009E 19E8 FEFF F841 3DA1 F379 B28A 2343 155A

To claim this, I am signing this object: