Skip to content

Instantly share code, notes, and snippets.

View AJNOURI's full-sized avatar
💭
I may be slow to respond.

AJ NOURI AJNOURI

💭
I may be slow to respond.
View GitHub Profile
openapi: "3.0.0"
info:
description: "Please add description"
version: "0.1.0_inProgress"
title: "Orange_device_ressources"
tags:
- name: "Device"
- name: "OrangeApiStatus"
paths:
/devices:
@AJNOURI
AJNOURI / playbook.container.issue.task.test.txt
Last active December 27, 2019 19:25
playbook.container.issue.task.test
ansible-playbook 2.9.2
config file = /scripts/ansible.cfg
configured module search path = [u'/plugins/modules', u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']ansible-playbook 2.9.2
config file = /scripts/ansible.cfg
configured module search path = [u'/plugins/modules', u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python2.7/site-packages/ansible
executable location = /usr/local/bin/ansible-playbook
python version = 2.7.15 (default, Jan 31 2019, 00:15:21) [GCC 6.3.0]
Using /scripts/ansible.cfg as config file
setting up inventory plugins
qemu-img convert -f vmdk -O qcow2 vqfx10k-pfe-20160609-2.vmdk vqfx10k-pfe-20160609-2.qcow2
qemu-img convert -f vmdk -O qcow2 vqfx10k-re-15.1X53-D60.vmdk vqfx10k-re-15.1X53-D60.qcow2
@AJNOURI
AJNOURI / create_test_users.sh
Created November 7, 2018 07:18
Create users from a script for testing purposes
#!/bin/bash
for i in $( cat users.txt ); do
useradd $i
echo "user $i added successfully!"
echo $i:$i"p@sswd" | chpasswd
echo "Password for user $i changed successfully"
done
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDAul8l2mRVJ9hE2D6Q93LEzBwCzMsWJha2zs1Pi6NNJ34U1o4oD6qZ6JegPK2cMMSiaP2IN6vv9JBRXfc7SuFSdaV98sBZ49yK3yrzVRI298X2BTIgKXp3S3gH1fkv3JoubyTErzpCyN9sCpJ56v8LZuPoq60PVo/rUOHy2iq2qcALDavYukxYAgOBVdgmAST/eEErXYR+ok1cPWJQiXJWOEqB/NYrAhdWCL+L7HJzK7DTQoGzD508prsGl6x37plxUKMsZzavL7VlY26Kh1yZbJWxCq/kJIgYte8aRk5cGUwPFcnnCZMFXWZdM4YPl1VpmkvDAn65eeALmT2ywqFv root@pycharm
@AJNOURI
AJNOURI / ewarnme.py
Last active November 7, 2018 07:28
Python script to send email using gmail
#!/usr/bin/python
import smtplib
import socket
import subprocess
#######################################################
# Make sure your provider allows outgoing SMTP trafic
#######################################################
@AJNOURI
AJNOURI / pre-test-elk.txt
Last active April 7, 2018 16:33
Preparation notes to build an ELK on docker on docker contianer (dind)
######## References
https://www.itzgeek.com/how-tos/linux/ubuntu-how-tos/how-to-run-elk-stack-on-docker-container.html
docker run --privileged --name ELK --hostname ELK -d --network=swarmnet0 docker:stable-dind
@AJNOURI
AJNOURI / Home-Rancher-vbox.sh
Last active December 29, 2022 16:19
Start your own Rancher cluster home lab with RancherOS virtualbox nodes.
### Launch Rancher container
$ docker run -d --restart=unless-stopped -p 8080:8080 rancher/server:stable
# v2
sudo docker run -d --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher
### Start 2 Virtualbox VMs with RancherOS
$ docker-machine create -d virtualbox --virtualbox-boot2docker-url https://github.com/rancher/os/releases/download/v1.3.0/rancheros.iso rancheros1
$ docker-machine create -d virtualbox --virtualbox-boot2docker-url https://github.com/rancher/os/releases/download/v1.3.0/rancheros.iso rancheros2
@AJNOURI
AJNOURI / install-gns3-ubuntu-17-10
Created October 24, 2017 09:35
Installing GNS3 on Ubuntu 17.10
sudo add-apt-repository ppa:gns3/unstable
sudo apt-get update
sudo apt-get install gns3-gui
sudo apt install curl
curl -O https://download.docker.com/linux/ubuntu/dists/zesty/pool/stable/amd64/docker-ce_17.09.0~ce-0~ubuntu_amd64.deb
sudo dpkg -i docker-ce_17.09.0~ce-0~ubuntu_amd64.deb
sudo gpasswd -a $USER docker
newgrp docker
sudo apt-get install xtightvncviewer
<?xml version="1.0" ?><lab><mycase id="1"><casename>Case1: Automatic 6to4 mechanism</casename><topo>top1.jpg</topo><testrun id="1"><router id="R1"><command><cmdname>sh ipv6 int brief</cmdname><cmdfile>./output/C1_TR1_IT1_R1_sh_ipv6_int_brief</cmdfile></command><command><cmdname>sh ipv6 protocol</cmdname><cmdfile>./output/C1_TR1_IT1_R1_sh_ipv6_protocol</cmdfile></command><command><cmdname>sh ipv6 route local</cmdname><cmdfile>./output/C1_TR1_IT1_R1_sh_ipv6_route_local</cmdfile></command><command><cmdname>sh ipv6 route summary</cmdname><cmdfile>./output/C1_TR1_IT1_R1_sh_ipv6_route_summary</cmdfile></command><command><cmdname>sh ipv6 route connected</cmdname><cmdfile>./output/C1_TR1_IT1_R1_sh_ipv6_route_connected</cmdfile></command><command><cmdname>sh ipv6 route stat</cmdname><cmdfile>./output/C1_TR1_IT1_R1_sh_ipv6_route_stat</cmdfile></command><command><cmdname>sh ipv6 access-list</cmdname><cmdfile>./output/C1_TR1_IT1_R1_sh_ipv6_access-list</cmdfile></command><command><cmdname>sh ipv6 prefix-list</cmdname><cmd