Skip to content

Instantly share code, notes, and snippets.

View brcolow's full-sized avatar

Michael Ennen brcolow

View GitHub Profile
@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 / 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 / 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 / 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
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)