Skip to content

Instantly share code, notes, and snippets.

View jrumbut's full-sized avatar

Joshua Rumbut jrumbut

  • UMass Chan Medical School
  • Worcester, MA
View GitHub Profile
@jrumbut
jrumbut / nnet.R
Created December 5, 2017 21:43 — forked from primaryobjects/nnet.R
Neural network (nnet) with caret and R. Machine learning classification example, includes parallel processing.
library(caret)
library(doParallel)
registerDoParallel(cores = 2)
# Read data.
data <- read.csv('train.csv')
test <- read.csv('test.csv')
# Set classification column to factor.
@jrumbut
jrumbut / git-multi-status.sh
Last active June 22, 2016 18:09 — forked from ramananbalakrishnan/git-multi-status.sh
check the status of all git repositories located under a given directory (default: cwd)
#!/bin/bash
# usage: $0 [source_dir] ...
# where source_dir args are directories containing git repositories
red="\033[00;31m"
green="\033[00;32m"
yellow="\033[00;33m"
blue="\033[00;34m"
purple="\033[00;35m"
cyan="\033[00;36m"
#!/usr/bin/env ruby
# List all keys stored in memcache.
# Credit to Graham King at http://www.darkcoding.net/software/memcached-list-all-keys/ for the original article on how to get the data from memcache in the first place.
# Credit to @bkimble for the original script
# Blame to @jrumbut for adding content dumping
require 'net/telnet'
headings = %w(id expires bytes cache_key content)
@jrumbut
jrumbut / es.sh
Last active December 16, 2015 12:09
Updated version
cd ~
sudo apt-get update
sudo apt-get install openjdk-7-jre-headless -y
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below
# The easy way to install, from their prebuilt package
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.2.deb
sudo dpkg -i elasticsearch-0.90.2.deb