Skip to content

Instantly share code, notes, and snippets.

@markito3
markito3 / matrix.sh
Last active April 30, 2022 03:48
Script to run the b1pi test on the 2x2 matrix ccdb1/ccdb2 X mysql/sqlite
#!/bin/bash
ccdb[1]=mysql://ccdb_user@localhost/ccdb
ccdb[2]=mysql://ccdb_user@localhost/ccdb2
ccdb[3]=sqlite:////data/scratch/ccdb_convert_scratch/ccdb1.sqlite
ccdb[4]=sqlite:////data/scratch/ccdb_convert_scratch/ccdb2.sqlite
rundir[1]=mysql1
rundir[2]=mysql2
rundir[3]=sqlite1
rundir[4]=sqlite2
@markito3
markito3 / bsutil.py
Created January 3, 2019 22:06
beginning of general tool to drive build_script actions
#!/usr/bin/env python
import argparse
import os
import subprocess
import sys
import xml.dom.minidom
print "type", "\"" + os.path.basename(__file__), "-h\" for usage message"
@markito3
markito3 / user_list_svn_convert.pl
Created August 6, 2015 14:33
Script to create "halld" subversion author list for svn2git conversion.
#!/usr/bin/env perl
$groupid = 267;
open (YPCAT,"ypcat group |");
$group_count = 0;
$liststring = "";
while (<YPCAT>) {
if (/:$groupid:/) {
#print;
$group_count++;
chomp;