Skip to content

Instantly share code, notes, and snippets.

View dingram's full-sized avatar

Dave Ingram dingram

View GitHub Profile
#!/usr/bin/env zsh
# ------------------------------------------------------------------------------
# Fish style live command coloring.
# ------------------------------------------------------------------------------
# Token types styles.
# See http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#SEC135
ZLE_RESERVED_WORD_STYLE='bold'
ZLE_ALIAS_STYLE='bold'
ZLE_BUILTIN_STYLE='bold'
#!/bin/bash
#
# git-svn-rebase-all
# by Dave Ingram <http://github.com/dingram/>
#
SHELL=${SHELL:-/bin/bash}
curbranch=$(git symbolic-ref HEAD 2>/dev/null)
if [ $? -eq 0 ]; then
curbranch=${curbranch##*/}
else
RewriteEngine On
RewriteRule ^index.php$ - [L]
RewriteRule .* index.php [L,QSA]
<?php
function echoRequest(ReqtRequest $request) {
$resp = new RestResponseOk(array(
'url' => $url,
'verb' => $verb,
'headers' => $headers,
'args' => $get_args,
'body' => $body,
), $request);
$resp->render();