Skip to content

Instantly share code, notes, and snippets.

View JasonMortonNZ's full-sized avatar

Jason Morton JasonMortonNZ

View GitHub Profile
@noeldiaz
noeldiaz / gist:0f9a2583a41579878764
Created July 18, 2014 15:56
Homestead 32-bit Version
## Making a 32 bit version of Homestead
# Clone the settler repository to a directory
git clone https://github.com/laravel/settler.git Ubuntu32
# In that directory edit the file called "Vagrantfile" to use a ubuntu 32 box instead of the 64 bit one
change this line:
config.vm.box = "ubuntu/trusty64"
@pyetras
pyetras / ng_if.js
Created January 10, 2014 18:47
ng-if for older (1.0.X) angularjs versions
angular.module('future', []).directive('ngIf', [function() {
return {
transclude: 'element',
priority: 600,
terminal: true,
restrict: 'A',
$$tlb: true,
compile: function ($element, $attr, $transclude) {
return function link($scope, $element, $attr, ctrl){
var block, childScope;
@ericcholis
ericcholis / openssl.pp
Created July 31, 2013 16:02
Puppet Open SSL Self Signed Certificate
$location = "Mountain View"
$country = "US"
$state = "CA"
$organization = "Google"
$unit = "Search"
$commonname = "www.example.com"
$keyname = "www_example_com"
$subject = "/C=${country}/ST=${state}/L=${location}/O=${organization}/OU=${unit}/CN=${commonname}"
$createcertificate = "openssl req -new -newkey rsa:2048 -x509 -days 365 -nodes -out ${keyname}.crt -keyout ${keyname}.key -subj \"${subject}\""
@bradland
bradland / gencert.sh
Created January 27, 2012 20:39
Generate a self-signed SSL cert
#!/bin/bash
# Bash shell script for generating self-signed certs. Run this in a folder, as it
# generates a few files. Large portions of this script were taken from the
# following artcile:
#
# http://usrportage.de/archives/919-Batch-generating-SSL-certificates.html
#
# Additional alterations by: Brad Landers
# Date: 2012-01-27