A PHP extension that allows you to:
- walk through your code by Remote Debugging
- find bottlenecks in your application by Profiling
- find Code Coverage in a single request
- trace your application by logging all function calls
version: "3.9" | |
services: | |
mssql: | |
image: mcr.microsoft.com/azure-sql-edge:latest | |
volumes: | |
- ./mssql:/var/opt/mssql | |
ports: | |
- 1433:1433 | |
environment: |
#!/bin/bash | |
echo "sync started..." | |
for ARGUMENT in "$@" | |
do | |
KEY=$(echo $ARGUMENT | cut -f1 -d=) | |
KEY_LENGTH=${#KEY} | |
VALUE="${ARGUMENT:$KEY_LENGTH+1}" |
# Install elasticsearch | |
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add - | |
apt-get install apt-transport-https | |
echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-5.x.list | |
apt-get update | |
apt-get install kibana | |
# Configure elastic | |
sed -i '/#server.host: 192.168.0.1/c\server.host: 0.0.0.0' /etc/kibana/kibana.yml |
## RabbitMQ application credentials | |
## Ref: http://rabbitmq.com/access-control.html | |
## | |
rabbitmqUsername: guest | |
# rabbitmqPassword: | |
## RabbitMQ Management user used for health checks | |
managementUsername: management | |
# managementPassword: |
import json | |
from pprint import pprint | |
from scapy.all import * | |
packets = rdpcap('sniff.cap') | |
# Let's iterate through every packet | |
c = 1 | |
arr = [] | |
for packet in packets: |
import json | |
from jsonpath_ng import jsonpath, parse | |
class Hero: | |
def __init__(self): | |
print('hero') | |
self.json = {} | |
self.new_json = {} |
class Main: | |
def __init__(self): | |
print("Transfer is started") | |
self.col = self.mongo_connect() | |
self.es = self.elastic_connect() | |
self.get_mongo_data() | |
@staticmethod | |
def mongo_connect(): | |
client = pymongo.MongoClient("mongodb://localhost:37017/") |