Skip to content

Instantly share code, notes, and snippets.

@mathewpeterson
mathewpeterson / svn_log_files.sh
Created July 15, 2011 19:21
Get a list of list of files commited to svn's trunk branch by a particular author from a particular revision.
#!/bin/bash
SVN_USERNAME=$1
SVN_REVISION=$2
svn log -v -r $SVN_REVISION:HEAD | awk "/^r[0-9]+ / {user=\$3} /trunk/ {if (user==\"$SVN_USERNAME\") {print \$2}}" | sort | uniq
@mathewpeterson
mathewpeterson / files_changed_in_svn.sh
Created June 9, 2011 21:00
Get the files that were changed in trunk in the svn repo since revision for user
#!/bin/bash
SVN_USERNAME=$1
SVN_REVISION=$2
svn log -v -r $SVN_REVISION:HEAD | awk "/^r[0-9]+ / {user=\$3} /trunk/ {if (user==\"$SVN_USERNAME\") {print \$2}}" | sort | uniq
@mathewpeterson
mathewpeterson / .screenrc
Created April 20, 2011 14:34
Pretty neat .screenrc file
hardstatus on
hardstatus alwayslastline
hardstatus string "%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..G} %H %{..Y} %m/%d %C%a "
#terminfo and termcap for nice 256 color terminal
# allow bold colors - necessary for some reason
attrcolor b ".I"
# tell screen how to set colors. AB = background, AF=foreground
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
# erase background with current bg color
defbce "on"
@mathewpeterson
mathewpeterson / checkout_files_by_ext_to_branch.sh
Created January 6, 2011 21:48
this will checkout every file matching an extension from another branch into the currently checked-out branch
for file in `find . -type f | grep -i "\.EXT"; do git checkout OTHERBRANCH "${file}"; done