Joined June 2011
·

jenkoian

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:

#!/bin/bash
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
  fi
done
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:

#!/bin/bash

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

if [ -z "$files" ]; then
    echo 'No files to check';
else
    phpcs $files
fi
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;">
Achievements
197 Karma
2,241 Total ProTip Views
Interests & Skills