Skip to content

Instantly share code, notes, and snippets.

Avatar

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
@rockstarartist
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.
View SPSSError.txt
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-GeneralLicenseExam.txt
Last active Aug 9, 2016
Ham Radio Studying for General License Exam
View hamradio-GeneralLicenseExam.txt
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.
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
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 / 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
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 / 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
rockstarartist / RaspberryPiZeroW_Setup.MD
Last active Dec 28, 2017
Setup Raspberry Pi Zero W without HDMI
View RaspberryPiZeroW_Setup.MD