Skip to content

Instantly share code, notes, and snippets.

View tomtheun's full-sized avatar

Tomas Theunissen tomtheun

  • Arnhem, The Netherlands
  • 16:40 (UTC +02:00)
View GitHub Profile
@tomtheun
tomtheun / JQuerySelector.java
Created November 26, 2012 10:16
Full implementation of a jQuery based Selenium CSS selector (in Java)
package nl.avisi.langur.testing;
import org.openqa.selenium.*;
import org.openqa.selenium.remote.RemoteWebElement;
import java.util.List;
public class JQuerySelector extends By {
private final String jQuerySelector;
Installing Java 9
Option 1: Ops Tools
If you only need to use Java 9 with Maven, you can use our 'Ops Tools' project. This will run Maven with the desired Java version (defaults to 9, but you can switch to Java 7 or 8). Follow the instructions in the README of this project. This option has two benefits; No need install Java on you machine (it runs in a container). And you will always be using the latest version of Maven and Java update version (the bit after 'u' in '8u144' or 'minor'/'patch' version in Java 9). Beware that you will be using OpenJDK when using this option, and not Oracle JDK.
Option 2: Plain install
Go to the Oracle website (http://www.oracle.com/technetwork/java/javase/downloads/jdk9-downloads-3848520.html), download and run installer.
Option 3: Other
@tomtheun
tomtheun / jira-pw-reset.rb
Last active January 9, 2017 09:59
Simple Ruby script for resetting JIRA user passwords
#!/usr/bin/env ruby
require 'optparse'
require 'securerandom'
require 'json'
require 'net/http'
options = {}
OptionParser.new do |parser|

Keybase proof

I hereby claim:

  • I am tomtheun on github.
  • I am tomtheun (https://keybase.io/tomtheun) on keybase.
  • I have a public key whose fingerprint is AD0E 9595 9AE8 E689 99CF C276 956A 368D 3A62 F40C

To claim this, I am signing this object: