Install latest stable XQuartz.
Forward your X11 connection when SSHing to the box:
ssh -X remoteuser@remotehost
Alternatively you can configure this, globally or for an individual host, in your .ssh/config
with the ForwardX11
directive.
Install latest stable XQuartz.
Forward your X11 connection when SSHing to the box:
ssh -X remoteuser@remotehost
Alternatively you can configure this, globally or for an individual host, in your .ssh/config
with the ForwardX11
directive.
function tmux_create_or_reattach() { tmux has-session -t $1 && tmux attach -t $1 || tmux -u -L $1; }; tmux_create_or_reattach ben |
gawk -F "\t" '{ split($1, times, "/") ; split(times[1], start_time, /[T:-]/); split(times[2], end_time, /[T:-]/); h = (mktime(end_time[1] " " end_time[2] " " end_time[3] " " end_time[4] " " end_time[5] " 00") - mktime(start_time[1] " " start_time[2] " " start_time[3] " " start_time[4] " " start_time[5] " 00"))/(60*60); t[$3] = t[$3] + h } END { for (tag in t) { printf "%-50s\t%.2f\n", tag, t[tag] } }' time\ log.txt |
PERL_MM_USE_DEFAULT=1 cpan -i Some::Package::Or::Other | |
# If fails, try installing/upgrading CPAN and Test::Harness |
-- Filter rows in $inputFile by UUIDs present in $filterByFile, then sort by score | |
input = LOAD '$inputFile' USING PigStorage('\t') AS (uuid:chararray,score:double); | |
filter_by = LOAD '$filterByFile' USING PigStorage('\t') AS (uuid:chararray); | |
filtered = JOIN input BY uuid, filter_by by uuid; | |
wanted_fields = FOREACH filtered GENERATE $0 as uuid:chararray, $1 as score:double; | |
ordered = ORDER wanted_fields BY score DESC; | |
STORE ordered INTO '$outputDir' USING PigStorage('\t'); |
for f in `ack-grep -l '\) {' .` ; do sed -i -e 's/\( *\)\(.*\)) {/\1\2)\n\1{/' $f ; done |
# Install Homebrew | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)" | |
# Brew some packages | |
brew install gawk | |
brew install gnupg | |
brew install bash-completion | |
brew install git | |
brew install yuicompressor | |
brew install tmux |
# Some useful things | |
apt-get install fortune ack-grep | |
# Update time hourly - useful for VMs that may be paused | |
ln -s /usr/sbin/ntpdate-debian /etc/cron.hourly/ | |
# Latest weechat (0.3.6-dev) | |
add-apt-repository ppa:nesthib/weechat && apt-get update && apt-get dist-upgrade && apt-get install weechat | |
# Git config |
src/main/java/com/acme/uiAutomation/webServices/Driver.java => abstraction for selenium2/webdriver | |
src/main/java/com/acme/uiAutomation/webServices/DriverFactory.java => factory for selenium2/webdriver | |
src/main/java/com/acme/uiAutomation/webServices/component/HomePage.java => Page Object for homepage | |
src/main/java/com/acme/uiAutomation/webServices/component/LoginDialog.java => Page Component for login dialog | |
src/test/unit/java/com/acme/uiAutomation/webServices/DriverFactoryTestSuite.java => unit tests for driver factory | |
src/test/performance/java/com/acme/webServices/TestSuite.java => performance tests for homepage | |
src/test/functional/java/com/acme/webServices/HomePageTestSuite.java => functional tests for homepage |
# In this case, track HTTP on eth0, port 4444 | |
tshark -i eth0 -d tcp.port==4444,http -R 'http' -Tpdml -V -S -l "port 4444" | grep '"http.' |