This file contains 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
import sys | |
import xml.etree.ElementTree as ET | |
tree = ET.parse(sys.argv[1]) | |
root = tree.getroot() | |
root.findall('properties') | |
attrib1 = {'name': 'polarion-group-id', 'value': sys.argv[2]} | |
ET.SubElement(root.findall('properties')[0],'property',attrib1) | |
tree.write(sys.argv[1]) |
This file contains 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
"Modified from project : https://pypi.org/project/PyHatch/" | |
import requests | |
import os | |
import datetime | |
import getpass | |
GITHUB_USER = 'ntkathole' | |
here = os.path.abspath(os.path.dirname(__file__)) |
This file contains 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
import os | |
import requests | |
ohsnap="" | |
satellite="6.5.0" | |
def main(): | |
for i in range(1,50): | |
flag = 0 | |
release = "{0}/api/releases/{1}/snaps/{2}.0/srpms".format(ohsnap,str(satellite),str(i)) |
This file contains 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
#! /bin/bash | |
name=${hostname} | |
mkdir ownca | |
pushd ownca | |
wget https://raw.githubusercontent.com/ntkathole/ownca/master/openssl.cnf | |
wget https://raw.githubusercontent.com/ntkathole/ownca/master/generate-ca.sh | |
wget https://raw.githubusercontent.com/ntkathole/ownca/master/generate-crt.sh | |
echo 100001 >> serial | |
chmod 744 *.sh | |
yes "" | ./generate-ca.sh |
This file contains 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
country=IN | |
state=Maharashtra | |
locality=Pune | |
organization=redhat | |
organizationalunit=QE | |
commonname=$(hostname) | |
openssl genrsa -out rootCA.key 2048 | |
openssl req -x509 -new -nodes -key rootCA.key -sha256 -days 1024 -out rootCA.pem -subj "/C=$country/ST=$state/L=$locality/O=$organization/OU=$organizationalunit/CN=$commonname" | |
openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out server.csr -subj "/C=$country/ST=$state/L=$locality/O=$organization/OU=$organizationalunit/CN=$commonname" |