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 | |
# checkmodulus | |
# | |
# Usage: checkmodulus <file1> <file2> | |
# | |
# Compares the modulus of two X.509 files (cert, key, or CSR) | |
# Returns 0 if they match, 1 if they do not, or something else on error | |
fail () { | |
ret=$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
#!/usr/bin/python3 | |
import re | |
import shlex | |
import json | |
def expand_backslashn(mystr): | |
try: | |
return re.sub(r'[\\]n', "\n", mystr) |
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
#!/usr/bin/env python3 | |
# this leaves comments and ordering alone. It does however mess up strings with non-ASCII characters | |
import sys | |
import ruamel.yaml as yaml | |
with open(sys.argv[1]) as s: | |
yy = yaml.load(s, Loader=yaml.RoundTripLoader) | |
if "Resources" not in yy: |
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
Active: True | |
AppDescription: ATLAS Production and Analysis | |
CertificateOnly: False | |
Community: The ATLAS physics community. | |
Contacts: | |
Security Contact: | |
- John Hover | |
Administrative Contact: | |
- John Hover | |
Miscellaneous Contact: |
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 da3dc7e9b7ba17d8448a00eacab9adfc6a75b444 Mon Sep 17 00:00:00 2001 | |
From: Matyas Selmeci <matyas@cs.wisc.edu> | |
Date: Thu, 8 Sep 2016 11:12:23 -0500 | |
Subject: [PATCH] kojid_scmbuild_check_spec_after_running_sourcecmd | |
Check that the spec file is present and valid _after_ using the | |
source_cmd to fetch it (for VCS builds). | |
--- | |
builder/kojid | 21 +++++++++++++-------- | |
1 file changed, 13 insertions(+), 8 deletions(-) |
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
---++ RSV | |
This section handles the configuration and setup of the RSV services This section is contained in =/etc/osg/config.d/30-rsv.ini= which is provided by the =osg-configure-rsv= RPM. | |
| Option | Values Accepted | Explanation | | |
| *enabled* | =True=, =False=, =Ignore= | This indicates whether the rsv service is being used or not. | | |
| *rsv_user* | String | This gives username that rsv will run under. If this is blank or set to =UNAVAILABLE=, it will default to rsv. | | |
| *gratia_probes* | String | This settings indicates which rsv gratia probes should be used. It is a list of probes separated by a comma. Valid probes are metric, condor, pbs, lsf, sge, managedfork, hadoop-transfer, and gridftp-transfer | | |
| ce_hosts | String | This option lists the serviceURI of the CEs that generic RSV CE probes should check. This should be a list of serviceURIs =(hostname[:port/service])= separated by a comma (e.g. my.host,my.host2,my.host3:2812). This must be set if enable_ce_probes is set. If this is left blank or |
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 | |
# naughtyvoms.sh | |
# Generates a fake VOMS proxy for any VO (and optionally VO-group) we want | |
vo=${1?Which VO do you want to be in?} | |
vogroup=${2:-$1} | |
sudo true || { echo "Need sudo privs"; exit 1; } | |
uid=`id -u` |