This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# "I did [mean that]" | |
# Re-run the suggested git command | |
# Intended to be run as 'idid !!' | |
## | |
function idid() { | |
declare last='' | |
while [[ $# > 0 ]]; do | |
last="$last $1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script will run every script it finds in pre-receive.d | |
# ...passing along STDIN | |
# This can accompany https://github.com/box/bart/wiki/Git-Hooks | |
HOOKNAME=$(basename $0) | |
if [ -d "$GIT_DIR/hooks" ]; then | |
HOOKDIR="${GIT_DIR}/hooks/${HOOKNAME}.d" | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Red if last command failed | |
function __last_cmd_code_ps1() { | |
local red='\033[00;31m' # red | |
if [ $1 -ne 0 ]; then | |
echo -e "${red}*!!**${1}**!!*${red}" | |
return | |
fi | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function resetToMaster() | |
{ | |
$command = new \Bart\Shell\Command('git reset --hard %s/%s', 'origin', 'master'); | |
try { | |
$command->run(); | |
} | |
catch (\Bart\Shell\CommandException $e) { | |
echo "Problem resetting to master {$e->getMessage()}"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# Complete SSH with known hosts or configured hosts | |
## | |
_complete_ssh_hosts () | |
{ | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
comp_ssh_hosts=$(if [ -f ~/.ssh/known_hosts ]; then | |
cat ~/.ssh/known_hosts | \ | |
cut -f 1 -d ' ' | \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version='1.0' encoding='UTF-8'?> | |
<project> | |
<actions/> | |
<description>Run php quality metrics on the code base.
 | |

 | |
<div style="float: left">
 | |
<div style="
 | |
text-align: right;
 | |
margin-right: 3em;
 | |
font-size: 4em;
 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bvanevery@bvanevery-2011-mb 2012-05-03 10:14:30 /usr/local (master)] | |
[591]$ brew rm -f libvorbis | |
Uninstalling libvorbis... | |
[bvanevery@bvanevery-2011-mb 2012-05-03 10:14:40 /usr/local (master)] | |
[592]$ brew install -v transcode | |
==> Installing transcode dependency: libvorbis | |
==> Downloading http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.2.tar.bz2 | |
Already downloaded: /Users/bvanevery/Library/Caches/Homebrew/libvorbis-1.3.2.tar.bz2 | |
/usr/bin/tar xf /Users/bvanevery/Library/Caches/Homebrew/libvorbis-1.3.2.tar.bz2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==> Downloading http://download.berlios.de/tcforge/transcode-1.1.5.tar.bz2 | |
Already downloaded: /Users/bvanevery/Library/Caches/Homebrew/transcode-1.1.5.tar.bz2 | |
/usr/bin/tar xf /Users/bvanevery/Library/Caches/Homebrew/transcode-1.1.5.tar.bz2 | |
==> Patching | |
/usr/bin/patch -f -p1 -i 000-homebrew.diff | |
patching file export/export_ffmpeg.c | |
patching file import/decode_lavc.c | |
patching file import/probe_ffmpeg.c | |
==> ./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/transcode/1.1.5 --enable-a52 --enable-faac --enable-imagemagick --enable-libdv --enable-ogg --enable-libquicktime --enable-theora --enable-vorbis --enable-libxml2 --enable-lzo --enable-x264 --enable-xvid --enable-sdl --without-x --build=x86_64-apple-darwin10.0.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Formula: brew install -v transcode | |
[579]$ brew --config | |
HOMEBREW_VERSION: 0.9 | |
HEAD: 5bf4744d97a26fd60672555ebdba3d6764ed3918 | |
HOMEBREW_PREFIX: /usr/local | |
HOMEBREW_CELLAR: /usr/local/Cellar | |
CPU: 8-core 64-bit sandybridge | |
OS X: 10.6.8 | |
Kernel Architecture: x86_64 |
NewerOlder