Skip to content

Instantly share code, notes, and snippets.

View Maelstromeous's full-sized avatar
🏠
Working from home

Matt Cavanagh Maelstromeous

🏠
Working from home
View GitHub Profile
<?php
// This line needs to be called after initialize but before run
$app['upload'] = $app->extend(
'upload',
function ($handler, $app) {
if ($app['request']->get('contenttype') && $app['request']->get('id')) {
$handler->setPrefix("/{$app['request']->get('contenttype')}/{$app['request']->get('id')}/");
}
@Maelstromeous
Maelstromeous / main.tf
Created July 26, 2019 19:10
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"