Skip to content

Instantly share code, notes, and snippets.

View rockstarartist's full-sized avatar

Rock Star Artist rockstarartist

View GitHub Profile
// You effed up your master branch, because you stupidly commited to it,
// and you need to reset it to the remote master:
git fetch origin
git reset --hard origin/master
Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-INSTALL/scripts/hook.py", line 37, in <module>
BeforeInstallHook().execute()
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 219, in execute
method(env)
File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-INSTALL/scripts/hook.py", line 33, in hook
install_repos()
File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-INSTALL/scripts/repo_initialization.py", line 66, in install_repos
_alter_repo("create", params.repo_info, template)
File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-INSTALL/scripts/repo_initialization.py", line 34, in _alter_repo
@rockstarartist
rockstarartist / hamradio-information.txt
Last active July 15, 2016 20:20
HAM Radio Technician Test Prep
There are only 3 ITU regions, 1, 2, and 3
IRLP = Internet Radio Linking Project
The aim of the IRLP is link radio systems separarted by long distance
without the use of expensive leased lines, satellites, or controllers.
IRLP uses VOIP and the internet.
The louder the voice signal in an FM transmitter the greater the frequency
deviation of the modulator. If you are over deviating, you need to reduce
the amplitude of your voice.
@rockstarartist
rockstarartist / hamradio-GeneralLicenseExam.txt
Last active August 9, 2016 02:22
Ham Radio Studying for General License Exam
Q-Codes:
QRL * Are you busy? I am busy (or busy with....). Please do not interfere.
QRM * Are you being interfered with? I am being interfered with.
QRN * Are you troubled by static? I am troubled by static.
QRO * Must I increase power? Increase power.
QRP * Must I decrease power? Decrease power.
QRQ * Must I send faster? Send faster ... (words per min.).
QRS * Must I send more slowly? Transmit more slowly ... (w.p.m.).
QRT * Must I stop transmission? Stop transmission.
QRU * Have you anything for me? I have nothing for you.
## Remove all packages from the HDP-2.4 repository
yum remove $(yum list installed | grep HDP-2.4 | awk '{ print $1 }')
@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

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