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 | |
| """ | |
| Manages quality definitions and profile assignments in Radarr and Sonarr. | |
| Usage: | |
| python3 set-quality-limits.py # set size limits | |
| python3 set-quality-limits.py --dry-run # preview size limit changes | |
| python3 set-quality-limits.py --assign-profile Any # assign profile to all content | |
| python3 set-quality-limits.py --check-scores Any # verify custom format scores in a profile | |
| python3 set-quality-limits.py --refresh # trigger Refresh & Scan for all content |
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
| import xml.etree.ElementTree as ET | |
| import logging | |
| import re | |
| import json | |
| import csv | |
| from dateutil import parser as date_parser | |
| from datetime import datetime | |
| def extract_body_weight_records(xml_path): | |
| weights = {} |
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
| // Lifted partially from https://gist.github.com/orion-v/95cb48fa73808cdc5c589fe415cc65f1 | |
| // and https://github.com/vegeta897/snow-stamp/blob/main/src/convert.js#L2 | |
| const DISCORD_EPOCH = 1420070400000 | |
| function dateToPostId(date) { | |
| return (date - DISCORD_EPOCH) * 4194304 | |
| //return new Date(snowflake / 4194304 + epoch) | |
| } |
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
| # Jimb - Havoc - 2020-04-16 13:01 - US/Doomhammer | |
| # SimC Addon 1.12.5 | |
| # Requires SimulationCraft 820-01 or newer | |
| demonhunter="Jimb" | |
| level=120 | |
| race=night_elf | |
| region=us | |
| server=doomhammer | |
| role=attack |
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
| # Cellen - Retribution - 2020-04-02 10:17 - US/Doomhammer | |
| # SimC Addon 1.12.5 | |
| # Requires SimulationCraft 820-01 or newer | |
| paladin="Cellen" | |
| level=120 | |
| race=human | |
| region=us | |
| server=doomhammer | |
| role=attack |
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
| # Khalshazar - Assassination - 2020-06-16 15:56 - US/Doomhammer | |
| # SimC Addon 1.12.5 | |
| # Requires SimulationCraft 820-01 or newer | |
| rogue="Khalshazar" | |
| level=120 | |
| race=dark_iron_dwarf | |
| region=us | |
| server=doomhammer | |
| role=attack |
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 python | |
| """Simple HTTP Server With Upload. | |
| This module builds on BaseHTTPServer by implementing the standard GET | |
| and HEAD requests in a fairly straightforward manner. | |
| """ |
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
| evan@lunix /hass/config % grep Node006 OZW_Log.txt | |
| 2018-02-26 10:59:17.849 Detail, Node006, Received: 0x01, 0x18, 0x00, 0x04, 0x00, 0x06, 0x12, 0x32, 0x02, 0xa1, 0x6c, 0x00, 0x00, 0x00, 0x41, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x4b | |
| 2018-02-26 11:49:24.528 Detail, Node006, Received: 0x01, 0x18, 0x00, 0x04, 0x00, 0x06, 0x12, 0x32, 0x02, 0xa1, 0x6c, 0x00, 0x00, 0x00, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x4e | |
| 2018-03-01 19:02:28.974 Info, Node006, Network Key Not Set - Secure Option is not required | |
| 2018-03-01 19:02:28.976 Info, Node006, Basic device class (0x04) - Routing Slave | |
| 2018-03-01 19:02:28.976 Info, Node006, Generic device Class (0x10) - Binary Switch | |
| 2018-03-01 19:02:28.976 Info, Node006, Specific device class (0x01) - Binary Power Switch | |
| 2018-03-01 19:02:28.976 Info, Node006, COMMAND_CLASS_BASIC will be mapped to COMMAND_CLASS_SWITCH_BINARY | |
| 2018-03-01 19:02:28.976 Info, Node006, Mandatory Command Classes for Node 6: | |
| 2018-03-01 19: |
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
| import json | |
| import sys | |
| with open(sys.argv[1],"r") as myfile: | |
| data=myfile.read() | |
| myjson = { "filename": sys.argv[1], "contents": data } | |
| print json.dumps(myjson, indent=2) |
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
| !function(){"use strict";function e(e,t){function n(s,i,r){var o=new WebSocket(e),a=!1,d=function(){if(a)r(u);else if(0!==s){var e=-1===s?-1:s-1;setTimeout(function(){return n(e,i,r)},1e3)}else r(c)},f=function(e){switch(JSON.parse(e.data).type){case"auth_required":"authToken"in t?o.send(JSON.stringify(function(e){return{type:"auth",api_password:e}}(t.authToken))):(a=!0,o.close());break;case"auth_invalid":a=!0,o.close();break;case"auth_ok":o.removeEventListener("message",f),o.removeEventListener("close",d),i(o)}};o.addEventListener("message",f),o.addEventListener("close",d)}return new Promise(function(e,s){return n(t.setupRetry||0,e,s)})}function t(e){return e.result}function n(t,n){return void 0===n&&(n={}),e(t,n).then(function(e){var s=new a(t,n);return s.setSocket(e),s})}function s(e,t){return e._subscribeConfig?e._subscribeConfig(t):new Promise(function(n,s){var i=null,r=null,o=[],c=null;t&&o.push(t);var u=function(e){i=Object.assign({},i,e);for(var t=0;t<o.length;t++)o[t](i)},a=function(e,t){return u({se |
NewerOlder