Skip to content

Instantly share code, notes, and snippets.

View kool79's full-sized avatar

Oleksandr Kulychok kool79

  • Astound Commerce
  • Ukraine, Vinnitsa
View GitHub Profile
2018-09-03 20:32:57:485 - [Appium] Welcome to Appium v1.9.0
2018-09-03 20:32:57:486 - [Appium] Non-default server args:
2018-09-03 20:32:57:487 - [Appium] port: 4724
2018-09-03 20:32:57:487 - [Appium] sessionOverride: true
2018-09-03 20:32:57:488 - [Appium] logTimestamp: true
2018-09-03 20:32:57:488 - [Appium] localTimezone: true
2018-09-03 20:32:57:488 - [Appium] nodeconfig: node-appium.json
2018-09-03 20:32:57:488 - [Appium] debugLogSpacing: true
2018-09-03 20:32:57:488 - [Appium] defaultCapabilities: {
2018-09-03 20:32:57:489 - [Appium] appium:newCommandTimeout: 100
package qa.ok.fw.test;
import java.net.MalformedURLException;
import java.net.URL;
import java.time.Duration;
import java.time.LocalTime;
import org.openqa.selenium.Platform;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.remote.BrowserType;
@kool79
kool79 / HelloWorld.java
Created May 22, 2018 17:41 — forked from lolzballs/HelloWorld.java
Hello World Enterprise Edition
import java.io.FileDescriptor;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintStream;
public class HelloWorld{
private static HelloWorld instance;
public static void main(String[] args){
instantiateHelloWorldMainClassAndRun();
@kool79
kool79 / macOS-in-virtualbox.md
Created February 21, 2018 20:20 — forked from rob-smallshire/macOS-in-virtualbox.md
Notes on getting macOS Sierra running in Virtualbox on a Windows 10 host

On Mac

Download, but don't run, the Sierra installer from the Mac App Store. This places the installer at /Applications/Install\ macOS\ Sierra.app/.

Now run the following commands to build a suitable VM image from the installer:

git clone https://github.com/jonanh/osx-vm-templates
cd osx-vm-templates/packer

sudo ../prepare_iso/prepare_vdi.sh -D DISABLE_REMOTE_MANAGEMENT -o macOS_10.12.vdi /Applications/Install\ macOS\ Sierra.app/ .

// ==UserScript==
// @name Jenkins timestamper
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @include https://ci-master.ontrq.com/*
// @include https://ci-master-01.ecofabric.com/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @grant GM_addStyle
@kool79
kool79 / jenkins-monospace-tampermonkey.js
Created February 7, 2018 17:30
forces textarea font to monospace in jenkins
// ==UserScript==
// @name Jenkins monospace
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @include https://ci-master.ontrq.com/*
// @include https://ci-master-01.ecofabric.com/*
// @grant GM_addStyle
// ==/UserScript==
@kool79
kool79 / HibernateGenericDAO
Created September 6, 2017 09:14 — forked from mrserverless/HibernateGenericDAO
Hibernate GenericDAO using Class-Mate
class Device {}
class Router extends Device {}
class GenericDAO<T, ID extends Serializable> {
protected Class<T> persistentClass;
protected Class<ID> idClass;
private GenericDAO() {
List <ResolvedType> typeParameters = new TypeResolver().resolve(this.getClass()).typeParametersFor(GenericDAO.class);
this.persistentClass = (Class<T>) typeParameters.get(0).getErasedType();
@kool79
kool79 / Jenkinsfile
Created July 27, 2017 15:09 — forked from JJediny/Jenkinsfile
An example Declarative Pipeline Jenkinsfile for Feb 15 2017 demo
// A Declarative Pipeline is defined within a 'pipeline' block.
pipeline {
// agent defines where the pipeline will run.
agent {
// This also could have been 'agent any' - that has the same meaning.
label ""
// Other possible built-in agent types are 'agent none', for not running the
// top-level on any agent (which results in you needing to specify agents on
// each stage and do explicit checkouts of scm in those stages), 'docker',
@kool79
kool79 / css_regression_testing.md
Created July 5, 2017 07:46 — forked from cvrebert/css_regression_testing.md
Survey of screenshot-based CSS testing tools

Currently considering https://github.com/webdriverio/webdrivercss


Core Goals:

  • Can test in up-to-date versions of all major browsers
  • Can test on up-to-date versions of all major OSes
  • Can test in IE9 (because Bootstrap v4 will support IE9+)
  • Don't want to have to setup/maintain our own cluster of VMs running all the necessary OSes (and all the versions of Windows)
  • Workflow for management of reference/baseline/norm screenshots
@kool79
kool79 / #selenium-chrome-authentication-extension
Created June 23, 2017 22:06 — forked from florentbr/#selenium-chrome-authentication-extension
Chrome extension to automatically set the credentials.
To build the extension, update the username/password and zip `background.js` and `manifest.json` in a single archive.