Skip to content

Instantly share code, notes, and snippets.

Avatar

Rock Star Artist rockstarartist

View GitHub Profile
@rockstarartist
rockstarartist / values_pointers.go
Created Sep 17, 2018 — forked from josephspurrier/values_pointers.go
Golang - Asterisk and Ampersand Cheatsheet
View values_pointers.go
/*
********************************************************************************
Golang - Asterisk and Ampersand Cheatsheet
********************************************************************************
Also available at: https://play.golang.org/p/lNpnS9j1ma
Allowed:
--------
p := Person{"Steve", 28} stores the value
View docker-cheat-sheat.md

Build docker image

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

View running processes

@rockstarartist
rockstarartist / latency.txt
Created Jan 31, 2017 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
View latency.txt
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 Jan 5, 2021 — forked from kalharbi/zookeeper-solr-cloud.md
Setting up an external Zookeeper Solr Cluster
View zookeeper-solr-cloud.md

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