Skip to content

Instantly share code, notes, and snippets.

import javax.net.ssl.HttpsURLConnection;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URL;
import sun.misc.BASE64Encoder;
public class Sources {
<plugin>
<groupId>com.heroku.sdk</groupId>
<artifactId>heroku-maven-plugin</artifactId>
<version>1.2.0</version>
<executions>
<execution>
<id>app1</id>
<goals>
<goal>deploy</goal>
</goals>
@jkutner
jkutner / jvm-dashboard-cli-plugins.md
Last active August 6, 2019 13:43
JVM Dashboard CLI Plugins
Travis CI Circle CI Download Github
Maven plugin Build Status CircleCI Download Maven Central GitHub pull requests
Scala (SBT) plugin Build Status [![Download](https://api.bint
Travis CI Circle CI Github
Java Build Status CircleCI GitHub commits GitHub pull requests
Gradle Build Status CircleCI [![Git
@jkutner
jkutner / jvm-dashboard.md
Last active August 9, 2017 13:42
Heroku JVM Dashboard
import java.nio.channels.*;
import java.net.*;
import java.lang.management.*;
import com.sun.management.UnixOperatingSystemMXBean;
import java.net.BindException;
public class TestSocketAccept {
public static void main(String[] args) throws Exception {
OperatingSystemMXBean os = ManagementFactory.getOperatingSystemMXBean();

bin/release error

Push failed: failed to read buildpack metadata: (): mapping values are not allowed in this context at line 2 column 36 
Please try pushing again.

This means there is a bug in the bin/release script of the buildpack.

Write once, run everyone, and

These aren't necessarily the most important things I've learn about the JVM in the last 10 years, but they are the things that keep coming up over and over again.

How classloaders work

How the JVM uses native (off-heap) memory

How the Maven lifecycle works