Skip to content

Instantly share code, notes, and snippets.

Stay'n cold in Minnesota

Tegan Snyder tegansnyder

Stay'n cold in Minnesota
Block or report user

Report or block tegansnyder

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
tegansnyder / Install go 1.6 RHEl
Last active Jun 19, 2019
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 Apr 22, 2016
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 Feb 11, 2019
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 Mar 4, 2016
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 Dec 21, 2015
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
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 / apache spark csv
Last active Apr 26, 2019
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
tegansnyder / disable mcafee endpoint
Last active Nov 20, 2019
Disable McAffee Endpoint Protection OSX
View disable mcafee endpoint

method 1

sudo /usr/local/McAfee/AntiMalware/VSControl stopoas


sudo defaults write /Library/Preferences/com.mcafee.ssm.antimalware.plist OAS_Enable -bool False
sudo /usr/local/McAfee/AntiMalware/VSControl stop
sudo /usr/local/McAfee/AntiMalware/VSControl reload
You can’t perform that action at this time.