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 1748 commits ██████░░░░░░░░░░░░░░░░░░░ 25.84 %
🌆 Daytime 2847 commits ███████████░░░░░░░░░░░░░░ 42.08 %
🌃 Evening 1911 commits ███████░░░░░░░░░░░░░░░░░░ 28.25 %
🌙 Night 259 commits █░░░░░░░░░░░░░░░░░░░░░░░░ 03.83 %
📊 This Week I Spent My Time On
🕑︎ Time Zone: Europe/Kyiv
💬 Programming Languages:
sh 5 hrs 7 mins ███████████░░░░░░░░░░░░░░ 44.50 %
YAML 4 hrs 6 mins █████████░░░░░░░░░░░░░░░░ 35.64 %
Python 1 hr 10 mins ███░░░░░░░░░░░░░░░░░░░░░░ 10.25 %
JSON 23 mins █░░░░░░░░░░░░░░░░░░░░░░░░ 03.37 %
TOML 12 mins ░░░░░░░░░░░░░░░░░░░░░░░░░ 01.74 %
🔥 Editors:
VS Code 6 hrs 15 mins ██████████████░░░░░░░░░░░ 54.41 %
Zsh 5 hrs 7 mins ███████████░░░░░░░░░░░░░░ 44.50 %
Obsidian 7 mins ░░░░░░░░░░░░░░░░░░░░░░░░░ 01.09 %
💻 Operating System:
Linux 11 hrs 30 mins █████████████████████████ 100.00 %
Last Updated on 02/03/2025 00:51:28 UTC