For educational reasons I've decided to create my own CA. Here is what I learned.
Lets get some context first.
# 2to3 lib/ansible/modules/network/eos/eos_banner.py | |
RefactoringTool: Skipping implicit fixer: buffer | |
RefactoringTool: Skipping implicit fixer: idioms | |
RefactoringTool: Skipping implicit fixer: set_literal | |
RefactoringTool: Skipping implicit fixer: ws_comma | |
RefactoringTool: Refactored lib/ansible/modules/network/eos/eos_banner.py | |
--- lib/ansible/modules/network/eos/eos_banner.py (original) | |
+++ lib/ansible/modules/network/eos/eos_banner.py (refactored) | |
@@ -97,7 +97,7 @@ | |
want, have = updates |
#!/usr/bin/env python | |
""" | |
Usage: | |
$ cat hastebin.py | ./hastebin.py | |
http://hastebin.com/KEY | |
$ ./hastebin.py hastebin.py | |
http://hastebin.com/KEY | |
""" |
Save $25 for your Cloud Computing Solution with Digital Ocean.
from pyVim.connect import SmartConnect, Disconnect | |
import ssl | |
import atexit | |
from pyVmomi import vim | |
def connect(): | |
context = ssl.SSLContext(ssl.PROTOCOL_SSLv23) | |
context.verify_mode = ssl.CERT_NONE | |
username = '' |
[root@qeos-39 ~]# ldapsearch -x -D "cn=Directory Manager" -h localhost -p 38901 -b "uid=testuser,ou=People,dc=example,dc=com" -w password | |
# extended LDIF | |
# | |
# LDAPv3 | |
# base <uid=testuser,ou=People,dc=example,dc=com> with scope subtree | |
# filter: (objectclass=*) | |
# requesting: ALL | |
# | |
# testuser, People, example.com |
If you get SSL verify error | |
# python get-pip.py | |
Collecting pip | |
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579)'),)': /simple/pip/ | |
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579)'),)': /simple/pip/ | |
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579)'),)': /simple/pip/ | |
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579)'),)': /simple/pip/ | |
Retrying (Retry(total=0, connect=None, read=None, redirect=None, |
Revisiting Python3 | |
++++++++++++++++++ | |
Everyone just join this link for etherpad, it will be easy for you to copy links and share code - | |
https://review.rdoproject.org/etherpad/p/pythonjune-101 | |
Just add your name when you are typing anything here - | |
[abhijeet] https://gitlab.com/akasurde/python3_101 - Final project code is here |
$ cat main.yml | |
--- | |
- hosts: localhost | |
gather_facts: no | |
tasks: | |
- include: "snapshot.yml snap={{ servername }}" | |
with_items: | |
- vm_name: server1 | |
snap_name: snap_1 |
1. Download and Install VirtualBox - https://www.virtualbox.org/wiki/Downloads (Please check respective OS instructions) | |
2. Download and Install Vagrant - http://www.vagrantup.com/downloads.html (Please check OS specific instructions) | |
3. Create a new directory | |
4. From the command line, run the following commands: (This will download Fedora 28 image and save as box) | |
$ vagrant init fedora/28-cloud-base | |
$ vagrant up | |
$ vagrant ssh | |
$ exit |