Skip to content

Instantly share code, notes, and snippets.

./gradlew cucumber --debug-jvm
@binarycreations
binarycreations / snapcraft.yaml
Created June 14, 2018 22:31
Anki desktop snap
# vim: tw=80 shiftwidth=4 tabstop=4 softtabstop=4 et ai
name: anki-desktop
version: 2.0.52
summary: Anki desktop client
description: |
Anki is a program which makes remembering things easy. Because it's a lot
more efficient than traditional study methods, you can either greatly
decrease your time spent studying, or greatly increase the amount you learn.
confinement: devmode
@binarycreations
binarycreations / cucumber_cli_help
Created May 9, 2018 09:34
Cucumber CLI --help options
Usage: java cucumber.api.cli.Main [options] [[[FILE|DIR][:LINE[:LINE]*] ]+ | @FILE ]
Options:
-g, --glue PATH Where glue code (step definitions, hooks
and plugins) are loaded from.
-p, --[add-]plugin PLUGIN[:PATH_OR_URL]
Register a plugin.
Built-in formatter PLUGIN types: junit,
html, pretty, progress, json, usage, rerun,
@binarycreations
binarycreations / build.gradle
Created April 27, 2018 09:38
Filtering out JVM argument warnings using TaskCollection#matching(Spec...)
allprojects {
repositories {
jcenter()
}
afterEvaluate {
project.tasks.matching(new Spec<Task> () {
def boolean isSatisfiedBy(Task el) {
return (el instanceof JavaExec || el instanceof Test) ? true : false
}
@binarycreations
binarycreations / libinput versions and debug-events
Last active April 4, 2018 14:09
Gnome 3.28 - Touch pad right button registers as primary click
➜ ~ pacman -Qi libinput
Name : libinput
Version : 1.10.3-1
Description : Input device management and event handling library
Architecture : x86_64
URL : https://www.freedesktop.org/wiki/Software/libinput/
Licenses : custom:X11
Groups : None
Provides : None
Depends On : mtdev systemd libevdev libwacom
@binarycreations
binarycreations / terminology_crash
Created October 19, 2017 19:39
Terminology crash - Switching between ttys with second containing gnome session on X server
# Steps to repeat
On tty1 - Start terminology from a login shell via ~/.zlogin
- For reference started with: terminology -W -s &> ~/.terminology_log
On tty2 - Login, exit terminology session.
- startx with ~/.xinitrc executing a gnome session
- Swithc back to tty1
- Terminology in tty1 in unresponsive to input and contains a black screen
### Below is the contents of the entire .termology_log
@binarycreations
binarycreations / pacman_Qqe_gnome
Last active October 26, 2017 05:01
pacman_Qqe_gnome
accerciser
aconfmgr-git
aisleriot
android-udev
atomix
autoconf
automake
baobab
bash
binutils
@binarycreations
binarycreations / pacman_Qqe.txt
Created April 11, 2017 18:14
List of arch packages after basic XFCE install
➜ ~ pacman -Qqe
autoconf
automake
bash
binutils
bison
blueman
bluez
bluez-utils
bzip2
@binarycreations
binarycreations / threetenabpjvmtesting
Created February 9, 2016 14:56
Three Ten ABP JVM unit testing deps
java.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.junit.runners.BlockJUnit4ClassRunner.createTest(BlockJUnit4ClassRunner.java:217)
at org.junit.runners.BlockJUnit4ClassRunner$1.runReflectiveCall(BlockJUnit4ClassRunner.java:266)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.BlockJUnit4ClassRunner.methodBlock(BlockJUnit4ClassRunner.java:263)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
@binarycreations
binarycreations / with_sqlite_missing_dates.sql
Created November 23, 2015 21:51
Find missing entries within a sequence of data
WITH RECURSIVE
days(day) AS (
SELECT '2015-10-05T00:00:00Z'
UNION ALL
SELECT date(day,'+1 day') || 'T00:00:00Z' FROM days WHERE day < '2015-11-21T00:00:00Z'
)
SELECT day, picks.title, picks.date FROM days LEFT JOIN picks ON picks.date = days.day WHERE picks.date IS NULL;