Navigation Menu

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 (https://keybase.io/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
tegansnyder / Install go 1.6 RHEl 7.md
Last active February 8, 2020 07:47
Install go 1.6 RHEl 7
# download latest https://golang.org/dl/
wget https://storage.googleapis.com/golang/go1.6.3.linux-amd64.tar.gz
tar xzvf go1.6.3.linux-amd64.tar.gz

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

# add system wide path
@tegansnyder
tegansnyder / Removing marvel indexes after 30 days.md
Created April 22, 2016 20:06
Removing marvel indexes after 30 days
# 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
tegansnyder / Upgrading Elastic Search to 2.3 - Steps I took.md
Last active June 2, 2020 11:58
Upgrading Elastic Search to 2.3 - Steps I took

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"
  }
}'
# install dev tools
yum groupinstall "Development tools"
# install zero mq
wget http://download.zeromq.org/zeromq-4.1.4.tar.gz
tar xvzf zeromq-4.1.4.tar.gz
cd zeromq-4.1.4
./configure --without-libsodium
make
@tegansnyder
tegansnyder / JSON data type MySQL 5.7 Example Query.sql
Created March 4, 2016 16:34
JSON data type MySQL 5.7 Example Query
SELECT JSON_EXTRACT(config, '$.settings.lang_code') as lang_code FROM _jobs
@tegansnyder
tegansnyder / ruby_jruby_install_nordstrom_tdsql_teradata.md
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: https://github.com/Nordstrom/tdsql

# sudo -s or dzdo
dzdo -s

# instal ruby from RHEL packagemantent
yum install ruby
@tegansnyder
tegansnyder / rhel6-scikit-learn.md
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
tegansnyder / Best Delimeter.md
Created December 8, 2015 18:58
Best Delimeter

For CSV export use "¬"

@tegansnyder
tegansnyder / apache spark csv sql.md
Last active April 26, 2019 14:07
Apache Spark querying a CSV using SQL Context
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