Skip to content

Instantly share code, notes, and snippets.

💭
Stay'n cold in Minnesota

Tegan Snyder tegansnyder

💭
Stay'n cold in Minnesota
View GitHub Profile
View Install go 1.6 RHEl 7.md
# 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 Apr 22, 2016
Removing marvel indexes after 30 days
View Removing marvel indexes after 30 days.md
# 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 Jun 2, 2020
Upgrading Elastic Search to 2.3 - Steps I took
View Upgrading Elastic Search to 2.3 - Steps I took.md

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 setup.sh
# 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 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
tegansnyder / ruby_jruby_install_nordstrom_tdsql_teradata.md
Last active Dec 21, 2015
RHEL 6 - Ruby / JRuby install for Nordstrom/tdsql - Command line toolbelt for Teradata
View ruby_jruby_install_nordstrom_tdsql_teradata.md

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
Install steps for scikit-learn on RHEL
View rhel6-scikit-learn.md

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 / apache spark csv sql.md
Last active Apr 26, 2019
Apache Spark querying a CSV using SQL Context
View apache spark csv sql.md
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
tegansnyder / disable mcafee endpoint protection.md
Last active Jul 30, 2020
Disable McAffee Endpoint Protection OSX
View disable mcafee endpoint protection.md

method 1

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

alternatively

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.