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 / wezterm.lua
Last active March 20, 2024 19:21
WezTerm - Monaspace /w Ligatures and Comments
return {
font = wezterm.font({
-- family='Monaspace Neon',
family='Monaspace Argon',
-- family='Monaspace Xenon',
-- family='Monaspace Radon',
-- family='Monaspace Krypton',
weight='Regular',
harfbuzz_features={ 'calt', 'liga', 'dlig', 'ss01', 'ss02', 'ss03', 'ss04', 'ss05', 'ss06', 'ss07', 'ss08' },
}),
@ErebusBat
ErebusBat / monaspace_argon.css
Last active November 10, 2023 17:40
Blink.sh - Monaspace
@font-face {
font-family: "Monaspace Argon";
font-style: normal;
font-weight: normal;
src: local('Monaspace Argon Regular');
}
@ErebusBat
ErebusBat / comic_code.css
Last active May 5, 2022 23:51
Blink.sh - Comic Code Ligatures
@font-face {
font-family: "Comic Code";
font-style: normal;
font-weight: normal;
src: local('Comic Code');
}
@ErebusBat
ErebusBat / tmlogin
Last active December 28, 2021 11:33
tmux login shell script.
#!/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
@ErebusBat
ErebusBat / README.md
Created August 18, 2011 20:31
Ubuntu Lucid Rails Server Configs
@ErebusBat
ErebusBat / zwcfg.xml
Created January 16, 2018 13:24
Hass.io OZW Node Configuration for Leviton Decora DZ6HD Dimmer
<Node id="23" name="Front Room" location="" basic="4" generic="17" specific="1" roletype="5" devicetype="1536" nodetype="0" type="Multilevel Power Switch" listening="true" frequentListening="false" beaming="true" routing="true" max_baud_rate="40000" version="4" query_stage="Complete">
<Manufacturer id="1d" name="Leviton">
<Product type="3201" id="0001" name="DZ6HD: type=3201, id=0001" />
</Manufacturer>
<CommandClasses>
<CommandClass id="32" name="COMMAND_CLASS_BASIC" version="1" request_flags="4" innif="true" mapping="38">
<Instance index="1" />
</CommandClass>
<CommandClass id="38" name="COMMAND_CLASS_SWITCH_MULTILEVEL" version="4" innif="true">
@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'
@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 / 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
#!/usr/bin/env ruby
def method2
1/0
end
def method1(bare)
begin
method2
rescue Exception => e