This is used for server config notes. see http://wiki.whf.app/display/IT/nurmengard1+Server
This file contains 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
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' }, | |
}), |
This file contains 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
@font-face { | |
font-family: "Monaspace Argon"; | |
font-style: normal; | |
font-weight: normal; | |
src: local('Monaspace Argon Regular'); | |
} |
This file contains 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
@font-face { | |
font-family: "Comic Code"; | |
font-style: normal; | |
font-weight: normal; | |
src: local('Comic Code'); | |
} |
This file contains 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 |
This file contains 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
<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"> |
This file contains 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 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 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 ruby | |
def method2 | |
1/0 | |
end | |
def method1(bare) | |
begin | |
method2 | |
rescue Exception => e |
NewerOlder