This is what we did to setup a few dashboards at platanus
- Raspberry Pi
- Dashing Service
- Wifi stick (optional)
This is what we did to setup a few dashboards at platanus
/// | |
// 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 |
#!/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 | |
################################################################################ |
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 |
# 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' |
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 |
""" | |
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 |
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' |