Skip to content

Instantly share code, notes, and snippets.

Working from home

Matt Cavanagh Maelstromeous

Working from home
View GitHub Profile
Maelstromeous /
Created Jul 26, 2019
Simple AWS Terraform script
# Install terraform and run "terraform apply" to use this
provider "aws" {
region = "eu-west-2"
data "aws_availability_zones" "all" {}
variable "web_port" {
description = "The port that will serve HTTP requests"
View extend-upload.php
// This line needs to be called after initialize but before run
$app['upload'] = $app->extend(
function ($handler, $app) {
if ($app['request']->get('contenttype') && $app['request']->get('id')) {