Skip to content

Instantly share code, notes, and snippets.

View melioratus's full-sized avatar
💭
Inside emacs

Brian Smith melioratus

💭
Inside emacs
View GitHub Profile
@melioratus
melioratus / ClassLoaderLeakExample.java
Created November 12, 2018 15:42 — forked from dpryden/ClassLoaderLeakExample.java
Example of a ClassLoader leak in Java
import java.io.IOException;
import java.net.URLClassLoader;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.nio.file.Path;
/**
* Example demonstrating a ClassLoader leak.
*
* <p>To see it in action, copy this file to a temp directory somewhere,
@melioratus
melioratus / npm-using-https-for-git.sh
Created June 24, 2020 15:27 — forked from taoyuan/npm-using-https-for-git.sh
Force git to use https:// instead of git://
# npm using https for git
git config --global url."https://github.com/".insteadOf [email protected]:
git config --global url."https://".insteadOf git://
# npm using git for https
git config --global url."[email protected]:".insteadOf https://github.com/
git config --global url."git://".insteadOf https://