Save $25 for your Cloud Computing Solution with Digital Ocean.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = '' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Usage: | |
$ cat hastebin.py | ./hastebin.py | |
http://hastebin.com/KEY | |
$ ./hastebin.py hastebin.py | |
http://hastebin.com/KEY | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum install -y nspr | |
yum install -y nspr-devel | |
yum install -y nss | |
yum install -y nss-devel | |
yum install -y 389-ds-base-devel | |
yum install -y krb5-devel | |
yum install libcrypto | |
yum install -y openssl-devel | |
yum install -y libuuid-devel | |
yum install -y libtalloc-devel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# How to sign your custom RPM package with GPG key | |
# Step: 1 | |
# Generate gpg key pair (public key and private key) | |
# | |
# You will be prompted with a series of questions about encryption. | |
# Simply select the default values presented. You will also be asked | |
# to create a Real Name, Email Address and Comment (comment optional). | |
# | |
# If you get the following response: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
REM -- Automates cygwin installation | |
SETLOCAL | |
REM -- Change to the directory of the executing batch file | |
CD %~dp0 | |
REM -- Configure our paths | |
SET SITE=http://mirrors.kernel.org/sourceware/cygwin/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir alias | |
certutil -N -d ./alias/ | |
certutil -S -s "CN=CA Issuer" -n CACert -x -t "CT,C,C" -v 120 -m 1234 -d alias/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget https://copr.fedoraproject.org/coprs/purpleidea/vagrant-libvirt/repo/epel-7/purpleidea-vagrant-libvirt-epel-7.repo -O /etc/yum.repos.d/vagrant-libvirt.repo | |
yum install -y vagrant-libvirt |