- Java 11
- Maven
- Redis
- PostgreSQL
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
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/") |
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
import json | |
from jsonpath_ng import jsonpath, parse | |
class Hero: | |
def __init__(self): | |
print('hero') | |
self.json = {} | |
self.new_json = {} |
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
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: |
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
## RabbitMQ application credentials | |
## Ref: http://rabbitmq.com/access-control.html | |
## | |
rabbitmqUsername: guest | |
# rabbitmqPassword: | |
## RabbitMQ Management user used for health checks | |
managementUsername: management | |
# managementPassword: |
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
# 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 |
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
#!/bin/bash | |
echo "sync started..." | |
for ARGUMENT in "$@" | |
do | |
KEY=$(echo $ARGUMENT | cut -f1 -d=) | |
KEY_LENGTH=${#KEY} | |
VALUE="${ARGUMENT:$KEY_LENGTH+1}" |
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
version: "3.9" | |
services: | |
mssql: | |
image: mcr.microsoft.com/azure-sql-edge:latest | |
volumes: | |
- ./mssql:/var/opt/mssql | |
ports: | |
- 1433:1433 | |
environment: |