Make sure time is correct if not reconfigure:
sudo dpkg-reconfigure tzdata
https://computingforgeeks.com/install-elasticsearch-on-ubuntu/
from dataclasses import dataclass | |
from pprint import pprint | |
from typing import List, Dict | |
class DataBase: | |
""" useful base functions for dataclasses that can convert a dataclass to_dict recursively """ | |
def _list_of_dc(self, data_classes: list or set) -> List[dict]: | |
""" Convert list of classes with to_dict() atter to list of dict""" |
import time | |
from functools import wraps | |
import threading | |
import queue | |
from typing import List, Callable | |
import string | |
import random | |
import asyncio |
import os | |
import subprocess | |
import platform | |
import socket | |
import uuid | |
import re | |
import shutil | |
from io import BufferedReader | |
from typing import Callable, List |
#!/bin/bash | |
set -e | |
python_version=3.8.2 | |
read -p $'Type Python version ex 3.8.2 \n' python_version | |
[ -z $python_version ] && echo "missing verison" && exit | |
echo "You selected python version $python_version" |
Make sure time is correct if not reconfigure:
sudo dpkg-reconfigure tzdata
https://computingforgeeks.com/install-elasticsearch-on-ubuntu/
from dataclasses import dataclass | |
from typing import Callable, List | |
import re | |
class ListOfFilters(list): | |
""" Adds additional functionality to a List[Filter]""" | |
@staticmethod | |
def _validate_regex(pattern, filter_name: str): |
#!/bin/bash | |
########## | |
## https://linuxhint.com/bash_loop_list_strings/ | |
## https://linuxize.com/post/bash-functions/ | |
########## | |
### This install script assumes it executed in project directory ### | |
set -e |