Skip to content

Instantly share code, notes, and snippets.

View mmichaelis's full-sized avatar

Mark Michaelis mmichaelis

View GitHub Profile
@mmichaelis
mmichaelis / BusyWaitingExamples.java
Created November 1, 2011 21:37
Examples of JBehave Stories
@Then("I see the main page")
public void seeMainPage() {
selenium.waitForCondition("selenium.browserbot.getCurrentWindow().someJavaScript",10000);
[...]
)
@Then("I see the main page")
public void seeMainPage() {
(new WebDriverWait(webDriver, 1000))
.until(new ExpectedCondition<Object>() {
@mmichaelis
mmichaelis / settitle.sh
Created October 24, 2011 08:30
Function to change Linux Terminal Tab Title (e. g. for gnome terminal)
#!/bin/bash
function title() {
local s="${1}"
echo -ne "\033]0;${s}\007"
}
title "${1}"
@mmichaelis
mmichaelis / .gitignore
Created September 1, 2011 20:08
Monitoring System Load on Linux System with vmstat and generating graphs from it
# exclude patterns (uncomment them if you want to use them):
# *.[oa]
# *~
# idea:
*.iml
*.ipr
*.iws
.idea/
# maven:
target/