Skip to content

Instantly share code, notes, and snippets.

Avatar

Rock Star Artist rockstarartist

View GitHub Profile
@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

@rockstarartist
rockstarartist / midiman_firmware_debian_install.md
Last active Nov 23, 2020
MidiSport Midiman 2x2 USB driver installation for Raspbian Linux
View midiman_firmware_debian_install.md

Install the midisport-firmware package (firmware is in the package and the package should be available via the debian package repository)

sudo apt-get install midisport-firmware
sudo touch /etc/udev/rules.d/99-midisport-firmware.rules
sudo vi /etc/udev/rules.d/99-midisport-firmware.rules

In the editor, paste the following rules:

View blheli32MacOSXSetup
Install Silicon Labs VCP Driver:
https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers
specifically:
https://www.silabs.com/documents/public/software/Mac_OSX_VCP_Driver.zip
Install the legacy/older version
Verify that this exists:
/Library/Extensions/SiLabsUSBDriver.kext/
@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 / RaspberryPiZeroW_Setup.MD
Last active Dec 28, 2017
Setup Raspberry Pi Zero W without HDMI
View RaspberryPiZeroW_Setup.MD
@rockstarartist
rockstarartist / gist:0c8ef707cc21782fd8dbaa46a3b37ed5
Last active Jun 5, 2017
Install Google Assistant on Raspberry Pi Zero W
View gist:0c8ef707cc21782fd8dbaa46a3b37ed5
sudo apt-get update
//List all recording devices
arecored -l
//List all audio playing devices
aplay -l
// create a .asoundrc file
cd /home/pi
@rockstarartist
rockstarartist / prototypetest.js
Created Mar 5, 2017
JavaScript Prototype and hasOwnProperty test
View prototypetest.js
function A() {
this.x = "I'm an own property";
}
A.prototype.y = "I'm not an own property";
var instance = new A();
console.log(instance.hasOwnProperty("x")); // true
console.log(instance.hasOwnProperty("y")); // false
View keybase.md

Keybase proof

I hereby claim:

  • I am rockstarartist on github.
  • I am rockstarartist (https://keybase.io/rockstarartist) on keybase.
  • I have a public key ASC5s-ySt58eOoT0IQMvxS1eVA0G8pa3i0KYCiaWWXsRpgo

To claim this, I am signing this object:

@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