Skip to content

Instantly share code, notes, and snippets.

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;
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
@paulbrodner
paulbrodner / map.bat
Last active February 24, 2016 10:31
WebDav (map drive)
@echo off
REM Prerequisites Windows7
REM http://docs.alfresco.com/4.0/tasks/tuh-maptodrive.html
REM - WebClient enabled
REM - HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\WebClient\Parameters\BasicAuthLevel DWORD created with value = 2
echo ---------------------------------
echo Mapping WebDav driver to Z:\\
if "%~4"=="" (
@paulbrodner
paulbrodner / jira-curl.sh
Created January 13, 2017 18:35 — forked from chrisxmacedo/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'
@paulbrodner
paulbrodner / gist:0a40896d2b17c9ff00fc97eae131560a
Created January 19, 2017 08:25
Get all dependencies from pom.xml
sed -n -e '/<dependencies>/,/<\/dependencies>/p' pom.xml | tr -d '\n'
@paulbrodner
paulbrodner / gist:d989ed2c84132d35bba17e04a55f72b1
Created January 19, 2017 08:26
Replace pom.xml version with a new verstion
sed -ie "s/<version>.*<\/version>/<version>12<\/version>/" pom.xml
@paulbrodner
paulbrodner / gist:f2ebd9f945dcd96f79a3a635544252ff
Created February 2, 2017 13:13
Remove all images and containers
#!/bin/bash
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)
curl -sSL https://get.docker.com/ | sh
sudo docker run \
--volume=/:/rootfs:ro \
--volume=/var/run:/var/run:rw \
--volume=/sys:/sys:ro \
--volume=/var/lib/docker/:/var/lib/docker:ro \
--publish=8080:8080 \
--detach=true \
--name=cadvisor \
google/cadvisor:latest
copy this file under ~/.vim/colors as desert.vim
then add in ~/.vimrc the following line:
colorscheme desert