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 / midiman_firmware_debian_install.md
Last active February 10, 2023 18:24
MidiSport Midiman 2x2 USB driver installation for Raspbian Linux

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:

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 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 / gist:0c8ef707cc21782fd8dbaa46a3b37ed5
Last active June 5, 2017 11:48
Install Google Assistant on Raspberry Pi Zero W
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 / RaspberryPiZeroW_Setup.MD
Last active December 28, 2017 15:16
Setup Raspberry Pi Zero W without HDMI
@rockstarartist
rockstarartist / prototypetest.js
Created March 5, 2017 01:59
JavaScript Prototype and hasOwnProperty test
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

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 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