Skip to content

Instantly share code, notes, and snippets.

View noctarius's full-sized avatar

noctarius aka Christoph Engelbert noctarius

View GitHub Profile
@JulianNorton
JulianNorton / uninstall-rippling.sh
Created August 13, 2018 22:31
uninstall rippling
#!/bin/bash
if [ `id -u` -ne 0 ]; then
echo "Rippling uninstall must be run by root"
exit 1
fi
sudo launchctl unload /Library/LaunchDaemons/com.rippling.*
sudo rm -rf /Library/LaunchDaemons/com.rippling.*
sudo rm -rf /opt/rippling
@headius
headius / ffi-jep.md
Last active January 26, 2016 00:57
JDK Enhancement Proposal: FFI

Title: Foreign Function Interface Author: Charles Oliver Nutter Organization: Red Hat Owner: Charles Oliver Nutter Created: 2014/01/28 Type: Feature State: Draft Exposure: Open Component: --/-- Scope: JDK

@noctarius
noctarius / gist:7784770
Created December 4, 2013 09:29
Hazelcast MapReduce Avg Example
package com.hazelcast.mapred.test;
import com.hazelcast.core.CompletableFuture;
import com.hazelcast.core.HazelcastInstance;
import com.hazelcast.core.IMap;
import com.hazelcast.mapred.*;
import java.util.List;
import java.util.Map;
@t-botz
t-botz / gist:5948761
Last active December 19, 2015 11:38
Java properties & Lambdas
public class Person {
//The syntax obj#field, uses the new operator # which represents a direct access to the field (without getter/setter)
//Default public getter/setter
private String firstName : ();
//Explicitly defined getter/setter using lambda, exact equivalent as the default syntax ().By Default visibility is public
private String lastName : (()-> this#lastName, (lastName)-> this#lastName = lastName);
@mojavelinux
mojavelinux / AsciiDoc.java
Created March 3, 2012 00:10
Execute AsciiDoc from Java using the Jython Interpreter
import java.io.*;
import javax.script.*;
import org.python.core.PySystemState;
import org.python.core.PyString;
import org.python.util.PythonInterpreter;
/**
* This class executes the AsciiDoc python scripts (asciidoc.py and a2x.py) from
* Java using the Jython interpreter.
*