Skip to content

Instantly share code, notes, and snippets.


Rock Star Artist rockstarartist

View GitHub Profile
View HelpfulGitCommands.txt
// 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
View SPSSError.txt
Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-INSTALL/scripts/", line 37, in <module>
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/", line 219, in execute
File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-INSTALL/scripts/", line 33, in hook
File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-INSTALL/scripts/", 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/", line 34, in _alter_repo
rockstarartist / hamradio-information.txt
Last active Jul 15, 2016
HAM Radio Technician Test Prep
View hamradio-information.txt
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 / hamradio-GeneralLicenseExam.txt
Last active Aug 9, 2016
Ham Radio Studying for General License Exam
View hamradio-GeneralLicenseExam.txt
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.
View gist:3bf1394e5ac784b565dd04c1ee9a7d6e
## Remove all packages from the HDP-2.4 repository
yum remove $(yum list installed | grep HDP-2.4 | awk '{ print $1 }')
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

Keybase proof

I hereby claim:

  • I am rockstarartist on github.
  • I am rockstarartist ( on keybase.
  • I have a public key ASC5s-ySt58eOoT0IQMvxS1eVA0G8pa3i0KYCiaWWXsRpgo

To claim this, I am signing this object:

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
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 / RaspberryPiZeroW_Setup.MD
Last active Dec 28, 2017
Setup Raspberry Pi Zero W without HDMI
View RaspberryPiZeroW_Setup.MD