Beispiel #1
0
#!/usr/bin/env jython
	
import util
util.setConfig("ndev.json")
from util import *

begin()

qStr = loadbalancerWithPTREvents()
#!/usr/bin/env jython

import org.hexp.hibernateexp.util.SslNonsense.SecurityBorker as SecurityBorker
import util
util.setConfig("stag.json", skipDb=True)
from util import *

import xmlrpclib
import re
import sys
import os

ssl_re = re.compile("^ssl[0-9]+$")

baseSubj = "C=US,ST=Texas,L=San Antonio,O=RackExp,OU=client TestSites"

SecurityBorker.bork()


def usage(prog):
    printf("usage is %s <chain.json> <dnsxmlrpcconf.json> <baseDomain> ", prog)
    printf("<Shared ip> <vs_name> <number> <info.db>\n")
    printf("\n")


def getCFS(info):
    crtNames = []
    cfs = []
    certs = info["certs"]
    vs_name = info["vs_name"]
    ip = info["ip"]
Beispiel #3
0
#!/usr/bin/env jython

import util
util.setConfig("ndev.json")
from util import *

begin()

qStr = loadbalancerWithPTREvents()
Beispiel #4
0
#!/usr/bin/env jython
	
import util
util.setConfig("slice.json")
from util import *

stubs.ce.getFileNames()
String(stubs.ce.downloadFile("global_error.html"))


vnames = stubs.vs.getVirtualServerNames()
protocols = stubs.vs.getProtocol(vnames)

for i in xrange(0,len(vnames)):
    if protocols[i].toString() != "http":
       continue
    print vnames[]

httpvs = [v for (v,p) in zip(vnames,protocols) if p.toString()=="http"]
errorfiles = ["global_error.html"]*len(httpvs)

stubs.vs.setErrorFile(httpvs, errorfiles)
Beispiel #5
0
def run():
    global config
    global exam

    if (platform.system() == "Linux"):
        location = os.getcwd() + '/'
    else:
        location = os.getcwd() + '\\'

    if not os.path.isfile(location + "exam.json"):
        print("Criando arquivo exam.json")
        exam = {
            "monitorHeight": 0,
            "monitorWidth": 0,
            "ledIr": 0,
            "ledBr": 0,
            "contraste": 0,
            "saturacao": 0,
            "nitidez": 0,
            "brilho": 50,
            "cameraMode": 7,
            "fps": 90,
            "exMin": 0,
            "exSeg": 5,
            "saveLocation": os.getcwd(),
            "colorEfect": False,
            "rColor": 128,
            "bColor": 128,
            "gColor": 128
        }
        util.setExam(exam)

    if not os.path.isfile(location + "configs.json"):
        print("Criando arquivo configs.json")
        res = {}
        res['resolutions'] = []
        res['resolutions'].append({
            "resName": "Mode 1",
            "minfps": 1,
            "maxfps": 30,
            "width": 1920,
            "height": 1080
        })
        res['resolutions'].append({
            "resName": "Mode 2",
            "minfps": 1,
            "maxfps": 15,
            "width": 2592,
            "height": 1944
        })
        res['resolutions'].append({
            "resName": "Mode 3",
            "minfps": 0.17,
            "maxfps": 1,
            "width": 2592,
            "height": 1944
        })
        res['resolutions'].append({
            "resName": "Mode 4",
            "minfps": 1,
            "maxfps": 42,
            "width": 1296,
            "height": 972
        })
        res['resolutions'].append({
            "resName": "Mode 5",
            "minfps": 1,
            "maxfps": 49,
            "width": 640,
            "height": 480
        })
        res['resolutions'].append({
            "resName": "Mode 6",
            "minfps": 42.1,
            "maxfps": 60,
            "width": 1920,
            "height": 1080
        })
        res['resolutions'].append({
            "resName": "Mode 7",
            "minfps": 60.1,
            "maxfps": 90,
            "width": 640,
            "height": 480
        })

        ext = {}
        ext['extensions'] = []
        ext['extensions'].append({
            "extension": "MP4",
            "archive": ".mp4",
            "text": "Arquivos MP4"
        })

        configs = {
            'resolutions': res['resolutions'],
            'extensions': ext['extensions']
        }

        util.setConfig(configs)

    # Comando para poder usar a camera do raspberry como camera normal
    if (platform.system() == "Linux"):
        os.system('sudo modprobe bcm2835-v4l2')

    # Cria a janela e passa como parametro o objeto da aplicação
    App(tkinter.Tk(), "Sistema Hórus")
Beispiel #6
0
#!/usr/bin/env jython

import org.hexp.hibernateexp.util.SslNonsense.SecurityBorker as SecurityBorker
import util
util.setConfig("stag.json",skipDb=True)
from util import *

import xmlrpclib
import re
import sys
import os

ssl_re = re.compile("^ssl[0-9]+$")

baseSubj = "C=US,ST=Texas,L=San Antonio,O=RackExp,OU=client TestSites"

SecurityBorker.bork()	

def usage(prog):
    printf("usage is %s <chain.json> <dnsxmlrpcconf.json> <baseDomain> ",prog)
    printf("<Shared ip> <vs_name> <number> <info.db>\n")
    printf("\n")

def getCFS(info):
    crtNames = []
    cfs = []
    certs = info["certs"]
    vs_name = info["vs_name"]
    ip = info["ip"]
    vss = []
    for (host,cb) in certs.items():