Joined June 2011


Box UK
Box UK
Cwmbran/Cardiff, South Wales

Posted to WTF did I do?! over 1 year ago

Very nice, I made a small change to weed out non git directories:

for D in $(find . -maxdepth 1 -type d); do
  if [ -d "$D/.git" ]; then
    git --git-dir=./"$D"/.git log --author="$1" --pretty=format:"$D : %an - %ad -> %s" -    -date=iso --all | grep $2
Posted to How to use the new Github over 1 year ago

Great tip! I rotated my monitor 90° thinking it was a problem with my setup. This makes a lot more sense.

Posted to Run Code Sniffer on modified files over 1 year ago

Great tip!

I found if no files had changed it would just run phpcs for the entire project, so use the following:


files=$(git ls-files -om --exclude-standard)

if [ -z "$files" ]; then
    echo 'No files to check';
    phpcs $files
Posted to One line browser notepad over 1 year ago

Really cool, I liked @fvsch version, I just added a title so the text on the tab makes a bit more sense

data:text/html, <title>Text Editor</title><body contenteditable style="font-size:2rem;line-height:1.4;max-width:60rem;margin:0 auto;padding:4rem;">
197 Karma
1,732 Total ProTip Views
Interests & Skills