Skip to content

Instantly share code, notes, and snippets.

Silvio Heuberger kungfoo

Block or report user

Report or block kungfoo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kungfoo
kungfoo / build.gradle
Created Jun 11, 2019
Applying beekeeper plugins only to subprojects
View build.gradle
plugins {
id "io.beekeeper.gradle.plugin" version "0.7.0" apply false
}
subprojects {
(...)
apply plugin: "io.beekeeper.gradle.plugin"
}
@kungfoo
kungfoo / gist:ad2f97bf858f2d95141edbfe76b30ec7
Created Jun 4, 2019
Adding all the dependencies for XML parsing/writing on a modern JRE
View gist:ad2f97bf858f2d95141edbfe76b30ec7
runtime group: 'javax.xml.bind', name: 'jaxb-api', version: '2.3.0'
runtime group: 'com.sun.xml.bind', name: 'jaxb-impl', version: '2.3.0'
runtime group: 'com.sun.xml.bind', name: 'jaxb-core', version: '2.3.0'
runtime group: 'javax.activation', name: 'activation', version: '1.1.1'
@kungfoo
kungfoo / gist:449f7a514111030501768b8a864384f4
Created Jun 4, 2019
Pinning javassist/activation libraries for hibernate for modern JREs
View gist:449f7a514111030501768b8a864384f4
compile group: 'javax.xml.bind', name: 'jaxb-api', version: '2.3.0'
compile group: 'javax.activation', name: 'activation', version: '1.1.1'
compile group: 'org.javassist', name: 'javassist', version: '3.23.1-GA'
View gist:26ad8fa3ebec721959aa508653968213
lombok {
version = "1.18.8"
sha256 = "0396952823579b316a0fe85cbd871bbb3508143c2bcbd985dd7800e806cb24fc"
}
@kungfoo
kungfoo / run-in-docker.sh
Created Feb 7, 2018
Running a gradle build on a completely clean docker container
View run-in-docker.sh
#!/bin/bash
set -e
docker run -it --rm -v $(pwd):/src openjdk:alpine /bin/sh -c "cd src; ./gradlew test assemble"
@kungfoo
kungfoo / deploy-to-glassfish-with-curl.sh
Created Nov 2, 2017
Ddeploy to glassfish using curl POST
View deploy-to-glassfish-with-curl.sh
curl --user $user:$password \
--insecure \
--progress-bar \
-H "Accept: application/json" \
-H "X-Requested-By: dummy" \
-X POST \
-F id=@build/libs/$your_war_file \
-F contextroot=$application_name -F name=$application_name \
-F force=true \
https://$glassfish_host:4848/management/domain/applications/application/
@kungfoo
kungfoo / gtk.css
Last active Aug 29, 2015
Fixing broken window shadows in GTK 3.16 and a tiling window manager
View gtk.css
.window-frame, .window-frame:backdrop {
box-shadow: 0 0 0 black;
border-style: none;
margin: 0;
border-radius: 0;
}
.titlebar {
border-radius: 0;
}
View gist:8a507b1657c82ae51d7b
public class FileDownloader extends AbstractExtension {
private boolean overrideContentType = true;
/**
* Creates a new file downloader for the given resource. To use the
* downloader, you should also {@link #extend(AbstractClientConnector)} the
* component.
*
* @param resource
@kungfoo
kungfoo / SpecialEclipsePlugin.groovy
Last active Aug 29, 2015
Creating and updating the eclipse line break and encoding in Gradle build
View SpecialEclipsePlugin.groovy
class SpecialEclipsePlugin extends SpecialPlugin {
@Override
public void apply(Project project) {
eggExtension(project).create("eclipse", EclipseExtension)
project.apply(plugin: 'eclipse')
project.afterEvaluate {
configureEclipseClasspath(it)
@kungfoo
kungfoo / Wicked_US.keylayout
Created Nov 26, 2013
Wicked Keyboard layout for macs when you program and type german.
View Wicked_US.keylayout
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE keyboard PUBLIC "" "file://localhost/System/Library/DTDs/KeyboardLayout.dtd">
<!--Created by Ukelele version 2.1.9 on 2012-02-28 at 17:26 (GMT+01:00)-->
<!--Created by Ukelele version 2.1.9 on 2012-02-28 at 17:22 (GMT+01:00)-->
<!--Created by Ukelele version 2.1.9 on 2012-02-28 at 17:21 (GMT+01:00)-->
<!--Created by Ukelele version 2.1.9 on 2012-02-28 at 14:05 (GMT+01:00)-->
<!--Last edited by Ukelele version 2.1.9 on 2012-02-28 at 17:28 (GMT+01:00)-->
<keyboard group="29" id="30906" name="wicked U.S." maxout="1">
<layouts>
<layout first="0" last="17" modifiers="f4" mapSet="16c"/>
You can’t perform that action at this time.