This file contains hidden or 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
package main | |
import ( | |
"flag" | |
"fmt" | |
"log" | |
"os" | |
"regexp" | |
"time" |
This file contains hidden or 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 logging | |
import os | |
from osc.stdlib import exec_cmd | |
log = logging.getLogger(__name__) | |
# Needed to support Python 2.6 | |
from osc.logs import logging_null_handler | |
log.addHandler(logging_null_handler) | |
class GPFS(object): |
This file contains hidden or 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 python | |
import os | |
import sys | |
import argparse | |
import subprocess | |
import time | |
import datetime | |
import pytz | |
import filelock |
This file contains hidden or 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
--[[ | |
SLURM job submit filter for QOS | |
Some code and ideas pulled from https://github.com/edf-hpc/slurm-llnl-misc-plugins/blob/master/job_submit/job_submit.lua | |
--]] | |
--########################################################################-- | |
-- |
This file contains hidden or 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 | |
readonly ENVIRONMENTPATH="/apps/puppet/environments" | |
readonly DEF_ENV="production" | |
readonly PROGNAME=$(basename $0) | |
usage () { | |
cat << EOF | |
usage: ${PROGNAME} [OPTIONS] |
This file contains hidden or 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
# Steps to extract the contents of perfSONAR NetInstall ISO | |
# Download ISO and MD5 checksum | |
wget http://software.internet2.edu/pS-Performance_Toolkit/pS-Performance_Toolkit-3.4-NetInstall-x86_64.iso | |
wget http://software.internet2.edu/pS-Performance_Toolkit/pS-Performance_Toolkit-3.4-NetInstall-x86_64.iso.md5 | |
md5sum -c pS-Performance_Toolkit-3.4-NetInstall-x86_64.iso.md5 | |
# Mount ISO | |
mkdir /mnt/perfsonar | |
sudo mount -o loop pS-Performance_Toolkit-3.4-NetInstall-x86_64.iso /mnt/perfsonar |
This file contains hidden or 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
## | |
# Copyright 2013-2014 Ghent University | |
# | |
# This file is part of EasyBuild, | |
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en), | |
# with support of Ghent University (http://ugent.be/hpc), | |
# the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en), | |
# the Hercules foundation (http://www.herculesstichting.be/in_English) | |
# and the Department of Economy, Science and Innovation (EWI) (http://www.ewi-vlaanderen.be/en). | |
# |
This file contains hidden or 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 | |
RPMBUILD_OPTS="--define '_without_aix 1' \ | |
--define '_with_blcr 1' \ | |
--define '_with_lua 1' \ | |
--define '_without_postgres 1' \ | |
--define '_without_sgijob 1' \ | |
--define '_with_pam 1' \ | |
--define '_with_readline 1' \ | |
--define '_with_mysql 1' \ |
This file contains hidden or 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
-- -*- lua -*- | |
-- vim:ft=lua:et:ts=4 | |
require("sandbox") | |
require("strict") | |
local Dbg = require("Dbg") | |
local dbg = Dbg:dbg() | |
local unpack = unpack or table.unpack | |
local hook = require("Hook") |
This file contains hidden or 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 | |
# Uses oVirt Host Deploy Protocol - http://www.ovirt.org/Features/HostDeployProtocol | |
# Define variables | |
engine="<CHANGEME ENGINE FQDN>" | |
address="<CHANGEME IPADDRESS>" # Could use `facter ipaddress` | |
sshPort=22 | |
sshKeyFingerprint=$(ssh-keygen -lf /etc/ssh/ssh_host_rsa_key | awk -F' ' '{ print $2 }') # Facter does not yet have this fact | |
sshUser="root" |