Skip to content

Instantly share code, notes, and snippets.

@douggrubba
douggrubba / install.sh
Last active August 29, 2015 13:57 — forked from fideloper/install.sh
Super stupid, simple LAMP server. Just for goofy stuff, not production.
#!/usr/bin/env bash
echo ">>> Starting Install Script"
# Update
sudo apt-get update
# Install MySQL without prompt
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root'
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root'
@douggrubba
douggrubba / gist:3980056
Created October 30, 2012 13:02 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@douggrubba
douggrubba / gist:3140487
Created July 19, 2012 03:03 — forked from rolo/gist:1481128
Install Postgres 9.1, PostGIS and create PostGIS template on Ubuntu 11.10 Oneiric Ocelot
#!/bin/bash
#
# Install Postgres 9.1, PostGIS and create PostGIS template on a clean Ubuntu 11.10 Oneiric Ocelot box
# http://wildfish.com
# add the ubuntu gis ppa
sudo apt-get -y install python-software-properties
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
// html purifier
require_once $this->fcpath.$this->apppath.'libraries/htmlpurifier/library/HTMLPurifier.auto.php';
$this->ci->htmlpurifier = new HTMLPurifier();
$config = HTMLPurifier_Config::createDefault();
$this->html = $this->ci->htmlpurifier->purify($this->html, $config);