DevOps Engineer at Smile Ukraine
# %%
"""Creating a class for keeping track of knowledge."""
import json
from dataclasses import asdict, make_dataclass
from rich import print
person = make_dataclass(
"Person",
[
("nick", str),
("name", str),
("pipelines", list[str]),
("web_services", list[str]),
("languages", list[str]),
("databases", list[str]),
("misc", list[str]),
("ongoing", list[str]),
],
namespace={"to_json": lambda self: json.dumps(asdict(self), indent=4)},
)
# %%
# @title Initializing classes and creating lists
if __name__ == "__main__":
pipelines = ['GitLab Ci', 'GitHub Actions', 'AWS CodePipeline', 'Jenkins']
web_services = ['nginx', 'apache', 'varnish', 'fastly', 'elastic', 'solr']
languages = ['YAML', 'Bash', 'Python', 'JS', 'Web']
databases = ['SQLite', 'PostgreSQL', 'Percona', 'DynamoDB', 'Redis']
misc = ['Ansible', 'Linux', 'LXC', 'Docker', 'Terraform', 'AWS']
ongoing = ['LPIC', 'Full Stack Web', 'AWS']
me = person('@Searge', 'Sergij Boremchuk',
pipelines, web_services, languages, databases, misc, ongoing)
print(me.to_json())
# %%
Thanks @rednafi for idea of script π
I'm an Early π€
π Morning 1711 commits βββββββββββββββββββββββββ 25.36 %
π Daytime 2854 commits βββββββββββββββββββββββββ 42.30 %
π Evening 1924 commits βββββββββββββββββββββββββ 28.52 %
π Night 258 commits βββββββββββββββββββββββββ 03.82 %
π This Week I Spent My Time On
ποΈ Time Zone: Europe/Kyiv
π¬ Programming Languages:
sh 9 hrs 32 mins βββββββββββββββββββββββββ 58.81 %
Markdown 1 hr 25 mins βββββββββββββββββββββββββ 08.80 %
Go 1 hr 21 mins βββββββββββββββββββββββββ 08.37 %
JSON 54 mins βββββββββββββββββββββββββ 05.57 %
YAML 51 mins βββββββββββββββββββββββββ 05.29 %
π₯ Editors:
Zsh 9 hrs 32 mins βββββββββββββββββββββββββ 58.81 %
VS Code 5 hrs 8 mins βββββββββββββββββββββββββ 31.71 %
Obsidian 1 hr 18 mins βββββββββββββββββββββββββ 08.11 %
Vim 13 mins βββββββββββββββββββββββββ 01.37 %
π» Operating System:
Linux 16 hrs 12 mins βββββββββββββββββββββββββ 100.00 %
Last Updated on 29/12/2024 00:47:26 UTC