Skip to content

Instantly share code, notes, and snippets.

@jfcherng
jfcherng / st4-changelog.md
Last active April 20, 2024 00:25
Sublime Text 4 changelog just because it's not on the official website yet.
@kay
kay / jdk11-hsdis-ubuntu.sh
Last active August 9, 2020 11:31
Build HotSpot disassembler for JDK 11 and 12
# The following is based on a fresh Ubuntu 18.04.2 LTS with gcc, make and perl already
# installed (not that perl has anything to do with any of this..)
#
# This is based on JDK 11 but for JDK 12 I've confirmed it builds ok with binutils-2.29
# and binutils-2.32
apt install mercurial
# Be nice if this didn't check out the universe
hg clone http://hg.openjdk.java.net/jdk/jdk11/
cd jdk11/src/utils/hsdis/
@codesword
codesword / minikube.md
Last active October 31, 2019 21:27
Installing minikube using xhyve driver

###Install docker-machine-driver-xhyve docker-machine-driver-xhyve is a docker machine driver plugin for xhyve native OS X Hypervisor. xhyve is a lightweight OS X virtualization solution. In my opinion, it's a far better option than virtualbox for running minikube. ####Brew On MacOS sierra, download latest using

brew install docker-machine-driver-xhyve --HEAD
sudo chown root:wheel $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
sudo chmod u+s $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
@raphw
raphw / WeakeningAgent.java
Last active January 23, 2021 11:40
A Java agent for fixing exports for an app that is not yet Java 9 aware.
import java.lang.instrument.Instrumentation;
import java.lang.reflect.Layer;
import java.lang.reflect.Module;
import java.util.*;
public class WeakeningAgent {
public static void premain(String argument, Instrumentation instrumentation) {
boolean full = argument != null && argument.equals("full");
Set<Module> importing = new HashSet<>(), exporting = new HashSet<>();