Skip to content

Instantly share code, notes, and snippets.

View keybase.md

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 Jan 16, 2019
Fix missing certificates in jdk install on ubuntu
View jdk-cert.bash
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 Oct 9, 2018
Patch for adding latency tracking to server
View Add_latency_monitoring_to_server.patch
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;
View MaxValueTracker.java
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);
View flamegraph-logback.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View 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 Mar 27, 2017
flamegraph-named-thread-stacks.svg
View 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 Mar 27, 2017
flamegraph-thread-stacks.svg
View 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 Mar 27, 2017
flamegraph-aggregate-stacks.svg
View 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 Mar 10, 2017
threaded-binary-server-perf-flames.svg
View 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.
You can’t perform that action at this time.