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
phpunit --debug test.php | |
PHPUnit 3.5.13 by Sebastian Bergmann. | |
Starting test 'Cloner_Test::testFunctionThatClones'. | |
F | |
Time: 1 second, Memory: 6.50Mb | |
There was 1 failure: |
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
# 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.' |
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
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 |
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
# 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 |
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
# 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 |
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
for f in `ack-grep -l '\) {' .` ; do sed -i -e 's/\( *\)\(.*\)) {/\1\2)\n\1{/' $f ; done |
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
-- 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'); |
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
PERL_MM_USE_DEFAULT=1 cpan -i Some::Package::Or::Other | |
# If fails, try installing/upgrading CPAN and Test::Harness |
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
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 |
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
function tmux_create_or_reattach() { tmux has-session -t $1 && tmux attach -t $1 || tmux -u -L $1; }; tmux_create_or_reattach ben |
OlderNewer