Skip to content

Instantly share code, notes, and snippets.

View trq's full-sized avatar

Tony R Quilkey trq

  • thorpesystems
  • Sydney, Australia
View GitHub Profile
class php
{
$packages = [
"php5",
"php5-cli",
"php5-mysql",
"php5-dev",
"php5-mcrypt",
"php5-gd",
"php5-curl",
@trq
trq / gist:6742011
Created September 28, 2013 13:21
php lint git-hook
#!/bin/bash
git diff --cached --name-status --diff-filter=ACMR | while read STATUS FILE; do
if [[ "$FILE" =~ ^.+(php|inc)$ ]]; then
php -l "$FILE" 1> /dev/null
if [ $? -ne 0 ]; then
echo "Aborting commit due to files with syntax errors" >&2
exit 1
fi
fi
load_ssh_agent() {
local keys="$@"
local tmp=~/.ssh-agent
if [ -e $tmp ] ; then
. $tmp
fi
ssh-add -l > /dev/null
Host github.com
hostname github.com
IdentityFile ~/.ssh/key
@trq
trq / gist:7805165
Last active December 30, 2015 08:49
<?php
class CalDay
{
protected $date;
protected $week;
protected $id;
public function setId($id)
{
@trq
trq / gist:7814691
Last active December 30, 2015 10:18
<?php
class CalDay
{
protected $date;
protected $week;
protected $id;
public function setId($id)
{
sculpin:
raw:
- "bower_components/*"
sculpin_posts:
permalink: "blog/:filename/"
trq@oblivion[~/src/lr]+ bin/sculpin generate
[Twig_Error_Syntax]
Unexpected tag name "highlight" (expecting closing tag for the "block" tag defined near line 1) in "FileSource:FilesystemDataSource:/Users/trq/src/lr/source:bower_components/sa
ss-bootstrap/components.html" at line 816
@trq
trq / todo.md
Last active January 1, 2016 23:59
test todo:

todo

  • something
  • something else
I need:
sudo bindfs --owner=vagrant --group=www-data --perms=u=rwX:g=rwX:o=r /.vagrant-storage /var/www/app/storage
to end up being:
sudo bindfs -o nonempty --owner=vagrant --group=www-data --perms=u=rwX:g=rwX:o=r /.vagrant-storage /var/www/app/storage