Skip to content

Instantly share code, notes, and snippets.

View BRMatt's full-sized avatar

Matt Button BRMatt

View GitHub Profile
/**
Title: White Hacker News
URL: http://stylebot.me/styles/55
Author: http://stylebot.me/users/vinodpillai
**/
body {
background-color: fff;
}
@BRMatt
BRMatt / console
Created July 13, 2012 17:21
A faster vagrant console
#/bin/bash
# Make sure we're in the same folder as the vagrant file
SOURCE="${BASH_SOURCE[0]}"
DIR="$( dirname "$SOURCE" )"
while [ -h "$SOURCE" ]
do
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
ActiveSupport::Cache::Store.instrument = true
ActiveSupport::Notifications.subscribe do |name, start, finish, id, payload|
Rails.logger.debug(["notification:", name, start, finish, id, payload].join(" "))
end
# .profile for bash users.
# Executed on all machines because we do not permit the use of /bin/bash
# as a user's login shell. Note, however, on Linux PCs, /bin/sh is the
# same as /bin/bash.
case $cputype in
linux*)
SHELL=/bin/bash
export SHELL
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
matt@matt-laptop:~$ tree /usr/share/php/PHPUnit/
/usr/share/php/PHPUnit/
├── Autoload.php
├── Extensions
│   ├── Database
│   │   ├── AbstractTester.php
│   │   ├── Constraint
│   │   │   ├── DataSetIsEqual.php
│   │   │   └── TableIsEqual.php
│   │   ├── DataSet
body { background: #f1f8db !important; }
#Body {
margin: 15px 0 0 !important;
overflow: visible !important;
padding: 0 15px !important;
position: relative !important;
width: auto !important;
}
[LD] e.debug
../external/out.debug/lib/libpcre.a(pcre_tables.o):(.rodata+0x0): multiple definition of `_pcre_OP_lengths'
.objs.debug/cx_pcre_tables.o:(.rodata+0x0): first defined here
../external/out.debug/lib/libpcre.a(pcre_tables.o):(.rodata+0x70): multiple definition of `_pcre_utf8_table1'
.objs.debug/cx_pcre_tables.o:(.rodata+0x70): first defined here
../external/out.debug/lib/libpcre.a(pcre_tables.o):(.rodata+0x88): multiple definition of `_pcre_utf8_table1_size'
.objs.debug/cx_pcre_tables.o:(.rodata+0x88): first defined here
../external/out.debug/lib/libpcre.a(pcre_tables.o):(.rodata+0x8c): multiple definition of `_pcre_utf8_table2'
.objs.debug/cx_pcre_tables.o:(.rodata+0x8c): first defined here
../external/out.debug/lib/libpcre.a(pcre_tables.o):(.rodata+0xa4): multiple definition of `_pcre_utf8_table3'
@BRMatt
BRMatt / loop.sh
Created February 6, 2010 19:13
Useful script for automatically running unit tests in a loop
#!/bin/bash
# Simple script for looping unit test runs
# Relies on a phpunit.xml config being in the cwd
# Author: matthew@sigswitch.com
for(( ; ; )); do clear; echo -e "`phpunit`"; sleep 10; done
<?php
class page_Core
{
static $title = '';
static $heading = '';
static $stylesheets = array();
static $scripts = array();