Skip to content

Instantly share code, notes, and snippets.

View brcolow's full-sized avatar

Michael Ennen brcolow

View GitHub Profile
Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
at com.sun.glass.ui.monocle.MonocleWindowManager.repaintAll(MonocleWindowManager.java:163)
at com.sun.glass.ui.monocle.MonocleWindow.notifyDestroy(MonocleWindow.java:427)
at com.sun.glass.ui.monocle.MonocleWindowManager.closeWindow(MonocleWindowManager.java:106)
at com.sun.glass.ui.monocle.MonocleWindow._close(MonocleWindow.java:178)
at com.sun.glass.ui.Window.close(Window.java:323)
at com.sun.javafx.tk.quantum.WindowStage.lambda$close$393(WindowStage.java:764)
at com.sun.javafx.tk.quantum.QuantumToolkit.runWithRenderLock(QuantumToolkit.java:407)
at com.sun.javafx.tk.quantum.WindowStage.close(WindowStage.java:760)
at javafx.stage.Window$9.invalidated(Window.java:889)
@brcolow
brcolow / Main.java
Created June 28, 2015 22:40
Mockserver + Jersey SSL Config
public class Main()
{
public Client getHttpsClient() throws KeyStoreException
{
return ClientBuilder.newBuilder()
.sslContext(getSSLContextProvider().getSSLContext())
.build();
}
@VisibleForTesting
@brcolow
brcolow / init.vim
Last active February 20, 2016 22:13
if has("nvim")
let g:python3_host_prog='C:\Python34\python.exe'
endif
set shortmess+=c
set tabstop=4
set shiftwidth=4
set expandtab
set hidden
set ignorecase
@brcolow
brcolow / gist:9977dce11c1a9f821422ad67c6f7d20d
Created April 5, 2016 23:38
modena.css rt-9cb4e3ed70b4 (Roughly 8u77)
/*
* Copyright (c) 2009, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
@brcolow
brcolow / post-receive
Last active August 2, 2016 00:19
post-receive
#!/usr/bin/env bash
command_exists() {
declare -Ff "$1" >/dev/null;
}
error_exit() {
echo "${PROGNAME}: ${1:-"Unknown Error"}" 1>&2
exit 1
}
@brcolow
brcolow / setup.sh
Created September 23, 2016 06:55
setup.sh
#!/bin/bash
[ ! -e ~/.ssh/id_rsa ] || [ ! -e ~/.ssh/id_rsa.pub ] && ssh-keygen -b 1024 -t rsa -N '' -f ~/.ssh/id_rsa
sed -i -r 's/^#?(PermitRootLogin|PermitEmptyPasswords|PasswordAuthentication|X11Forwarding) yes/\1 no/' /etc/ssh/sshd_config
@brcolow
brcolow / completion-for-gradle.md
Last active November 26, 2016 06:34 — forked from Ea87/completion-for-gradle.md
Gradle tab completion for Bash. Works on both Mac and Linux.

Gradle tab completion script for Bash

A tab completion script that works for Bash. Relies on the BSD md5 command on Mac and md5sum on Linux, so as long as you have one of those two commands, this should work.

Usage

$ gradle [TAB]
@brcolow
brcolow / sync.sh
Created December 24, 2016 00:16
Sync Script
#!/usr/bin/env bash
# Usage info
show_help() {
cat << EOF
Usage: ${0##*/} [-hf]
Syncs the TestFX Monocle repository with upstream.
-h display this help and exit
EOF
const download = spawnSync('powershell.exe', ['-ExecutionPolicy', 'Bypass', '-NoLogo', '-NonInteractive', '-NoProfile',
'-Command', `"Invoke-WebRequest -Uri 'https://github.com/mattn/sudo/releases/download/v0.0.1/sudo-x86_64.zip' -OutFile '${paths.composer.binaryPath}\\sudo-x86_64.zip'"`], { stdio: 'inherit', encoding: 'utf8', shell: true });
const unzip = spawnSync('powershell.exe', ['-ExecutionPolicy', 'Bypass', '-NoLogo', '-NonInteractive', '-NoProfile',
'-Command', `"Add-Type -AssemblyName System.IO.Compression.FileSystem;[System.IO.Compression.ZipFile]::ExtractToDirectory('${paths.composer.binaryPath}\\sudo-x86_64.zip', '${paths.composer.binaryPath}\\sudo-x86_64');"`], { stdio: 'inherit', encoding: 'utf8', shell: true });
$.util.log($.util.colors.bgRed(`Download status: ${download.status} - unzip status: ${unzip.status}`));
$.util.log($.util.colors.bgRed(`Download error: ${download.signal} - unzip error: ${unzip.signal}`));
@brcolow
brcolow / robot_public_api.md
Created December 3, 2017 21:23
JavaFX Robot Public API