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 1866 commits βββββββββββββββββββββββββ 25.97 %
π Daytime 3027 commits βββββββββββββββββββββββββ 42.14 %
π Evening 2034 commits βββββββββββββββββββββββββ 28.31 %
π Night 257 commits βββββββββββββββββββββββββ 03.58 %
π This Week I Spent My Time On
ποΈ Time Zone: Europe/Kyiv
π¬ Programming Languages:
sh 8 hrs 59 mins βββββββββββββββββββββββββ 34.89 %
YAML 4 hrs 36 mins βββββββββββββββββββββββββ 17.89 %
Terraform 4 hrs 34 mins βββββββββββββββββββββββββ 17.77 %
JSON 2 hrs 38 mins βββββββββββββββββββββββββ 10.23 %
Bash 1 hr 48 mins βββββββββββββββββββββββββ 07.02 %
π₯ Editors:
VS Code 16 hrs 6 mins βββββββββββββββββββββββββ 62.52 %
Zsh 8 hrs 59 mins βββββββββββββββββββββββββ 34.89 %
Obsidian 25 mins βββββββββββββββββββββββββ 01.64 %
Sublime Text 13 mins βββββββββββββββββββββββββ 00.87 %
Vim 1 min βββββββββββββββββββββββββ 00.09 %
π» Operating System:
Linux 25 hrs 45 mins βββββββββββββββββββββββββ 100.00 %
Last Updated on 04/05/2025 00:07:34 UTC