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 1584 commits βββββββββββββββββββββββββ 24.60 %
π Daytime 2786 commits βββββββββββββββββββββββββ 43.27 %
π Evening 1824 commits βββββββββββββββββββββββββ 28.33 %
π Night 244 commits βββββββββββββββββββββββββ 03.79 %
π I'm Most Productive on Sunday
Monday 958 commits βββββββββββββββββββββββββ 14.88 %
Tuesday 898 commits βββββββββββββββββββββββββ 13.95 %
Wednesday 809 commits βββββββββββββββββββββββββ 12.57 %
Thursday 852 commits βββββββββββββββββββββββββ 13.23 %
Friday 839 commits βββββββββββββββββββββββββ 13.03 %
Saturday 1010 commits βββββββββββββββββββββββββ 15.69 %
Sunday 1072 commits βββββββββββββββββββββββββ 16.65 %
π This Week I Spent My Time On
ποΈ Time Zone: Europe/Kyiv
π¬ Programming Languages:
sh 9 hrs 45 mins βββββββββββββββββββββββββ 73.11 %
YAML 1 hr 27 mins βββββββββββββββββββββββββ 10.93 %
Markdown 1 hr 10 mins βββββββββββββββββββββββββ 08.77 %
Text 16 mins βββββββββββββββββββββββββ 02.11 %
Other 15 mins βββββββββββββββββββββββββ 01.93 %
π₯ Editors:
Zsh 9 hrs 45 mins βββββββββββββββββββββββββ 73.11 %
VS Code 2 hrs 5 mins βββββββββββββββββββββββββ 15.65 %
Obsidian 1 hr 10 mins βββββββββββββββββββββββββ 08.77 %
Vim 19 mins βββββββββββββββββββββββββ 02.47 %
π» Operating System:
Linux 13 hrs 20 mins βββββββββββββββββββββββββ 100.00 %
Last Updated on 18/07/2024 00:43:14 UTC