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 1720 commits βββββββββββββββββββββββββ 25.50 %
π Daytime 2851 commits βββββββββββββββββββββββββ 42.26 %
π Evening 1917 commits βββββββββββββββββββββββββ 28.42 %
π Night 258 commits βββββββββββββββββββββββββ 03.82 %
π This Week I Spent My Time On
ποΈ Time Zone: Europe/Kyiv
π¬ Programming Languages:
sh 12 hrs 34 mins βββββββββββββββββββββββββ 63.71 %
YAML 2 hrs 15 mins βββββββββββββββββββββββββ 11.48 %
Markdown 1 hr 49 mins βββββββββββββββββββββββββ 09.28 %
CSS 58 mins βββββββββββββββββββββββββ 04.92 %
Other 49 mins βββββββββββββββββββββββββ 04.16 %
π₯ Editors:
Zsh 12 hrs 34 mins βββββββββββββββββββββββββ 63.71 %
VS Code 5 hrs 26 mins βββββββββββββββββββββββββ 27.55 %
Obsidian 1 hr 37 mins βββββββββββββββββββββββββ 08.25 %
Vim 5 mins βββββββββββββββββββββββββ 00.49 %
π» Operating System:
Linux 19 hrs 44 mins βββββββββββββββββββββββββ 100.00 %
Last Updated on 19/01/2025 05:53:37 UTC