- Version: 1.1
- Date: September 2025
- Author: Perf/Scale DevOps Team
- Status: Draft
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 | |
| import yaml | |
| import urllib3 | |
| import os | |
| from dotenv import load_dotenv | |
| from quads_lib import QuadsApi | |
| load_dotenv() |
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 | |
| import re | |
| from quads.quads_api import QuadsApi | |
| from quads.config import Config | |
| quads = QuadsApi(Config) | |
| hosts = quads.get_hosts() | |
| pattern = r"^(?P<rack>[^-]+)-(?P<uloc>[^-]+)-(?P<blade>[^-]+)-(?P<host_type>[^.]+)\.(?P<domain>.+)$" |
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 | |
| import asyncio | |
| from datetime import date, datetime | |
| from quads.config import conf | |
| from quads.model import Cloud, CloudHistory, Schedule | |
| from quads.tools.jira import Jira | |
| async def main(loop): |
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 | |
| """ | |
| check the timezone difference to PST | |
| """ | |
| from datetime import datetime, timedelta | |
| YOUR_DELTA = "8" | |
| D = datetime.today() - timedelta(hours=int(YOUR_DELTA), minutes=00) | |
| D.strftime('%H:%M %p') | |
| print(D) |
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
| (root@quads) - (20:16) - (~) | |
| -=>>python -m cProfile /opt/quads/bin/quads-cli --full-summary | |
| cloud01: 0 (Initializing cloud) | |
| cloud02: 20 (Real Shift on stack) | |
| cloud03: 0 (Initializing cloud) | |
| cloud04: 0 (Initializing cloud) | |
| cloud05: 0 (Initializing cloud) | |
| cloud06: 0 (Initializing cloud) | |
| cloud07: 0 (Initializing cloud) | |
| cloud08: 0 (Initializing cloud) |
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
| #!/bin/bash | |
| # | |
| # modified from: https://gist.github.com/ksylvan/b818b505cd02c5268af95d9386438571 | |
| # After you start your Pi-Hole in a Docker container according | |
| # to this: https://github.com/diginc/docker-pi-hole | |
| # | |
| # https://hobo.house/2018/02/27/block-advertising-with-pi-hole-and-raspberry-pi/ | |
| # | |
| # Once this is running, you can visit http://localhost/admin and set the DNS | |
| # settings to CloudFlare's 1.1.1.1 servers. |
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
| ###################################################################### | |
| # thinkfan 0.7 example config file | |
| # ================================ | |
| # | |
| # ATTENTION: There is only very basic sanity checking on the configuration. | |
| # That means you can set your temperature limits as insane as you like. You | |
| # can do anything stupid, e.g. turn off your fan when your CPU reaches 70°C. | |
| # | |
| # That's why this program is called THINKfan: You gotta think for yourself. | |
| # |
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
| # A xterm-256color based TERMINFO that adds the escape sequences for italic. | |
| # | |
| # Install: | |
| # | |
| # tic xterm-256color-italic.terminfo | |
| # | |
| # Usage: | |
| # | |
| # export TERM=xterm-256color-italic | |
| # |
NewerOlder