This file contains hidden or 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 | |
| """Hourly (com.polari.engagement-watch.plist): what moved since last hour on Reddit, Bluesky, the App Store reviews feed and | |
| Polari's own server (sign-ups, suggestions, ratings); any change goes to Bogdan as one iMessage (handle in ~/.polari-review-to, | |
| kept out of git). Public endpoints only, no logins; Instagram has none, so it isn't here. First run only records the state. | |
| Reddit rate-limits anonymous reads (429): that source is then skipped for the hour, the others still report.""" | |
| import json, os, re, subprocess, sys, urllib.request, xml.etree.ElementTree as ET | |
| from datetime import datetime | |
| STATE = os.path.expanduser("~/.polari-engagement-state") | |
| TO = os.path.expanduser("~/.polari-review-to") |
This file contains hidden or 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
| [Unit] | |
| Description=Network fabric for containers | |
| Documentation=https://github.com/coreos/flannel | |
| Before=docker.service | |
| After=network-online.target | |
| [Service] | |
| Type=notify | |
| Restart=always | |
| RestartSec=5 |
This file contains hidden or 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
| $:.unshift File.join(File.dirname(__FILE__),'..','lib') | |
| require 'net/https' | |
| require 'json' | |
| require 'open-uri' | |
| module APIG | |
| SEVERITY_TO_STATUS = { | |
| 1 => {'status' => 'critical', 'message' => 'Severity 1 issue. Look into it asap!'}, | |
| 2 => {'status' => 'warning', 'message' => 'Severity 2 issue.'}, | |
| 3 => {'status' => 'warning', 'message' => 'Severity 3 issue.'} |
This file contains hidden or 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
| $:.unshift File.join(File.dirname(__FILE__),'..','lib') | |
| require 'Dashing/Jenkins' | |
| require 'rubygems' | |
| require 'net/https' | |
| require 'json' | |
| require 'open-uri' | |
| module APIG | |
| SEVERITY_TO_STATUS = { | |
| 1 => {'status' => 'critical', 'message' => 'Severity 1 issue. Look into it asap!'}, |