Skip to content

Instantly share code, notes, and snippets.

View ciarand's full-sized avatar

Ciaran Downey ciarand

View GitHub Profile
@ciarand
ciarand / Launch Center Pro Shortcuts.txt
Last active December 15, 2015 14:29
Some of the shortcuts I use in Launch Center Pro
Launch Center Pro URLs
----------------------
Post to App.net (via *Drafts*)
------------------------------
drafts://x-callback-url/create?text=[prompt]&action=Post%20to%20App.net&x-success=launchpro:
Search on Wikipedia (via *Chrome*)
----------------------------------
@ciarand
ciarand / ciarand.zsh-theme
Created April 14, 2013 04:21
My custom ZSH theme
# Theme components and ideas shamelessly stolen from:
# [Agnoster](https://github.com/robbyrussell/oh-my-zsh/blob/master/themes/agnoster.zsh-theme) by @agnoster
# [Kardan](https://github.com/robbyrussell/oh-my-zsh/blob/master/themes/kardan.zsh-theme) by @kardan
# [Junkfood](https://github.com/robbyrussell/oh-my-zsh/blob/master/themes/junkfood.zsh-theme) by Tyler Cipriani
# Path settings
###############
# Set the user and host segments
prompt_host() {
@ciarand
ciarand / _colors.scss
Created April 15, 2013 21:37
A listing of commonly used SCSS colors
/*========================================
= Solarized Colors =
========================================*/
$solarized-base03: #002B36;
$solarized-base02: #073642;
$solarized-base01: #586E75;
$solarized-base00: #657B83;
$solarized-base0: #839496;
$solarized-base1: #93A1A1;
<?php
$table = $this->getHelperSet()->get('table');
$table
->setHeaders(
array(
'',
'Absolute',
'Percent',
)
)
@ciarand
ciarand / Preferences.sublime-settings
Created July 25, 2013 23:06
Preferences.sublime-settings
{
// Thou shalt work with a real color scheme
"color_scheme": "Packages/Solarized Color Scheme/Solarized (light).tmTheme",
// But use classy tabs
"soda_classic_tabs": true,
// And the latest Soda theme
"theme": "Soda Light 3.sublime-theme",
// And thy font face shall be a robot
"font_face": "Droid Sans Mono",
@ciarand
ciarand / make-it-work.sh
Last active December 23, 2015 02:09
Making R.A.T.7 work in Linux Mint
sudo cat rat7.xorg.conf >> /etc/X11/xorg.conf
sudo service mdm stop
sudo service mdm start
@ciarand
ciarand / build.php
Created October 21, 2013 17:22
Minimal PHP build system example using lambdas
<?php
// Build system (minimal)
$builder = function (array $targets) {
foreach ($targets as $target) {
$target();
}
};
@ciarand
ciarand / resources.md
Last active December 26, 2015 09:49
A list of some of the resources we talked about on 10/24/13 at the OCPHP open discussion.
  • [Sylius][1], eCommerce library built on Symfony components
  • [PuPHPet][2], Vagrant config builder
  • [PHPStorm][3]
  • [Silex][4], PHP microframework built on Symfony components
  • [Behat][5], an "human friendly" testing language
  • [Mink][6], a web driver controller
  • [Apigility][7], an API creator by Zend
  • [PHPSpec][8], a BDD workflow tool
  • [Composer][10], a dependency management tool
  • [Vagrant][11], a virtualization management tool
@ciarand
ciarand / README.md
Created January 24, 2014 04:43
Making xrandr modifications permanent with lightdm

Overview

xrandr is the easiest way to make a multiple display configuration work in Linux. Lightdm is my current display manager. This file explains how to make lightdm run an arbritrary script (in this case an xrandr script) on startup.

Here's the command we need:

@ciarand
ciarand / index.php
Last active August 29, 2015 13:56
Export / import PHP request details for reproducible debugging
<?php // index.php
// bulletproof debug mode
define("DEBUG_MODE", rand(1, 2) === 1);
if (isset($_GET["trigger"]) && DEBUG_MODE) {
file_put_contents("request.dat", serialize(get_defined_vars()));
}
// go through normal stuff, start the app, etc.