Skip to content

Instantly share code, notes, and snippets.

View ErebusBat's full-sized avatar

Andrew Burns ErebusBat

  • Traction Guest
  • Casper, WY
View GitHub Profile
@ErebusBat
ErebusBat / README.md
Last active August 25, 2015 22:23 — forked from blackjid/README.md
How configure your raspberry pi with dashing to have a awesome dashboard

Raspberry pi dashboard

This is what we did to setup a few dashboards at platanus

You'll need

  • Raspberry Pi
  • Dashing Service
  • Wifi stick (optional)
@ErebusBat
ErebusBat / ytcenter-check.go
Last active August 29, 2015 14:10
YouTubeCenter Version Checker
///
// YouTube Center Checker
//
// A very messy golang script to download the chrome manifest from the
// YouTubeCenter (https://github.com/YePpHa/YouTubeCenter) repo and display it
//
// This is more of a learning exercise than a useful utility.
package main
@ErebusBat
ErebusBat / ytcurl
Created March 19, 2015 15:52
ytcurl - youtuble-dl wrapper script
#!/usr/bin/env zsh
set -e
# set -x # trace
################################################################################
# ytcurl - youtuble-dl wrapper script
#
# This is a simple wrapper script that I throw in my path to aid in downloading
# stuff from youtube on the fly. I threw it together very quick one day so it
# will probably not be exactly what you need, but it is here for reference
################################################################################
@ErebusBat
ErebusBat / output.txt
Created August 14, 2015 18:59
SaltStack ssh_auth_sources - TypeError: coercing to Unicode: need string or buffer, bool found
minion2:
----------
file_|-users_/etc/sudoers.d/whfit_|-/etc/sudoers.d/whfit_|-absent:
----------
__run_num__:
7
changes:
----------
comment:
File /etc/sudoers.d/whfit is not present
@ErebusBat
ErebusBat / gist:876122
Created March 18, 2011 14:07
Section of rails application template that is causing issues.
# For ideas, see: https://github.com/madebydna/rails-templater
# Create GIT repository
git :init
append_file '.gitignore', '.idea/' #RubyMine files
#git :add => '.'
git :commit => '-a -m "New rails from template"'
# gems
gem 'haml', '>= 3.0.25'
@ErebusBat
ErebusBat / deploy.rb
Created November 18, 2011 06:01
Unicorn / rvm /capistrano
set :application, "quibbler"
set :repository, "git@tuxbox.whf.app:quibbler.git"
set :scm, :git
set :branch, 'cap'
ssh_options[:forward_agent] = true
set :deploy_via, :remote_cache
#set :git_enable_submodules, 1
set :user, 'root'
#default_run_options[:pty] = true
#!/usr/bin/env ruby
def method2
1/0
end
def method1(bare)
begin
method2
rescue Exception => e
@ErebusBat
ErebusBat / README.md
Last active November 12, 2015 14:56
Shell script to remove remote branches that have been merged upstream

Git Remove Merged Branches

Use this shell function to remove local git branches that have been merged in your origin repo (say from a GH PR).

Example

$ git_rm_merged_branches
The following branches have been merged and can be removed:
  circleci-tests
  curated-comments
@ErebusBat
ErebusBat / _balancer.py
Last active December 16, 2015 15:09 — forked from prof7bit/.gitignore
"""
The portfolio rebalancing bot will buy and sell to maintain a
constant asset allocation ratio of exactly 50/50 = fiat/BTC
"""
import strategy
import goxapi
DISTANCE = 7 # percent price distance of next rebalancing orders
MARKER = 7 # lowest digit of price to identify bot's own orders
@ErebusBat
ErebusBat / _boxcar.py
Created April 26, 2013 14:45
Simple Boxcar.io notifier strategy for goxtool
import urllib.request, urllib.error, urllib.parse
import platform
import sys
import configparser
import os
from optparse import OptionParser
from time import time
def notify(username, password, sender, message):
url = 'https://boxcar.io/notifications'