Skip to content

Instantly share code, notes, and snippets.

View tegansnyder's full-sized avatar
Stay'n cold in Minnesota

Tegan Snyder tegansnyder

Stay'n cold in Minnesota
View GitHub Profile

Keybase proof

I hereby claim:

  • I am tegansnyder on github.
  • I am tegansnyder ( on keybase.
  • I have a public key whose fingerprint is 6D1F 93B8 4667 46BB D542 AEDE 6BE5 2621 472A FF08

To claim this, I am signing this object:

tegansnyder / Install go 1.6 RHEl
Last active February 8, 2020 07:47
Install go 1.6 RHEl 7
View Install go 1.6 RHEl
# download latest
tar xzvf go1.6.3.linux-amd64.tar.gz

# system wide install
sudo mv go /usr/local/

# add system wide path
tegansnyder / Removing marvel indexes after 30
Created April 22, 2016 20:06
Removing marvel indexes after 30 days
View Removing marvel indexes after 30
# crontab -e
# remove marvel indicies older than 30 days
30 2 * * * curator delete indices --timestring '%Y.%m.%d' --prefix '.marvel-es' --older-than 30 --time-unit 'days'
tegansnyder / Upgrading Elastic Search to 2.3 - Steps I
Last active June 2, 2020 11:58
Upgrading Elastic Search to 2.3 - Steps I took
View Upgrading Elastic Search to 2.3 - Steps I

Details of steps I took on each node in a nine node ES cluster on RHEL7. These steps need to occur one node at a time, i.e. "rolling upgrade")

Step 1: Disable shard allocation

curl -XPUT "http://localhost:9200/_cluster/settings" -d'
  "transient": {
    "cluster.routing.allocation.enable": "none"
View worker node server
# install dev tools
yum groupinstall "Development tools"
# install zero mq
tar xvzf zeromq-4.1.4.tar.gz
cd zeromq-4.1.4
./configure --without-libsodium
tegansnyder / JSON data type MySQL 5.7 Example Query.sql
Created March 4, 2016 16:34
JSON data type MySQL 5.7 Example Query
View JSON data type MySQL 5.7 Example Query.sql
SELECT JSON_EXTRACT(config, '$.settings.lang_code') as lang_code FROM _jobs
tegansnyder /
Last active December 21, 2015 20:55
RHEL 6 - Ruby / JRuby install for Nordstrom/tdsql - Command line toolbelt for Teradata

Steps to get Ruby install on RHEL and JRuby with RVM for Teradata toolkit found here:

# sudo -s or dzdo
dzdo -s

# instal ruby from RHEL packagemantent
yum install ruby
tegansnyder /
Last active May 3, 2017 07:33
Install steps for scikit-learn on RHEL

My personal documentation of how to install scikit-learn on RHEL 6.

sudo yum update -y && yum install -y python-devel.x86_64 python-matplotlib.x86_64 gcc-c++.x86_64 

sudo easy_install pip
sudo pip install numpy
sudo yum install gcc-gfortran
tegansnyder / Best
Created December 8, 2015 18:58
Best Delimeter
View Best

For CSV export use "¬"

tegansnyder / apache spark csv
Last active April 26, 2019 14:07
Apache Spark querying a CSV using SQL Context
View apache spark csv
Using Apache Spark to Query a CSV Like with SQL like syntax.

Load up the spark shell with the appropriate package for csv parsing:

./bin/spark-shell --packages com.databricks:spark-csv_2.10:1.1.0

In the scala terminal type the following, referencing the path to your csv file. Example below:

import org.apache.spark.sql.SQLContext