Skip to content

Instantly share code, notes, and snippets.

View emarref's full-sized avatar
Verified

Malcolm Fell emarref

Verified
View GitHub Profile
@emarref
emarref / gist:2992799
Last active October 6, 2015 12:18
Symfony Bash Shortcut for 1.x and 2.x
#!/usr/bin/env bash
# E.g. from your project directory, run
# sf cache:clear
# or
# sf cc to clear cache
# depending on whether or not you're in a 1.x or 2.x project
# or just
# sf
# to see all options
@emarref
emarref / gist:3132500
Created July 17, 2012 22:13
Default .editorconfig
root = true
[*]
end_of_line = LF
indent_style = space
indent_size = 4
@emarref
emarref / RandomCharacterSequenceGenerator.class.php
Created July 25, 2012 04:03
Random character sequence generator
<?php
/**
* Generate a random sequence of characters. Result is not guaranteed to contain one character of every option.
*
* <code>
* require_once 'RandomCharacterSequenceGenerator.class.php';
*
* $generator = new RandomCharacterSequenceGenerator(array('avoid_confusion' => false));
* echo $generator->execute();
@emarref
emarref / HttpDigestAuthentication.class.php
Created July 27, 2012 04:12
Class that handles HTTP Digest Authentication
<?php
class HttpDigestAuthentication
{
private $realm = 'Restricted area';
private $logins = array();
private $digestProperties = array();
### Keybase proof
I hereby claim:
* I am emarref on github.
* I am emarref (https://keybase.io/emarref) on keybase.
* I have a public key whose fingerprint is ED8B 3A15 CBDA 1CAB F053 BDD3 B6D0 EA22 17CA A38A
To claim this, I am signing this object:
@emarref
emarref / choconut.md
Last active August 29, 2015 14:06 — forked from pzurek/choconut.md

Ingredients:

  • Whittakers 72% Cocoa Dark Ghana Chocolate 250g
  • Condensed Milk ~800g (2 cans of Nestle Condensed Milk @ 395g)
  • Finely groud coconut 500g
  • Almonds ~150g - can be ground, sliced, or slivered - whatever floats your boat
  • Vanilla Extract 1 tsp.
  • Love

@emarref
emarref / Vagrantfile
Last active August 29, 2015 14:25
Simple Vagrantfile that you can drop in any dir and boot up an Ubuntu server with `vagrant up`.
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.network "private_network", ip: "192.168.33.10"
config.vm.synced_folder ".", "/var/www", type: "nfs"
config.vm.provider "virtualbox" do |vb|
vb.memory = "1024"
end
# Uncomment the following block to add provisioning run as root
@emarref
emarref / new-project.sh
Last active November 2, 2015 22:00
Create a new directory structure for new clients
#!/usr/bin/env bash
ROOT=~/Freelance
CLIENT_ROOT="$ROOT/Clients"
MANAGEMENT_DIR_NAME="Management"
PROJECTS_DIR_NAME="Projects"
DEVELOPMENT_DIR_NAME="Development"
SHARED_DIR_NAME="Shared"
CLIENT=$1
@emarref
emarref / id_rsa.pub
Created September 7, 2015 20:31
My public key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCxSRb97l7/zHziRakatVxAQc+RvjwmtmMTaEsakwmmXrv3sF8nOnpsgbm/LsrHDtPlycMzBz3wVLOLNhX3dXKyLkNfYom71k5agfK1qvGUYWi69OO+GsiSxDaJApLVfTcfEDF+paKEkPYfJqmbKcF6G6L77sTYeFyFIcPRxQWk+IkVQAa2PNT52twlaT78l6qux/Zf9kHSvNvQfQIMh2afg7d/hv7zHgdKEgFWXEJwACwIUMIROZAga+jm3nmGQrlS8EmccxYC+pZq8GAgNcd6edGD916aWD3CwWA3KuQBg/whgrDAEAZBDnxo/irFOQ4g3cKSaVFwbiCBih2SI9ySaGKZrCPuBOaiaKcmmLvzwUrwcanmBwsn8RSRJybOH3mxRfFAuyZ/2/TqY+Yf08GjUEHY25M1krYKkGEvFRJt6bWoXGN+ePp2AQhJSTa2JE/1yYoKKltjtMGvBEaV0DS1SbieaVmTXMbRwl7fqrHgYr6EcRSb5+bOONOCl5Ipn9fQWlQd3T7AEUHvEhnCLxR85a1RBX/y3KW1wOo5pqSCHqn/wzKfHFgO7VrDcoSokJa/hMT5rq3EtQ52ZxTJfjHgfEKVqIRbg4sE0D6qlL1GzudWG7TKqzms1l+lBNHIigZGTjjyXw232ZQNkMckYSCNOSBGz8GMOe4rYbDvqIjyFw== emarref@gmail.com
@emarref
emarref / planterbox.stl
Created November 9, 2015 03:10
Planter box
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.