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 bcrypt | |
def generate_hashed_password(plain_password): | |
salt = bcrypt.gensalt() | |
hashed_password = bcrypt.hashpw(plain_password.encode('utf-8'), salt) | |
return hashed_password.decode('utf-8') | |
def main(): | |
num_users = int(input("Quantos usuários você deseja adicionar? ")) | |
inserts = [] |
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
# How to consume Github Package private registry with yarn? | |
Create an .npmrc file in the same location as the package.json with this content. | |
``` | |
registry=https://registry.yarnpkg.com/ | |
@<username>:registry=https://npm.pkg.github.com | |
//npm.pkg.github.com/:_authToken=<your auth token> | |
always-auth=true |