I hereby claim:
- I am floatingatoll on github.
- I am floatingatoll (https://keybase.io/floatingatoll) on keybase.
- I have a public key whose fingerprint is 4D7C 0A55 B791 A199 4E74 2297 BA2B C3D8 0DAB E324
To claim this, I am signing this object:
#!/usr/bin/python | |
# ***** BEGIN LICENSE BLOCK ***** | |
# Version: MPL 1.1/GPL 2.0/LGPL 2.1 | |
# | |
# The contents of this file are subject to the Mozilla Public License Version | |
# 1.1 (the "License"); you may not use this file except in compliance with | |
# the License. You may obtain a copy of the License at | |
# http://www.mozilla.org/MPL/ | |
# |
HTTP/1.1 500 Backend Servers Unavailable | |
Content-Type: text/html | |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"> | |
<title>Service Unavailable</title> | |
<style type="text/css"> | |
body, p, h1 { |
seconds_to_human_time () { | |
local result= sign= suffix= seconds= | |
# Precisely one argument. | |
if [[ ${#@} != 1 ]] || [[ -z $1 ]]; then | |
echo 'Usage: result=$( seconds_to_human_time $SECONDS )' 1>&2 | |
exit 1 | |
fi | |
# Record whether it's positive or negative, choosing the right suffix. |
I hereby claim:
To claim this, I am signing this object:
class mig::agent { | |
case $::operatingsystem { | |
'CentOS', 'RedHat': { | |
package { | |
'mig-agent': | |
ensure => latest, | |
} | |
} | |
'Ubuntu': { | |
package { |
#!/bin/bash | |
API_KEY='Authorization: Bearer API_KEY_RETRIEVED_USING_PIN_CODE' | |
API_URL='https://developer-api.nest.com' | |
TS_ID='curl_/devices_to_get_this_hash' | |
TS="devices/thermostats/${TS_ID}" | |
MIN_TEMP=70 | |
THRESHOLD=2 |
#!/usr/bin/env python | |
import nntplib | |
import re | |
import sys | |
usage = """./nntp-stats [nntp-group-name]""" | |
if len(sys.argv) < 2: | |
print usage |
Index: hiera.yaml | |
=================================================================== | |
--- hiera.yaml (revision 121269) | |
+++ hiera.yaml (working copy) | |
@@ -2,16 +2,16 @@ | |
:backends: | |
- yaml | |
:yaml: | |
- :datadir: /etc/puppet/hiera | |
+ :datadir: /etc/puppet |
Index: hiera.yaml | |
=================================================================== | |
--- hiera.yaml (revision 121269) | |
+++ hiera.yaml (working copy) | |
@@ -2,16 +2,16 @@ | |
:backends: | |
- yaml | |
:yaml: | |
- :datadir: /etc/puppet/hiera | |
+ :datadir: /etc/puppet |
--- feedparser-5.2.1/feedparser/feedparser.py 2015-07-23 22:00:04.000000000 -0700 | |
+++ feedparser.py.new 2017-02-14 15:31:11.000000000 -0800 | |
@@ -2910,7 +2910,10 @@ | |
return url | |
def _build_urllib2_request(url, agent, etag, modified, referrer, auth, request_headers): | |
+ _save_socket_timeout = socket.getdefaulttimeout() | |
+ socket.setdefaulttimeout(2.0) | |
request = urllib2.Request(url) | |
+ socket.setdefaulttimeout(_save_socket_timeout) |