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
''' Export GitLab variables to .propoerties file | |
Usage: | |
gitlab-export-env.py <CONFIG_ID> <OBJECT_ID> [<FILE_NAME>] [<OBJECT_TYPE>] | |
CONFIG_ID - configuration id from python-gitlab | |
config file (https://python-gitlab.readthedocs.io/en/stable/cli.html#cli-configuration) | |
OBJECT_ID - id of project or group or project name | |
FILE_NAME (optional) - .properties file for export | |
OBJECT_TYPE (optional) [project|group] - type of environment variables, project is default. | |
Any other value interpreted as group |
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
const RDURL = 'https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqdev/redist/' | |
const https = require('https'); | |
const cheerio = require('cheerio'); | |
var V = 0 | |
var R = 0 | |
var M = 0 | |
var F = 0 | |
const request = https.get(RDURL, |
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
def test_gh192(self): | |
put_mqmd = pymqi.md() | |
put_mqmd.Format = pymqi.CMQC.MQFMT_STRING | |
put_opts = pymqi.pmo() | |
# Set the MsgType to request. | |
# put_mqmd["MsgType"] = CMQC.MQMT_REQUEST | |
put_mqmd["MsgId"] = b'00002Y0001T1' | |
put_mqmd["CorrelId"] = b'00002Y0001T2' |
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
def test_gh193(self): | |
attrs = [] | |
attrs.append(pymqi.CFST(Parameter=pymqi.CMQCFC.MQCACF_AUTH_PROFILE_NAME, | |
String=b'DEV.**')) | |
attrs.append(pymqi.CFIN(Parameter=pymqi.CMQCFC.MQIACF_OBJECT_TYPE, | |
Value=pymqi.CMQC.MQOT_Q)) | |
attrs.append(pymqi.CFSL(Parameter=pymqi.CMQCFC.MQCACF_GROUP_ENTITY_NAMES, | |
Strings=[b'admin'])) | |
attrs.append(pymqi.CFIL(Parameter=pymqi.CMQCFC.MQIACF_AUTH_ADD_AUTHS, | |
Values=[pymqi.CMQCFC.MQAUTH_OUTPUT, pymqi.CMQCFC.MQAUTH_INPUT])) |
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
from urllib2 import urlopen # Python 2 | |
from urllib2 import Request | |
from json import loads | |
from json import dumps | |
from .tstreamer import TStreamer | |
from time import sleep | |
from logger import Logger | |