Skip to content

Instantly share code, notes, and snippets.

Avatar
🐯

Allen Eubank adeubank

🐯
View GitHub Profile
@adeubank
adeubank / ruby-vagrant-provision.sh
Last active Jan 15, 2016 — forked from johanneswuerbach/rails-vagrant-provision.sh
Provision a vagrant box with ruby stable (using rvm)
View ruby-vagrant-provision.sh
#!/usr/bin/env bash
sudo locale-gen en_US.UTF-8
sudo update-locale LANG=en_US.UTF-8
sudo update-locale LC_ALL=en_US.UTF-8
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
sudo apt-get install -y build-essential git curl libxslt1-dev libxml2-dev libssl-dev nodejs
ln -s /usr/bin/nodejs /usr/bin/node
@adeubank
adeubank / Vagrantfile
Created Dec 21, 2015
Vagrantfile for setting up Ubuntu 14.04 with Java 8 and Tomcat 8
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
@adeubank
adeubank / tomcat.conf
Created Dec 21, 2015
Tomcat Upstart service with open JDK 8 for Ubuntu 14.04
View tomcat.conf
description "Tomcat Server"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
respawn limit 10 5
setuid tomcat
setgid tomcat
@adeubank
adeubank / setup_php56_stack.sh
Last active Dec 21, 2015
Vagrant provision script for php, Apache, MySQL, phpMyAdmin, Laravel, and javascript helpers. Outputs nearly everything to /dev/null since "quiet" on most commands is still noisy. Raw
View setup_php56_stack.sh
#! /usr/bin/env bash
# Variables
APPENV=local
DBHOST=localhost
DBNAME=dbname
DBUSER=dbuser
DBPASSWD=test123
echo -e "\n--- Mkay, installing now... ---\n"
@adeubank
adeubank / setup_php70_stack.sh
Last active May 5, 2017 — forked from rrosiek/install_mysql.sh
Vagrant provision script for php, Apache, MySQL, phpMyAdmin, Laravel, and javascript helpers. Outputs nearly everything to /dev/null since "quiet" on most commands is still noisy.
View setup_php70_stack.sh
#! /usr/bin/env bash
# Variables
APPENV=local
DBHOST=localhost
DBNAME=dbname
DBUSER=dbuser
DBPASSWD=test123
echo -e "\n--- Mkay, installing now... ---\n"
@adeubank
adeubank / wordpress-wp-super-cache.conf
Created Aug 17, 2015
Wordpress Super Cache nginx configuration
View wordpress-wp-super-cache.conf
# WP Super Cache rules.
# Designed to be included from a 'wordpress-ms-...' configuration file.
set $cache_uri $request_uri;
# POST requests and urls with a query string should always go to PHP
if ($request_method = POST) {
set $cache_uri 'null cache';
}
@adeubank
adeubank / selenium
Last active Aug 1, 2019
Set up selenium on Ubuntu 16.04 as a service
View selenium
#!/bin/bash
case "${1:-''}" in
'start')
if test -f /tmp/selenium.pid
then
echo "Selenium is already running."
else
export DISPLAY=localhost:99.0
java -Dwebdriver.gecko.driver="/usr/lib/geckodriver/geckodriver" -jar /usr/lib/selenium/selenium-server-standalone.jar -port 4444 > /var/log/selenium/output.log 2> /var/log/selenium/error.log & echo $! > /tmp/selenium.pid
@adeubank
adeubank / Vagrantfile
Created Aug 7, 2015
Vagrantfile for Ubuntu 14.04 running a LEMP stack for wordpress.
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
@adeubank
adeubank / default
Last active Aug 29, 2015
Simple PHP Nginx configuration for Ubuntu 14.04 after default installations
View default
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /vagrant;
index index.php index.html index.htm;
location / {
try_files $uri $uri/ =404;
}
View Makefile
REPORTER = spec
all: jshint test
test:
@NODE_ENV=test ./node_modules/.bin/mocha --recursive --reporter $(REPORTER) --timeout 3000
jshint:
jshint lib examples test index.js