Skip to content

Instantly share code, notes, and snippets.

View tjkhara's full-sized avatar

tjkhara

View GitHub Profile
@tjkhara
tjkhara / docker-compose.yml
Created October 25, 2020 06:43
Docker compose for wordpress, mysql and phpmyadmin setup
version: '3'
services:
# Database
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
@tjkhara
tjkhara / ipa_test
Created October 27, 2020 11:29
ip for docker
tkhara@tkhara-lenovo:~/envs/docker/backend_testing_wp$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 50:7b:9d:1d:f7:f7 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.100/24 brd 192.168.1.255 scope global dynamic noprefixroute enp2s0
@tjkhara
tjkhara / docker-compose.yml
Created October 27, 2020 11:45
Docker compose for question
version: '3'
services:
# Database
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
ports:
@tjkhara
tjkhara / pytest_output
Created October 27, 2020 11:55
pytest output
(venv_course_resources) tkhara@tkhara-lenovo:~/notes/testing/admas_kinfu/api_testing_py_course_material/automation_code/ssqaapitest$ pytest
=========================================================================================================== test session starts ===========================================================================================================
platform linux -- Python 3.8.5, pytest-5.4.2, py-1.9.0, pluggy-0.13.1
rootdir: /home/tkhara/notes/testing/admas_kinfu/api_testing_py_course_material/automation_code/ssqaapitest, inifile: pytest.ini
plugins: html-2.1.1, metadata-1.10.0
collected 23 items
tests/coupons/test_create_coupons_smoke.py::test_create_coupon_percent_discount_type[None]
-------------------------------------------------------------------------------------
@tjkhara
tjkhara / output_from_main_dir
Created October 29, 2020 14:02
Output from main directory
============================= test session starts ==============================
platform linux -- Python 3.8.5, pytest-6.1.1, py-1.9.0, pluggy-0.13.1
rootdir: /home/tkhara/notes/testing/admas_kinfu/project_dir
plugins: metadata-1.10.0, html-2.1.1
collected 10 items / 7 deselected / 3 selected
ssqaapitest/tests/customers/test_create_customers_smoke.py .. [ 66%]
ssqaapitest/tests/customers/test_get_customers_smoke.py . [100%]
=============================== warnings summary ===============================
@tjkhara
tjkhara / output_from_ssqaapitest_dir
Created October 29, 2020 14:05
No warnings seen here
============================= test session starts ==============================
platform linux -- Python 3.8.5, pytest-6.1.1, py-1.9.0, pluggy-0.13.1
rootdir: /home/tkhara/notes/testing/admas_kinfu/project_dir/ssqaapitest, configfile: pytest.ini
plugins: metadata-1.10.0, html-2.1.1
collected 4 items / 1 deselected / 3 selected
tests/customers/test_create_customers_smoke.py::test_create_customer_only_email_password
-------------------------------- live log call ---------------------------------
INFO root:test_create_customers_smoke.py:14 TEST: Create new customer with email and password only.
DEBUG root:generic_utility.py:7 Generating random email and password.
@tjkhara
tjkhara / docker-react-error-log
Created October 30, 2020 07:05
docker react error log
travis_fold:start:worker_info
Worker information
hostname: 89d40107-aecb-4cf6-92e3-33c7e1706136@1.worker-org-8b5957499-84ph6.gce-production-3
version: v6.2.17 https://github.com/travis-ci/worker/tree/bc420764f334fe0d096a417c80426f672f1b7d18
instance: travis-job-d2cd4c4d-1e96-4fad-86e6-6dec1d187dfe travis-ci-sardonyx-xenial-1593004276-4d46c6b3 (via amqp)
startup: 6.04039686s
travis_fold:end:worker_info
travis_time:start:00560988
travis_time:end:00560988:start=1604038527856221413,finish=1604038528016537350,duration=160315937,event=no_world_writable_dirs
travis_time:start:18b816b7
@tjkhara
tjkhara / bt_docker_compose_wp
Created October 31, 2020 13:46
Docker compose for local wordpress setup
version: '3'
services:
# Database
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
@tjkhara
tjkhara / laravel_migrations_error
Created November 3, 2020 13:13
Laravel migrations error
<?php
return [
/*
|--------------------------------------------------------------------------
| Served Name
|--------------------------------------------------------------------------
|
| This value will be used in naming your docker containers.
| It is best to make sure that this value is unique for each project.
@tjkhara
tjkhara / express_code_simple.js
Last active November 6, 2020 14:25
Getting started with express
// Import express
let express = require('express')
// Create an instance of it
let ourApp = express()
// Use third party requests library
ourApp.use(express.urlencoded({extended: false}))
// get function for root URL