I hereby claim:
- I am jesseops on github.
- I am jesseops (https://keybase.io/jesseops) on keybase.
- I have a public key whose fingerprint is FAF3 1254 C227 178A BD29 B6A9 4167 3EF8 F5D2 AA8B
To claim this, I am signing this object:
// For all the confusing Prometheus configuration and | |
// regular expressions, | |
// explained in examples. | |
// Remember, there are default values for each item if it's missing. | |
// regex is (.*), | |
// replacement is $1, | |
// separator is ; | |
// ,and action is replace |
""" | |
Monkey-Patch Requests for automatic timeouts and retries | |
Retries for rrDNS, timeouts because you should always do timeouts. | |
If you want these features, just do ```from $MYPACKAGE.requests import requests```. | |
""""" | |
import requests |
#!/bin/bash | |
DIR=/home/jesse/Pictures/.wallpaper | |
feh --bg-scale `shuf -n1 -e $DIR/*` |
I hereby claim:
To claim this, I am signing this object:
import yact | |
from flask import Flask, Config, jsonify | |
# Build custom configuration object | |
class YactConfig(Config): | |
""" | |
Customized config object | |
Extends Flask config to support YAML via YACT | |
""" |
from __future__ import print_function # I wrote this in py2, but wanted py3 compatibility | |
from time import sleep | |
from datetime import datetime, timedelta | |
class TrippedBreaker(Exception): | |
pass | |
class CircuitBreaker(object): |
import blinker | |
import threading | |
from time import sleep | |
# Create a blinker | |
shutdown = blinker.signal('shutdown', doc="you should shutdown when this signal is triggered") | |
#!/bin/bash | |
error() { | |
printf '\E[31m'; echo "$@"; printf '\E[0m' | |
} | |
info() { | |
printf '\E[32m'; echo "$@"; printf '\E[0m' | |
} |