Skip to content

Instantly share code, notes, and snippets.

View lukaswhite's full-sized avatar

Lukas White lukaswhite

View GitHub Profile
@lukaswhite
lukaswhite / elasticsearch-on-homestead.txt
Created August 3, 2014 08:58
Installing Elasticsearch on Laravel Homestead
# Install Java
sudo apt-get install openjdk-7-jre-headless -y
# Download & install the Public Signing Key
wget -qO - http://packages.elasticsearch.org/GPG-KEY-elasticsearch | sudo apt-key add -
# Add the following to /etc/apt/sources.list
deb http://packages.elasticsearch.org/elasticsearch/1.3/debian stable main
# Update Aptitude
@lukaswhite
lukaswhite / create-project.sh
Created March 2, 2014 18:33
A Bash Script for New projects
# CONFIGURATION
#MYSQL credentials
MYSQL_USER="root"
MYSQL_PASS=""
# The user Apache runs as - e.g. _www, www-data
APACHE_RUNAS="_www"
#Bitbucket credentials
@lukaswhite
lukaswhite / ClearBeanstalkdQueueCommand.php
Last active February 6, 2025 13:11
Clear a Beanstalkd Queue in Laravel
<?php
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
class ClearBeanstalkdQueueCommand extends Command {
/**
@lukaswhite
lukaswhite / Tipsum.php
Created January 23, 2014 20:07
T'Ipsum - a Yorkshire Lorum Ipsum alternative, inspired by http://tlipsum.appspot.com/ by @tonyblundell
/**
* T'ipsum, a dead simple class for generating Yorkshire t'ipsum.
*
* Based on http://tlipsum.appspot.com/ by @tonyblundell.
*/
class Tipsum {
/**
* The actual text
*/
@lukaswhite
lukaswhite / FoundationPresenter.php
Created December 13, 2013 09:52
Foundation-friendly pagination for Laravel 4
<?php namespace Lukaswhite\Pagination;
use Illuminate\Pagination\Paginator;
class FoundationPresenter {
/**
* The paginator instance being rendered.
*
* @var \Illuminate\Pagination\Paginator