Skip to content

Instantly share code, notes, and snippets.

morteza morteza-mori

Block or report user

Report or block morteza-mori

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ibsng_api_intro.md

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

View devops
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
View 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
View ide
http://tmtheme-editor.herokuapp.com/#!/editor/local/Monokai
@morteza-mori
morteza-mori / mikrotik
Created Oct 2, 2018
Mikrotik nslookup
View mikrotik
put [resolve google.com server 8.8.8.8]
@morteza-mori
morteza-mori / mongodb
Last active Aug 25, 2018
mongo running /data/db problem
View mongodb
mongod --dbpath /data/<path> --port <port no>
http://pdf2md.morethan.io/
@morteza-mori
morteza-mori / python autocompletion
Last active Aug 21, 2018
python autocompletion
View python autocompletion
import rlcompleter, readline
readline.parse_and_bind('tab:complete')
@morteza-mori
morteza-mori / virtualenv
Last active Aug 19, 2018
virtualenv - install
View virtualenv
apt install python3-pip
pip3 install virtualenv
which virtualenv
cd /home/morteza/Desktop/
mkdir python
cd python/
virtualenv test
You must provide a DEST_DIR
Usage: virtualenv [OPTIONS] DEST_DIR
View test active directory server
import ldap, sys
LDAP_SERVER = 'ldaps://grep01.test.test.ir'
LDAP_BASE = 'ou=Special Users,dc=gandou,dc=test,dc=test,dc=ir'
BIND_USER = 'uid=ibsngproxy,ou=Users,dc=test,dc=test,dc=ir'
BIND_PASSWORD = 'halohalohalo'
ldap.set_option(ldap.OPT_DEBUG_LEVEL, 4095)
try:
l = ldap.initialize(LDAP_SERVER)
You can’t perform that action at this time.