Skip to content

Instantly share code, notes, and snippets.

@epickrram
epickrram / keybase.md
Created September 11, 2019 06:51
keybase

Keybase proof

I hereby claim:

  • I am epickrram on github.
  • I am epickrram (https://keybase.io/epickrram) on keybase.
  • I have a public key whose fingerprint is 1F6A 1F5A 580B 30D7 E29B A2C3 1607 AFEE 5E0F 63CC

To claim this, I am signing this object:

@epickrram
epickrram / jdk-cert.bash
Created January 16, 2019 16:31
Fix missing certificates in jdk install on ubuntu
echo -e "\\xfe\\xed\\xfe\\xed\\x00\\x00\\x00\\x02\\x00\\x00\\x00\\x00\\xe2\\x68\\x6e\\x45\\xfb\\x43\\xdf\\xa4\\xd9\\x92\\xdd\\x41\\xce\\xb6\\xb2\\x1c\\x63\\x30\\xd7\\x92" > /etc/ssl/certs/java/cacerts
/var/lib/dpkg/info/ca-certificates-java.postinst configure
@epickrram
epickrram / Add_latency_monitoring_to_server.patch
Created October 9, 2018 18:24
Patch for adding latency tracking to server
Index: src/main/java/com/aitusoftware/workshop/usvc/svc/e4/TcpBinaryCalculatorServer.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- src/main/java/com/aitusoftware/workshop/usvc/svc/e4/TcpBinaryCalculatorServer.java (revision 75e465ad33a90511fadce2b94593704cc9bb8463)
+++ src/main/java/com/aitusoftware/workshop/usvc/svc/e4/TcpBinaryCalculatorServer.java (date 1539109413000)
@@ -11,10 +11,14 @@
*/
package com.aitusoftware.workshop.usvc.svc.e4;
public final class PerfTest {
private final MaxPerSecondReporter reporter = new MaxPerSecondReporter(max -> {
System.out.printf("%s %d%n", Instant.now(), max);
});
private void onExecutionReport() {
final long currentNanos = System.nanoTime();
// calculate end-to-end latency
final long endToEndLatency = calculateEndToEndLatency();
reporter.recordSample(currentNanos, endToEndLatency);
@epickrram
epickrram / flamegraph-logback.svg
Created March 27, 2017 20:58
flamegraph-logback.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@epickrram
epickrram / flamegraph-compiler.svg
Created March 27, 2017 20:55
flamegraph-compiler.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@epickrram
epickrram / flamegraph-named-thread-stacks.svg
Created March 27, 2017 20:28
flamegraph-named-thread-stacks.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@epickrram
epickrram / flamegraph-thread-stacks.svg
Created March 27, 2017 20:15
flamegraph-thread-stacks.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@epickrram
epickrram / flamegraph-aggregate-stacks.svg
Created March 27, 2017 20:02
flamegraph-aggregate-stacks.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@epickrram
epickrram / threaded-binary-server-perf-flames.svg
Created March 10, 2017 08:16
threaded-binary-server-perf-flames.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.