Skip to content

Instantly share code, notes, and snippets.

View austenc's full-sized avatar
:shipit:
Ship it!

Austen Cameron austenc

:shipit:
Ship it!
View GitHub Profile
@austenc
austenc / Vagrantfile-laravel
Last active September 26, 2019 04:56
Vagrantfile for laravel / php app
# Copy and rename this file as just 'Vagrantfile'
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
@austenc
austenc / provision-laravel
Last active August 29, 2015 14:00
provisions Vagrantfile-laravel to have a nice usable setup
#!/usr/bin/env bash
## RENAME THIS FILE TO provision.sh TO USE WITH OTHER VAGRANTFILES
# update all packages
apt-get update
# enable add-apt-repository command
sudo apt-get install -y python-software-properties
@austenc
austenc / composer.json-laravel
Created April 28, 2014 19:40
composer.json including patricktalmadge/bootstrapper, laravelbook/ardent, zizaco/confide and zizaco/entrust
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"laravel/framework": "4.1.*",
"zizaco/confide": "dev-master",
"zizaco/entrust": "dev-master",
"laravelbook/ardent": "dev-master",
@austenc
austenc / Gruntfile.js
Last active August 29, 2015 14:01
Gruntfile + Vagrant + PHPunit testing using grunt-githooks and grunt-phpunit
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
githooks: {
all: {
'pre-commit': {
command: 'vagrant ssh',
taskNames: '--command',
args: '"cd /vagrant; grunt phpunit"' // add other tasks here
@austenc
austenc / script.sh
Created September 23, 2014 23:10
Linode stackscript - LEMP box
#!/bin/bash
# This block defines the variables the user of the script needs to input
# when deploying using this script.
#
#<UDF name="HOSTNAME" label="The hostname for the new Linode">
#<UDF name="FQDN" label="The new Linode's Fully Qualified Domain Name">
#<UDF name="USER" label="Main (non-root) username">
#<UDF name="USER_PASS" label="Main (non-root) user's password">
#<UDF name="INSTALL_MYSQL" label="Install MySQL?" oneOf="Yes,No">
#<UDF name="MYSQL_ROOT_PW" label="MySQL root user password">
@austenc
austenc / Example Gruntfile
Last active August 1, 2018 14:09
Example gruntfile with phantomjs / codeception integration, and asset building
'use strict';
var root = "~/Code/toolbox";
var bench = "~/Code/toolbox/workbench/hdmaster/nucleus";
var ssh = 'ssh vagrant@127.0.0.1 -p 2222 -t';
module.exports = function(grunt) {
grunt.initConfig({
[
{ "keys": ["j", "j"], "command": "exit_insert_mode",
"context":
[
{ "key": "setting.command_mode", "operand": false },
{ "key": "setting.is_widget", "operand": false }
]
},
{"keys": ["ctrl+alt+p"], "command": "prompt_select_workspace"},
{"keys": ["ctrl+shift+r"], "command": "goto_symbol_in_project"}
@austenc
austenc / .bash_profile
Last active December 13, 2018 04:18
Mac OS based .bash_profile with powerline stuff included
# Powerline
# https://github.com/powerline/powerline
powerline-daemon -q
POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1
source /usr/local/lib/python3.7/site-packages/powerline/bindings/bash/powerline.sh
# Add the global composer install directory to our PATH
export PATH=${PATH}:~/.composer/vendor/bin
@austenc
austenc / .vimrc
Last active December 6, 2018 00:47
MacOS .vimrc file
set nocompatible " Disable vi-compatibility
set t_Co=256
colorscheme xoria256
set guifont=menlo\ for\ powerline:h16
set guioptions-=T " Removes top toolbar
set guioptions-=r " Removes right hand scroll bar
set go-=L " Removes left hand scroll bar
set linespace=15
@austenc
austenc / sublime-packages
Last active April 24, 2018 21:36
Sublime Packages I use
AdvancedNewFile
Alignment
Angular2 HTML Syntax
Auto Semi-Colon
AutoPEP8
Laravel Blade Spacer
BracketHighlighter
Git Gutter
Color Highlighter
ColorPicker