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 1541 commits βββββββββββββββββββββββββ 24.31 %
π Daytime 2727 commits βββββββββββββββββββββββββ 43.01 %
π Evening 1829 commits βββββββββββββββββββββββββ 28.85 %
π Night 243 commits βββββββββββββββββββββββββ 03.83 %
π I'm Most Productive on Sunday
Monday 922 commits βββββββββββββββββββββββββ 14.54 %
Tuesday 866 commits βββββββββββββββββββββββββ 13.66 %
Wednesday 797 commits βββββββββββββββββββββββββ 12.57 %
Thursday 831 commits βββββββββββββββββββββββββ 13.11 %
Friday 827 commits βββββββββββββββββββββββββ 13.04 %
Saturday 1045 commits βββββββββββββββββββββββββ 16.48 %
Sunday 1052 commits βββββββββββββββββββββββββ 16.59 %
π This Week I Spent My Time On
ποΈ Time Zone: Europe/Kyiv
π¬ Programming Languages:
sh 11 hrs 42 mins βββββββββββββββββββββββββ 72.76 %
YAML 2 hrs 53 mins βββββββββββββββββββββββββ 17.92 %
JSON 32 mins βββββββββββββββββββββββββ 03.39 %
Other 20 mins βββββββββββββββββββββββββ 02.15 %
Docker 16 mins βββββββββββββββββββββββββ 01.69 %
π₯ Editors:
Zsh 11 hrs 42 mins βββββββββββββββββββββββββ 72.76 %
VS Code 4 hrs 16 mins βββββββββββββββββββββββββ 26.51 %
Vim 6 mins βββββββββββββββββββββββββ 00.72 %
π» Operating System:
Linux 16 hrs 6 mins βββββββββββββββββββββββββ 100.00 %
Last Updated on 25/06/2024 00:42:34 UTC