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 -
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 awscli
aws configure
sudo apt install ntp
sudo apt install ntpdate
sudo ntpdate pool.ntp.org
I 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 alien
When 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