Skip to content

Instantly share code, notes, and snippets.

# Remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# Split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
#!/bin/bash
# Prerequisites
# Install Xcode (https://itunes.apple.com/au/app/xcode/id497799835?mt=12)
# Get CLI Tools xcode-select --install
# Setup brew
# ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
@bmartel
bmartel / gist:a79e1969a910995c936e
Created February 10, 2015 03:14
sublime user prefs
{
"bold_folder_labels": true,
"caret_extra_width": 1,
"caret_style": "phase",
"detect_indentation": false,
"folder_exclude_patterns":
[
".svn",
".git",
".hg",
<?php
class ReverseArrayDot
{
protected $collection;
protected $output;
public function __construct($collection = [])
@bmartel
bmartel / ArrayHelper.php
Last active August 29, 2015 14:03
Wild card array key/value searching and regex replace in keys.
<?php
class ArrayHelper
{
/**
* Provides wild card search for array keys.
*
* @param string $search
* @param array $arr
* @param bool $keyValue
@bmartel
bmartel / nodejs.sh
Last active August 29, 2015 14:01
NodeJS bootstrap
#!/bin/bash
# ================================
# Get NodeJS/npm on linux/macOSX
# ================================
PWD=$(pwd)
PATH_LOCATION=/usr/local/bin
NODE_DIR="$PWD/nodejs"