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 argparse | |
import secrets | |
import string | |
if __name__ == "__main__": | |
parser = argparse.ArgumentParser() | |
parser.add_argument("-s", "--symbols", help="Include symbols in password", action="store_true") | |
parser.add_argument("-l", "--length", type=int, default=16, help="Password length") | |
args = parser.parse_args() |
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
-- Create a groups to assign permissions to | |
CREATE GROUP main; | |
CREATE GROUP read_only; | |
-- Revoke default permission settings | |
REVOKE ALL ON DATABASE <database_name> FROM PUBLIC, main, read_only; | |
REVOKE ALL ON SCHEMA public FROM PUBLIC, main, read_only; | |
REVOKE ALL |