This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ipaddress | |
def calculate_ports(public_ip: str, port_interval: int, port_start: int, port_end: int) -> list: | |
""" | |
Calculates a list of port ranges based on the provided parameters. | |
Args: | |
public_ip (str): The public IP address. | |
port_interval (int): The interval between port ranges. | |
port_start (int): The starting port. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[LINUX] | |
might work for windows too | |
After installing postgres follow following steps in order to setup password for default system account of Linux execute following in terminal: | |
user:~$ sudo -i -u postgres | |
postgres@user:~$ psql | |
after executing above two commands you will get into postgres shell |