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
pat="$(git config hooks.nocommitregex)" | |
if ( git diff | perl -ne "\$f=\$1 if m{^--- a/(.*)}; print \"--- \$f\n\$_\" if /$pat/" | grep . ); then | |
echo "Error: remove lines above before committing" | |
exit 1 | |
fi |
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
### Keybase proof | |
I hereby claim: | |
* I am earonesty on github. | |
* I am earonesty (https://keybase.io/earonesty) on keybase. | |
* I have a public key whose fingerprint is C28A 80B6 6C6B FD29 A470 4EAF 115D 7AD7 B499 7055 | |
To claim this, I am signing this object: |
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
Verifying that +earonesty is my blockchain ID. https://onename.com/earonesty |
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
<html> | |
<!-- (c) Copyright 2013, Erik Aronesty, All Rights Reserved (erik at q32.com) --> | |
<head> | |
<link rel="shortcut icon" href="/favicon.ico" /> | |
<script src="/pouch.js"></script> |
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
<html> | |
<div id="divWidgetAreaPrice" style="width:30% !important; height:130px !important;"><script>var typeChart='price'; | |
var w_baseCurrency = new Array(); var w_targetCurrency = new Array(); w_baseCurrency[0]="BTC"; w_targetCurrency[0]="USD"; var widgetStyle={}; | |
widgetStyle["bgColor"]="#FFFFFF"; | |
widgetStyle["backgroundColor"]="#FFFFFF"; | |
widgetStyle["bgTransparent"]="solid"; | |
widgetStyle["fontSize"]="16px"; | |
widgetStyle["fontFamily"]="Arial"; | |
widgetStyle["fontColor"]="#000000"; | |
widgetStyle["borderWidth"]="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
import inspect, os, ctypes | |
class dicttemp: | |
def __init__(self, obj, changes): | |
self.obj = obj | |
self.save = {} | |
for var, val in changes.items(): | |
if var in obj: | |
self.save[var] = obj[var] | |
else: |
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/env python3.6 | |
import os, sys, json | |
from argparse import ArgumentParser | |
def main(): | |
parser = ArgumentParser(description='Python template expander. \ | |
Make a template with a format string syntax and environment vars, arguments and config file vars are expanded.') |
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 python3 | |
from pssh.pssh_client import ParallelSSHClient | |
import pssh.utils | |
pssh.utils.enable_host_logger() | |
import os, sys, re, stat, tempfile, subprocess | |
import logging |
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
apt-get update | |
apt-get upgrade | |
apt-get -y install git | |
apt-get -y install build-essential libtool autotools-dev autoconf pkg-config libssl-dev | |
apt-get -y install libboost-all-dev | |
apt-get -y install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler | |
apt-get -y install libqrencode-dev | |
apt-get -y install libminiupnpc-dev | |
apt-get -y install libevent-dev |
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
export PROMPT_COMMAND='if [ "$(id -u)" -ne 0 ]; then echo "$(date "+%Y-%m-%d.%H:%M:%S") $(pwd) $(history 1)" >> ~/.bash.log; fi' | |
function hh() { | |
grep "$1" ~/.bash.log | |
} | |
OlderNewer