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 1743 commits βββββββββββββββββββββββββ 25.75 %
π Daytime 2853 commits βββββββββββββββββββββββββ 42.14 %
π Evening 1915 commits βββββββββββββββββββββββββ 28.29 %
π Night 259 commits βββββββββββββββββββββββββ 03.83 %
π This Week I Spent My Time On
ποΈ Time Zone: Europe/Kyiv
π¬ Programming Languages:
Markdown 1 hr 48 mins βββββββββββββββββββββββββ 32.57 %
sh 1 hr 43 mins βββββββββββββββββββββββββ 30.81 %
YAML 53 mins βββββββββββββββββββββββββ 15.93 %
Python 52 mins βββββββββββββββββββββββββ 15.65 %
TOML 5 mins βββββββββββββββββββββββββ 01.74 %
π₯ Editors:
VS Code 1 hr 53 mins βββββββββββββββββββββββββ 34.02 %
Zsh 1 hr 43 mins βββββββββββββββββββββββββ 30.81 %
Obsidian 1 hr 13 mins βββββββββββββββββββββββββ 21.87 %
Cursor 43 mins βββββββββββββββββββββββββ 12.95 %
Vim 1 min βββββββββββββββββββββββββ 00.35 %
π» Operating System:
Linux 5 hrs 34 mins βββββββββββββββββββββββββ 100.00 %
Last Updated on 09/02/2025 00:48:59 UTC