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 1634 commits βββββββββββββββββββββββββ 24.68 %
π Daytime 2866 commits βββββββββββββββββββββββββ 43.29 %
π Evening 1876 commits βββββββββββββββββββββββββ 28.34 %
π Night 244 commits βββββββββββββββββββββββββ 03.69 %
π I'm Most Productive on Sunday
Monday 997 commits βββββββββββββββββββββββββ 15.06 %
Tuesday 949 commits βββββββββββββββββββββββββ 14.34 %
Wednesday 828 commits βββββββββββββββββββββββββ 12.51 %
Thursday 877 commits βββββββββββββββββββββββββ 13.25 %
Friday 860 commits βββββββββββββββββββββββββ 12.99 %
Saturday 1032 commits βββββββββββββββββββββββββ 15.59 %
Sunday 1077 commits βββββββββββββββββββββββββ 16.27 %
π This Week I Spent My Time On
ποΈ Time Zone: Europe/Kyiv
π¬ Programming Languages:
sh 6 hrs βββββββββββββββββββββββββ 54.98 %
YAML 2 hrs 48 mins βββββββββββββββββββββββββ 25.69 %
Bash 29 mins βββββββββββββββββββββββββ 04.53 %
Markdown 28 mins βββββββββββββββββββββββββ 04.42 %
Smarty 25 mins βββββββββββββββββββββββββ 03.92 %
π₯ Editors:
Zsh 5 hrs 57 mins βββββββββββββββββββββββββ 54.64 %
VS Code 4 hrs 30 mins βββββββββββββββββββββββββ 41.25 %
Obsidian 23 mins βββββββββββββββββββββββββ 03.58 %
Vim 3 mins βββββββββββββββββββββββββ 00.53 %
π» Operating System:
Linux 10 hrs 55 mins βββββββββββββββββββββββββ 100.00 %
Last Updated on 21/08/2024 00:44:32 UTC