This is used for server config notes. see http://wiki.whf.app/display/IT/nurmengard1+Server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set :application, "quibbler" | |
set :repository, "[email protected]: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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// | |
// 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
################################################################################ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This is what we did to setup a few dashboards at platanus
- Raspberry Pi
- Dashing Service
- Wifi stick (optional)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# See http://www.erebusbat.com/2015/08/tmux-login-wrapper-script/ | |
# Inspired by https://github.com/nicknisi/dotfiles | |
# abort if we're already inside a TMUX session | |
[ "$TMUX" == "" ] || exit 0 | |
export SHELL=/usr/local/bin/zsh | |
export TERM=xterm-256color | |
export PATH=/usr/local/bin:$PATH | |
export COLUMNS=1 |
OlderNewer