Skip to content

Instantly share code, notes, and snippets.

# 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:

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 a specific method it has the following form: <handler_name>.<method_name>.

For example, if you decide to send the Recharge Users request, you must find its handler and of course its method. In this case, the method is rechargeUsers and its handler is user. So in your reques

@morteza-mori
morteza-mori / devops
Created January 13, 2019 09:08
ansible
ansible
ntroduction
Configuration Management, Orchestration and DevOps
Infrastructure As Code
Introduction to Ansible
Ansible vs. Other CM tools
Introduction to YAML
Ansible and YAML to build your environment
Core Components of Ansible
@morteza-mori
morteza-mori / Tour
Created January 2, 2019 08:08
Tour
http://hiholiday.ir/Tour/Type-31/%d8%aa%d9%88%d8%b1-%d9%84%d8%ad%d8%b8%d9%87-%d8%a2%d8%ae%d8%b1%db%8c
@morteza-mori
morteza-mori / ide
Created January 2, 2019 08:05
editor
http://tmtheme-editor.herokuapp.com/#!/editor/local/Monokai
@morteza-mori
morteza-mori / mikrotik
Created October 2, 2018 08:52
Mikrotik nslookup
put [resolve google.com server 8.8.8.8]