Skip to content

Instantly share code, notes, and snippets.

@paulbrodner
paulbrodner / docker-log.sh
Created July 24, 2017 18:10 — forked from yarcowang/docker-log.sh
simple bash script to show log for a docker image
#!/usr/bin/env bash
DOCKER=`which docker`
usage()
{
echo "Usage: $(basename $0) [-l num] IMAGE"
exit 0
}
@paulbrodner
paulbrodner / docker-log.sh
Created July 24, 2017 18:10 — forked from yarcowang/docker-log.sh
simple bash script to show log for a docker image
#!/usr/bin/env bash
DOCKER=`which docker`
usage()
{
echo "Usage: $(basename $0) [-l num] IMAGE"
exit 0
}
@paulbrodner
paulbrodner / jira-curl.sh
Created January 13, 2017 18:35 — forked from TheMightyLlama/jira-curl.sh
Perform actions on a jira issue via curl
#Creates a new issue with custom fields
curl -D- -u uname:pass -X POST --data "{\"fields\": {\"project\": { \"id\": \"10430\" },\"summary\": \"This is a test issue\", \"description\": \"Description\",\"issuetype\": { \"id\" : \"1\"}, \"components\" : [{\"id\":\"10731\"}], \"customfield_10711\" : [{\"id\":\"10500\"}] } }" -H "Content-Type: application/json" http://localhost:8080/jira/rest/api/2/issue/
#Returns all information for all versions
curl -D- -u uname:pass -X PUT -d "Content-Type: application/json" http://localhost:8080/jira/rest/api/2/project/AN/versions?
#Returns all issues in a version
#This URL requires the version ID of a single version which is provided by the above query
curl -D- -u uname:pass -X PUT -d "Content-Type: application/json" http://localhost:8080/jira/rest/api/2/search?jql=project="AN"+AND+fixVersion='12345'
http://ldtp.freedesktop.org/wiki/GNU/Linux_environment
http://ldtp.freedesktop.org/wiki/LDTP_test_scripts_in_python
http://ldtp.freedesktop.org/wiki/Howto_run_ldtp_from_vnc_session
http://ldtp.freedesktop.org/wiki/Howto_run_ldtp_inside_Xvfb
http://ldtp.freedesktop.org/wiki/Howto_run_ldtp_inside_Xvfb_which_runs_in_xinit_session
http://ldtp.freedesktop.org/wiki/How_to_develop_component_functions_for_LDTP
http://ldtp.freedesktop.org/wiki/RecordHOWTO
http://ldtp.freedesktop.org/wiki/Test-case_generation_procedure
http://ldtp.freedesktop.org/wiki/Howto_use_LDTP_Editor
http://ldtp.freedesktop.org/wiki/Release_notes_for_Evolution-2.5.1_Sanity_suite
package com.yahoo.media.mediaqa.selenium2test;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;
import org.openqa.selenium.android.AndroidDriver;
import org.openqa.selenium.firefox.*;
import org.openqa.selenium.firefox.internal.ProfilesIni;