One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| query getAllEvents { | |
| listEvents{ | |
| items{ | |
| id | |
| name | |
| when | |
| } | |
| } | |
| } |
| import logging | |
| log = logging.getLogger('urllib3') | |
| log.setLevel(logging.DEBUG) | |
| stream = logging.StreamHandler() | |
| stream.setLevel(logging.DEBUG) | |
| log.addHandler(stream) | |
| #from http.client import HTTPConnection | |
| #HTTPConnection.debuglevel = 1 |
| import re | |
| x = re.search(r"\beva\b", value.lower()) | |
| if x: | |
| return "true" | |
| else: | |
| return "false" |
| from datetime import datetime | |
| date_time_obj = datetime.strptime(str(value),'%Y-%m-%d-%H-%M-%S') | |
| return date_time_obj.isoformat() | |
| # Openrefine supports ISO-8601 |
| try: | |
| int(value) | |
| except : | |
| value=0 | |
| finally: | |
| return value |
| return value.encode("utf-8").decode('raw-unicode-escape') |
| def binary_search(alist, item): | |
| first = 0 | |
| last = len(alist) - 1 | |
| found = False | |
| while first <= last and not found: | |
| midpoint = (first + last) / 2 | |
| if alist[midpoint] >= item: | |
| found = True | |
| else: |
| // Iterate through all the zip files in multi-part form-data (memory or disk) | |
| // For each file, extract it to destDir and change permissions of the file to the user one | |
| // If the zip file is a directory , empty subdirectories are ignored | |
| func extractFilesWithUserRights(files []*zip.File, filePath string, username string) error { | |
| uid, gid, err := getIdentifier(username) | |
| if err != nil { | |
| return err | |
| } |
| --- | |
| - hosts: registry | |
| become: true | |
| vars: | |
| public_ip: 10.197.138.130 | |
| tasks: | |
| - name: set selinux to permissive | |
| selinux: | |
| policy: targeted |