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 1414 commits βββββββββββββββββββββββββ 23.78 %
π Daytime 2636 commits βββββββββββββββββββββββββ 44.33 %
π Evening 1659 commits βββββββββββββββββββββββββ 27.90 %
π Night 237 commits βββββββββββββββββββββββββ 03.99 %
π I'm Most Productive on Saturday
Monday 853 commits βββββββββββββββββββββββββ 14.35 %
Tuesday 792 commits βββββββββββββββββββββββββ 13.32 %
Wednesday 805 commits βββββββββββββββββββββββββ 13.54 %
Thursday 825 commits βββββββββββββββββββββββββ 13.87 %
Friday 830 commits βββββββββββββββββββββββββ 13.96 %
Saturday 921 commits βββββββββββββββββββββββββ 15.49 %
Sunday 920 commits βββββββββββββββββββββββββ 15.47 %
π This Week I Spent My Time On
ποΈ Time Zone: Europe/Kyiv
π¬ Programming Languages:
Markdown 2 hrs 1 min βββββββββββββββββββββββββ 69.72 %
Bash 20 mins βββββββββββββββββββββββββ 12.02 %
YAML 13 mins βββββββββββββββββββββββββ 07.48 %
Lua 8 mins βββββββββββββββββββββββββ 04.86 %
Nix 5 mins βββββββββββββββββββββββββ 03.11 %
π₯ Editors:
VS Code 1 hr 38 mins βββββββββββββββββββββββββ 56.56 %
Obsidian 1 hr 8 mins βββββββββββββββββββββββββ 39.54 %
Vim 6 mins βββββββββββββββββββββββββ 03.90 %
π» Operating System:
Linux 2 hrs 54 mins βββββββββββββββββββββββββ 100.00 %
Last Updated on 11/04/2024 00:40:53 UTC