Skip to content

Instantly share code, notes, and snippets.

@sbimochan
Created August 25, 2020 09:14
Show Gist options
  • Save sbimochan/1cb8b64aa511afa56f896ac5486d13c7 to your computer and use it in GitHub Desktop.
Save sbimochan/1cb8b64aa511afa56f896ac5486d13c7 to your computer and use it in GitHub Desktop.
Faker for dummy.
pip install faker
vim ~/faker_for_testing.py

Hit i

Paste these

from faker import Faker
fake = Faker()

for _ in range(10):
    print(fake.name())
    print(fake.email())
    print(fake.phone_number())
    print('\n')

Hit Esc + w + q and Enter

vim ~/.zshrc

Hit: Shift + G Press: O for new line( O for orange. not zero haha)

Add:

alias fake="python ~/faker_for_testing.py"

Hit Esc + w + q and Enter

Refresh terminal

source ~/.zshrc

now enter fake in your terminal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment