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 1747 commits βββββββββββββββββββββββββ 25.60 %
π Daytime 2879 commits βββββββββββββββββββββββββ 42.20 %
π Evening 1939 commits βββββββββββββββββββββββββ 28.42 %
π Night 258 commits βββββββββββββββββββββββββ 03.78 %
π This Week I Spent My Time On
ποΈ Time Zone: Europe/Kyiv
π¬ Programming Languages:
sh 5 hrs 1 min βββββββββββββββββββββββββ 55.67 %
Other 1 hr 49 mins βββββββββββββββββββββββββ 20.15 %
YAML 1 hr 8 mins βββββββββββββββββββββββββ 12.72 %
Markdown 52 mins βββββββββββββββββββββββββ 09.61 %
Git Config 5 mins βββββββββββββββββββββββββ 01.05 %
π₯ Editors:
Zsh 5 hrs 1 min βββββββββββββββββββββββββ 55.67 %
VS Code 3 hrs 11 mins βββββββββββββββββββββββββ 35.31 %
Obsidian 48 mins βββββββββββββββββββββββββ 09.01 %
π» Operating System:
Linux 7 hrs 14 mins βββββββββββββββββββββββββ 80.19 %
Windows 1 hr 47 mins βββββββββββββββββββββββββ 19.81 %
Last Updated on 12/01/2025 00:44:35 UTC