Skip to content

Instantly share code, notes, and snippets.

View AndreasStokholm's full-sized avatar

Andreas Stokholm AndreasStokholm

View GitHub Profile
@AndreasStokholm
AndreasStokholm / UIS.sh
Last active December 1, 2017 07:51 — forked from anonymous/UIS.sh
#!/bin/bash
# Update all repos
apt-get update
# Install some default software we need to install the rest
apt-get install -y apt-transport-https
# Add all repos I want to install
# Krita
<?php
public function Preview(Request $request)
{
$inputs = $request->all();
$invoiceItems = array_map(function ($quantity, $description, $price) {
return [
'quantity' => $quantity,
'description' => $description,
@AndreasStokholm
AndreasStokholm / README.md
Created September 24, 2012 21:00 — forked from aronwoost/README.md
Auto-deploy with php and github on an Ubuntu Amazon EC2 box

##Auto-deploy with php and github on an Ubuntu Amazon EC2 box

Fork from other gist Build auto-deploy with php and git(hub) on an EC2 AMAZON AMI instance - Covers a basic Ubuntu isntall

When ever it says www-data below, it's the user Apache runs under. So if your apache user is called something else, change it to that.

##Install git

sudo aptitude install git-core