Skip to content

Instantly share code, notes, and snippets.

@Josiah
Josiah / gulpfile.js
Last active August 29, 2015 14:24
Faster browserify builds with watchify
'use strict';
const Gulp = require('gulp');
const VinylSourceStream = require('vinyl-source-stream');
const Browserify = require('browserify');
const Watchify = require('watchify');
const Babelify = require('babelify');
Gulp.task('default', [
'scripts-build',
@Josiah
Josiah / keybase.md
Created October 1, 2014 08:06
Keybase Verification

Keybase proof

I hereby claim:

  • I am josiah on github.
  • I am rapidapps (https://keybase.io/rapidapps) on keybase.
  • I have a public key whose fingerprint is DDDA EFF8 6BD7 89E1 D20E 3693 F767 58FF B2ED C766

To claim this, I am signing this object:

<?php
function died($error) {
// your error code can go here
echo "We are very sorry, but there were error(s) found with the form you submitted. ";
echo "These errors appear below.<br /><br />";
echo $error."<br /><br />";
echo "Please go back and fix these errors.<br /><br />";
die();
}
@Josiah
Josiah / preseed.cfg
Created July 16, 2013 02:41
Ubuntu 13.04 vagrant preseed
# Installation
# ============
# Installation of Ubuntu Server 13.04 “Raring Ringtail” is automated by
# 'preseeding' configuration options with the values expected for vagrant. The
# `ubuntu-server/raring64/preseed.cfg` file defines these options.
# Clock and Timezone
# ------------------
#!/bin/sh
# Credits to:
# - http://vstone.eu/reducing-vagrant-box-size/
# - https://github.com/mitchellh/vagrant/issues/343
aptitude -y purge ri
aptitude -y purge installation-report landscape-common wireless-tools wpasupplicant ubuntu-serverguide
aptitude -y purge python-dbus libnl1 python-smartpm python-twisted-core libiw30
aptitude -y purge python-twisted-bin libdbus-glib-1-2 python-pexpect python-pycurl python-serial python-gobject python-pam python-openssl libffi5
{% javascripts
"@AcmeBundle/Resources/views/foo/list.html.twig"
"@AcmeBundle/Resources/views/foo/list-item.html.twig"
"@AcmeBundle/Resources/js/export.js"
filters="twig_js, plovr"
%}<script src="{{ asset_url }}"></script>{% endjavascripts %}