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
for i in $(seq $1); do a=$(f "$a"); done |
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
function x() { echo "Hello world"; } | |
function around() { echo before; $1; echo after; } | |
around x |
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
➜ ~ function x() { echo "Hello world"; } | |
➜ ~ function around() { echo before; $1; echo after; } | |
➜ ~ around x | |
before | |
Hello world | |
after |
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
➜ mysql -u root -p | |
Enter password: | |
Welcome to the MariaDB monitor. Commands end with ; or \g. | |
Your MariaDB connection id is 5 | |
Server version: 10.1.24-MariaDB MariaDB Server | |
Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others. | |
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. |
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 TABLE transactions ( | |
id int NOT NULL PRIMARY KEY, | |
name varchar(255), | |
description varchar(255), | |
country_name varchar(255), | |
city_name varchar(255), | |
cost varchar(255), | |
currency varchar(255), | |
created_at DATE, | |
billing_type varchar(255), |
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
from datetime import datetime | |
import random | |
import sqlalchemy | |
from sqlalchemy import create_engine | |
from sqlalchemy.ext.declarative import declarative_base | |
from sqlalchemy import Column, Integer, String, DateTime | |
from sqlalchemy import Sequence | |
from sqlalchemy.orm import sessionmaker | |
from elizabeth import Personal |
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
user = 'root' | |
pwd = '' | |
host = 'localhost' | |
db = 'testing' | |
mysql_engine = create_engine('mysql://{0}:{1}@{2}/{3}'.format(user, pwd, host, db)) | |
Base = declarative_base() | |
class Transactions(Base): | |
__tablename__ = 'transactions' |
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
myFactory = Faker() | |
Session = sessionmaker(bind=mysql_engine) | |
session = Session() | |
billing_type_list = ['cheque', 'cash', 'credit', 'debit', 'e-wallet'] | |
language = ['English', 'Bengali', 'Kannada'] | |
operating_system = 'linux' | |
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
from datetime import datetime | |
import random | |
import sqlalchemy | |
from sqlalchemy import create_engine | |
from sqlalchemy.ext.declarative import declarative_base | |
from sqlalchemy import Column, Integer, String, DateTime | |
from sqlalchemy import Sequence | |
from sqlalchemy.orm import sessionmaker | |
from elizabeth import Personal |
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
MariaDB [testing]> select name, description, city_name from transactions limit 10; | |
+------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------+ | |
| name | description | city_name | | |
+------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------+ | |
| Henry Smith | Labore sequi eos voluptates optio in cum quidem. Sint voluptate nostrum quos deserunt dicta. Ad sed quisquam maxime hic. | K |