Skip to content

Instantly share code, notes, and snippets.

View MohamedBrary's full-sized avatar

Mohamed Brary MohamedBrary

View GitHub Profile
@MohamedBrary
MohamedBrary / faker.rake
Last active May 1, 2017 15:07
This is a rake file having multiple tasks used to generate relational data for a very complicated system, it uses "Faker" and "Populator" to generate database records using real data efficiently, so different benchmark tests and analysis can be done. It is project specific in term of data relations, but the general idea of generating huge amount…
# ---------- Fakers
# rake fake:cluster - generates the whole cluster data
# rake fake:cluster_without_evaluations - generates fake cluster data but without evaluations (no templates or template_answers)
# rake fake:evaluations - generates evaluations against the existed templates
# ---------- Documentation
# Before you try this faker, it is better to create another db and use it only when u need to benchmark something or check the performance.
# The main rake creates a proxy, and couple of servers, couple of roles and groups, create supervisors and dozens of agents, assign access for each object, and creates templates of questions.
# for each agent it generates a handful of calls, randomly evaluate these calls with double templates, calibration or single evaluation. also it generates random call notes on some random calls.
# all the numbers are at the beginning of the rake, u can edit them as u like, two sets of numbers are in the code, one generates 225,000 calls and the other generates 22,500.
@MohamedBrary
MohamedBrary / create_rails_project.md
Last active September 3, 2022 20:22
New Rails App

Creating Rails Project

Initialization

# List available rubies, to choose which ruby to use
$ rvm list rubies

# To install new ruby use, for example version '2.4.1'
$ rvm install 2.4.1

Keybase proof

I hereby claim:

  • I am mohamedbrary on github.
  • I am mohamedbrary (https://keybase.io/mohamedbrary) on keybase.
  • I have a public key ASDat52yj6FMcX6MT9lO7zR4HZSrQDn2JTuzlO42OvsVNQo

To claim this, I am signing this object: