Skip to content

Instantly share code, notes, and snippets.

View rockstarartist's full-sized avatar

Rock Star Artist rockstarartist

View GitHub Profile
@rockstarartist
rockstarartist / Jenkinsfile
Created July 20, 2021 20:33 — forked from merikan/Jenkinsfile
Some Jenkinsfile examples
Some Jenkinsfile examples
@rockstarartist
rockstarartist / values_pointers.go
Created September 17, 2018 15:33 — forked from josephspurrier/values_pointers.go
Golang - Asterisk and Ampersand Cheatsheet
/*
********************************************************************************
Golang - Asterisk and Ampersand Cheatsheet
********************************************************************************
Also available at: https://play.golang.org/p/lNpnS9j1ma
Allowed:
--------
p := Person{"Steve", 28} stores the value

Build docker image

$ cd /path/to/Dockerfile
$ sudo docker build .

View running processes

@rockstarartist
rockstarartist / latency.txt
Created January 31, 2017 15:23 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers
--------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
@rockstarartist
rockstarartist / zookeeper-solr-cloud.md
Last active January 5, 2021 11:14 — forked from kalharbi/zookeeper-solr-cloud.md
Setting up an external Zookeeper Solr Cluster

Setting up an external Zookeeper Solr Cluster on 3 hosts with Ambari's Zookeeper

This is a step by step instruction on how to create a cluster that has three Solr nodes running in cloud mode. These instructions should work on both a local cluster (for testing, with 3 virtual hosts) and a remote cluster where each server runs in its own physical machine. This was tested on Solr version 6.2.1 and Zookeeper version 3.4.6

We will assume that the names of the hosts with the Zookeeper servers will be called: zserver1 zserver2 zserver3