Skip to content

Instantly share code, notes, and snippets.

View amuraru's full-sized avatar
:octocat:
Focusing

Adrian Muraru amuraru

:octocat:
Focusing
View GitHub Profile
graph TD;
    A-->B;
    A-->C;
    B-->D;
    C-->D;

Spark Memory Tuning

@amuraru
amuraru / README.md
Last active November 17, 2021 08:42
Intro Golang

Run

go run main.go

2021/11/15 11:25:02 openWeatherMap: Bucharest: 280.32
@amuraru
amuraru / Main.java
Last active November 13, 2021 17:45
Get
import jdk.internal.misc.SharedSecrets;
import jdk.internal.misc.VM;
public class Main
{
public static void main(String args[])
{
System.out.println("sun.misc.VM.maxDirectMemory(): " + VM.maxDirectMemory());
}
}
  • MINOR: Fix null exception in coordinator log (#10250)
  • KAFKA-12339: Add retry to admin client's listOffsets (#10152)
  • KAFKA-12321 the comparison function for uuid type should be 'equals' rather than '==' (#10098)
  • KAFKA-12193: Re-resolve IPs after a client disconnects (#9902) (#10061)
  • KAFKA-10793: move handling of FindCoordinatorFuture to fix race condition (#9671)
  • KAFKA-10798; Ensure response is delayed for failed SASL authentication with connection close delay (#9678)
  • MINOR: Do not print log4j for memberId required (#9667)
  • KAFKA-10134 Follow-up: Set the re-join flag in heartbeat failure (#9354)
  • MINOR: Fix now that kafka.apache.org resolves to 3 IP addresses (#9294)
  • KAFKA-10134: Enable heartbeat during PrepareRebalance and Depend On State For Poll Timeout (#8834)
<html><head><meta charset="utf-8"><title>Pretty Diff</title><style>body {text-align: center;}#wrapper {display: inline-block;margin-top: 1em;min-width: 800px;text-align: left;}h2 {background: #fafafa;background: -moz-linear-gradient(#fafafa, #eaeaea);background: -webkit-linear-gradient(#fafafa, #eaeaea);-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#fafafa',endColorstr='#eaeaea')";border: 1px solid #d8d8d8;border-bottom: 0;color: #555;font: 14px sans-serif;overflow: hidden;padding: 10px 6px;text-shadow: 0 1px 0 white;margin: 0;}.file-diff {border: 1px solid #d8d8d8;margin-bottom: 1em;overflow: auto;padding: 0.5em 0;}.file-diff > div {width: 100%:}pre {margin: 0;font-family: "Bitstream Vera Sans Mono", Courier, monospace;font-size: 12px;line-height: 1.4em;text-indent: 0.5em;}.file {color: #aaa;}.delete {background-color: #fdd;}.insert {background-color: #dfd;}.info {color: #a0b;}</style></head><body><div id="wrapper"><h2>stable/prometheus-operator/Chart.yaml</h2><div class="file-diff">
@amuraru
amuraru / eh.har
Last active March 23, 2016 12:07
onInputData(
{
"log": {
"version": "1.2",
"creator": {
"name": "WebInspector",
"version": "537.36"
},
"pages": [
{
@amuraru
amuraru / gist:8dd9357188d0ae2a1a46
Created March 19, 2016 11:48
create docker-machine in gce
docker-machine create --driver google --google-project test-666 --google-machine-type n1-highcpu-16 --engine-opt host='tcp://0.0.0.0:8080' test
@amuraru
amuraru / merge_adjacent_regions.py
Last active July 14, 2019 16:34
HBase Merge Empty regions
#!/usr/bin/python
## hbase shell <<<'status "detailed"' > /tmp/hbase_regions
## python merge_adjacent_regions.py <table_name> <target_region_size_mb>
import collections
import sys
TABLE=sys.argv[1]
target_size_mb = int(sys.argv[2])
LOCKED_REGION='07d9c26d0dec29cac5fc9c193ebe1889'
@amuraru
amuraru / pt-diskstats-to-csv.sh
Created August 23, 2015 20:34
pt-diskstats-to-csv.sh
perl /tmp/a.pl --headers=group --interval 15 --iterations=1 --devices sd.$ | grep -v '^ #ts device'|grep -v ^$|sed 's/^ *//g'|sed 's/ */,/g'|tr -d '%'
@amuraru
amuraru / centos.repo
Created May 9, 2015 11:52
centos7.repo
[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=7&repo=os&arch=x86_64
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
enabled=1
gpgcheck=0
priority=1
[updates]
name=CentOS-$releasever - Updates