To install Docker Engine, visit here
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -| # from i8ramin - http://getintothis.com/blog/2012/04/02/git-grep-and-blame-bash-function/ | |
| # runs git grep on a pattern, and then uses git blame to who did it | |
| ggb() { | |
| git grep -n $1 | while IFS=: read i j k; do git blame -L $j,$j $i | cat; done | |
| } | |
| # small modification for git egrep bash | |
| geb() { | |
| git grep -E -n $1 | while IFS=: read i j k; do git blame -L $j,$j $i | cat; done | |
| } |
| def updator(initial_list: Set[T], new_list: Set[T], creator: Callable[T, U], getter: Callable[T, U], deleter: Callable[T]) -> List[U]: | |
| result = [] | |
| for e in new_list: | |
| element = getter(e) | |
| if not element: | |
| element = creator(e) | |
| result.append(element) | |
| to_delete = initial_list.difference(new_list) | |
| for e in to_delete: | |
| deleter(e) |
| from typing import List, Callable, Iterator, Tuple | |
| LOGICAL_SEPARATORS = ["and", "or"] | |
| OPERATORS = ["lt", "gt", "not", "in", "none"] | |
| OPERATORS_MAPPING = {"=": "=", "lt": "<", "gt": ">", "lte": "<=", "gte": ">=", "not": "!=", "none": "is None", | |
| "is": "is"} | |
| def _generate_method(method_name: str) -> Callable: | |
| zip_iterator = _process_getter(method_name.split("_")) |
| from typing import List, Callable, Iterator, Tuple | |
| LOGICAL_SEPARATORS = ["and", "or"] | |
| OPERATORS = ["lt", "gt", "not", "in", "none"] | |
| OPERATORS_MAPPING = {"=": "=", "lt": "<", "gt": ">", "lte": "<=", "gte": ">=", "not": "!=", "none": "is None", | |
| "is": "is"} | |
| # TODO: Add docstrings | |
| # After first generation, add method to the repository class for further calling. | |
| def _generate_method(method_name: str) -> Callable: |
| from pydantic import BaseModel | |
| class _Pagination: | |
| def __init__(self): | |
| self.cache = [] | |
| def __getitem__(self, klass): | |
| target_class = None | |
| key = str(klass) | |
| try: | |
| target_class = self.cache[key] |
To install Docker Engine, visit here
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -sudo apt install awscli
pip install awscliaws configuresudo apt install ntp
sudo apt install ntpdatesudo ntpdate pool.ntp.orgI recently moved from Debian-basd distributions to RHEEL world. I'm actually using Fedora. At some point, I wanted to install frantz. But I only have two possibilities: .deb and .AppImage and I choosed the .deb. After downloading the .deb file, I use alien to transform it to .rpm.
sudo dnf install alienWhen trying to connect to a VPN via command. And you receive config files like .ovpn client .crt and .key or .p12.
~/Config/VPN/myVPN.openvpn package from official repositories.on Ubuntu
sudo apt-get install openvpn