Skip to content

Instantly share code, notes, and snippets.

View spikegrobstein's full-sized avatar

spike grobstein spikegrobstein

View GitHub Profile

Keybase proof

I hereby claim:

  • I am spikegrobstein on github.
  • I am spizzike (https://keybase.io/spizzike) on keybase.
  • I have a public key whose fingerprint is 0633 0076 8FE7 AEFE 4E03 9CDA 75BC D287 70D0 33E3

To claim this, I am signing this object:

@spikegrobstein
spikegrobstein / bittrex.rb
Created May 29, 2014 01:55
quick and dirty bittrex client in ruby that spits market data to graphite
require 'rubygems'
require 'faraday'
require 'oj'
require 'openssl'
require 'base64'
require 'digest/md5'
require 'ostruct'
require 'pry'
API_HOST = 'https://bittrex.com'
@spikegrobstein
spikegrobstein / plex_data_to_graphite.rb
Created May 6, 2014 03:04
graph who is streaming plex to graphite
#! /usr/bin/env ruby
require 'nokogiri'
require 'faraday'
host = 'http://plex.example.com:32400'
uri = '/status/sessions'
f = Faraday.new( host )
@spikegrobstein
spikegrobstein / gist:8147858
Created December 27, 2013 14:44
vim 7.4 configure options for redhat-based guest machines.
./configure --prefix=$HOME/.local --enable-rubyinterp=yes --with-features=big
@spikegrobstein
spikegrobstein / mcwrapper.conf
Created August 27, 2013 12:10
Getting mcwrapper working with Docker (docker.io)
# Example configuration for mcwrapper: mcwrapper.conf
# this file can live in any of the following places (in order of priority):
# - the value of MCWRAPPER_CONFIG_PATH env variable
# - the current working directory as "mcwrapper.conf"
# - ~/.mcwrapper.conf
# - /etc/mcwrapper.conf
#
# Configuration is actual Bash. You can use conditionals... not that you would.
. "/root/minecraft/minecraft-docker"
@spikegrobstein
spikegrobstein / inputrc
Created August 25, 2013 15:00
put this in `~/.inputrc` for a good time.
"\e[A": history-search-backward
"\e[B": history-search-forward
$if Bash
Space: magic-space
$endif
"\M-o": "\C-p\C-a\M-f "
set visible-stats on
set show-all-if-ambiguous on
"\M-s": menu-complete
defmodule Math do
def pow( num, power ) do
_pow num, power, 1
end
def _pow( num, 0, acc ) do
acc
end
@spikegrobstein
spikegrobstein / message_bus.ex
Last active December 20, 2015 03:59
first blush at elixir
defmodule MessageBus do
# call any function that matches the listener
# type is atom (eg: :hello)
# message is string
# listeners is list of tuples of functions
# [ hello: fn(m) -> IO.puts m end, bye: fn(m) -> IO.puts m end, hello: fn(m) -> IO.puts "I will also do this crap" end ]""]
def publish(type, message, listeners) do
_publish(type, message, listeners)
end
@spikegrobstein
spikegrobstein / gist:6067611
Created July 24, 2013 02:10
how to add a submodule to vim
git submodule add -b master https://github.com/elixir-lang/vim-elixir.git bundle/vim-elixir
@spikegrobstein
spikegrobstein / Gemfile
Created June 19, 2013 10:36
example of my concept implementation degrawlixer for teamonetickets. basic
source 'https://rubygems.org'
gem 'rspec'
gem 'pry'