This file contains 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
"""Extensions for the Typer CLI.""" | |
from typing import Optional | |
import typer | |
def command_category(command_category: str): | |
"""Modify the docstring of a function to mark it as a test command. |
This file contains 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
"""Code for continous termination of IT processes. | |
Designed for processes that are automatically uploaded to | |
a MacOS computer by means of serial number. | |
""" | |
import psutil | |
import time | |
import re | |
import datetime as dt |
This file contains 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
// --------------------------------------------- | |
// --- DEBUG | |
// --------------------------------------------- | |
var debug = true | |
var global_name_loadout | |
?debug | |
>`0,0,Loadout.....: @global_name_loadout@ | |
>`0,1,Foe.........: @foe.name@ |
This file contains 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
# See this wiki page for more info: | |
# https://github.com/dylanaraps/neofetch/wiki/Customizing-Info | |
print_info() { | |
info title | |
info underline | |
info "OS............" distro | |
info "Host.........." model | |
info "Kernel........" kernel | |
info "Uptime........" uptime |
This file contains 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
"""Get all combinations of values of a dictionary and return a list of dictionaries""" | |
import itertools | |
d = {1: [1, 2, 3, 4], 2: [5, 6], 3: [7]} | |
final = [ | |
{k: v for k, v in zip(sorted(d.keys()), list_prod_value)} | |
for list_prod_value in itertools.product(*(d[k] for k in sorted(d.keys()))) | |
] |