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 1704 commits βββββββββββββββββββββββββ 25.35 %
π Daytime 2847 commits βββββββββββββββββββββββββ 42.35 %
π Evening 1914 commits βββββββββββββββββββββββββ 28.47 %
π Night 257 commits βββββββββββββββββββββββββ 03.82 %
π This Week I Spent My Time On
ποΈ Time Zone: Europe/Kyiv
π¬ Programming Languages:
sh 6 hrs 40 mins βββββββββββββββββββββββββ 42.61 %
Markdown 4 hrs 4 mins βββββββββββββββββββββββββ 26.07 %
Go 1 hr 23 mins βββββββββββββββββββββββββ 08.91 %
YAML 1 hr 13 mins βββββββββββββββββββββββββ 07.77 %
Emacs Lisp 32 mins βββββββββββββββββββββββββ 03.49 %
π₯ Editors:
VS Code 7 hrs 32 mins βββββββββββββββββββββββββ 48.15 %
Zsh 6 hrs 40 mins βββββββββββββββββββββββββ 42.61 %
Obsidian 1 hr 18 mins βββββββββββββββββββββββββ 08.35 %
Vim 6 mins βββββββββββββββββββββββββ 00.70 %
Cursor 1 min βββββββββββββββββββββββββ 00.18 %
π» Operating System:
Linux 15 hrs 39 mins βββββββββββββββββββββββββ 100.00 %
Last Updated on 22/12/2024 00:50:28 UTC