Skip to content

Instantly share code, notes, and snippets.

@morteza-mori
morteza-mori / mikrotik
Created October 2, 2018 08:52
Mikrotik nslookup
put [resolve google.com server 8.8.8.8]
lsof → List open files.
lsof -i :PORT → Shows networking related port
lsof -i@IP → Shows connections to a specific host
lsof -i -sTCP:LISTEN → Shows listening ports
lsof -i -sTCP:ESTABLISHED → Shows established connections
lsof -u USER → What user opens
lsof DIR → Shows everything interacting with a given DIR
lsof -i :PORT → Shows which process uses the port
# REDIS CHEATSHEET
# ALL THE COMMANDS YOU NEED TO KNOW
redis-server /path/redis.conf # start redis with the related configuration file
redis-cli # opens a redis prompt
# Strings.
@morteza-mori
morteza-mori / docker
Created January 9, 2021 12:35
Docker command
Docker
========================
**Install Docker**
echo "nameserver 178.22.122.100" > /etc/resolv.conf افزودن DNS شکن در فایل مذکور برای دور زدن تحریم ها
curl -fsSL get.docker.com -o get-docker.sh دانلود اسکریپ ذکر شده و اجرای آن برای نصب کامل داکر
sh get-docker.sh
@morteza-mori
morteza-mori / Lab-1
Last active January 5, 2021 10:26
Ci/Cd
# Lab CI/CD
install and test ci/cd in gitlab
## Installation
-Install 4 linux debian server
-Make host onliy virtual network (Vboxnet0)
-for all vm make 2 interface internet/Vboxnet0
@morteza-mori
morteza-mori / add usb for virtual box
Created July 14, 2020 14:19
Virtual box add usb
sudo adduser $USERNAME vboxusers
nano /etc/udev/rules.d/60-vboxdrv.rules
SUBSYSTEM=="usb_device", ACTION=="add", RUN+="/usr/share/virtualbox/VBoxCreateUSBNode.sh $major $minor vboxusers"
SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", RUN+="/usr/share/virtualbox/VBoxCreateUSBNode.sh $major $minor vboxusers"
@morteza-mori
morteza-mori / run docker for modeling
Created June 20, 2020 11:15
docker-camunda-bpm-platform
install docker
docker pull camunda/camunda-bpm-platform:latest
docker run -d --name camunda -p 8080:8080 camunda/camunda-bpm-platform:latest
make new network docker vm = 192.168.56.3(host only)
<script>
root@docker:~# docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
7cdc7a4123b7 camunda/camunda-bpm-platform:latest "/sbin/tini -- ./cam…" 14 minutes ago Up 8 minutes 8000/tcp, 9404/tcp, 0.0.0.0:8080->8080/tcp camunda
root@docker:~# docker start 7cdc7a4123b7257e83c8be3e3d9d67ececf2ed8f865289286449c978b800b1fc
in my browser:
@morteza-mori
morteza-mori / docker&tor&proxy setting
Last active May 30, 2020 11:19
docker&tor&proxy setting
apt-get install docker
#show conteiner
docker pull ubuntu
docker ps -a
docker attach c1988b7b20c6
docker start c1988b7b20c6
https://mondedie.fr/viewtopic.php?pid=29034#p29034
https://training.docker.com/self-paced-training
DOCKER VS VAGRANT: http://stackoverflow.com/questions/16647069/should-i-use-vagrant-or-docker-for-creating-an-isolated-environment?rq=1
https://docs.docker.com/kitematic/nginx-web-server/
https://mega.nz/#!B3QzzSLI

Introduction

The following document describes how we can communicate with IBSng API through JSONRPC.

Note that IBSng is capable of handling requests in XML format as well, which in this case the IBSng XMLRPC server is responsible of processing/answering the requests but it is not the purpose of this document

All the samples of this document are implemented with curl command to make it independent of any programming languages.

Each operation in IBSng can be done by calling its appropriate method. The methods are categorized in different sections called handler. All the handlers/methods are described in here. So if we want to refer to an specific method it has following form: <handler_name>.<method_name>.