Skip to content

Instantly share code, notes, and snippets.

View alja's full-sized avatar

Alja Mrak Tadel alja

  • UCSD
  • San Diego, CA
View GitHub Profile
@alja
alja / fopen.py
Created February 22, 2024 21:20
Python script that generates cached files
from XRootD import client
from XRootD.client.flags import OpenFlags
import os, signal
import sys
import time
import random
#--------------------------------------------------------------`-----------------
@alja
alja / fillcache.cfg
Created February 22, 2024 21:15
Xrootd configuration to create test cache
all.export /
all.export /xrdpfc_command/
pfc.allow_xrdpfc_command
pfc.dirstats maxdepth 5
# pfc.dirstats maxdepth 4 dir /gen
xrd.port 7779
xrd.allow host *
all.role server
@alja
alja / test
Created April 9, 2020 20:29
Screenshot for cms-nano
Screenshot of cms-nano app.
@alja
alja / add-collection.png
Last active December 18, 2019 23:20
Fireworks2-gifs
add-collection.png
#!/usr/bin/perl
use strict;
use vars qw ($FW_ENABLED);
use Date::Parse;
use Getopt::Long;
sub convert_time {
my $time = shift;
my $days = int($time / 86400);
#!/usr/bin/env python
import FWCore.ParameterSet.VarParsing as VarParsing
import FWCore.ParameterSet.Config as cms
import sys
process = cms.Process("FFWDISPLAY")
process.source = cms.Source(
"PoolSource",
@alja
alja / screenSaver.pl
Created October 17, 2014 15:55
disable screen going to sleep
#!/usr/bin/env perl
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =
localtime(time);
$stt = localtime;
print "ssCheck $stt HOUR = $hour \n";
$ENV{DISPLAY}=':0.0';
@alja
alja / git_t&t
Last active November 13, 2015 19:19
git_t&t
git clone -n https://github.com/cms-sw/cmssw src
cd src
git config core.sparsecheckout true
cat ~/fwlite_build_set | grep Fire > .git/info/sparse-checkout
checkout existing branch on my-cmssw
git clone -b calo2 -n https://github.com/alja/cmssw $CMSSW_BASE/src
#!/usr/bin/env python
import FWCore.ParameterSet.Config as cms
process = cms.Process("FFWDISPLAY")
from RecoMET.METProducers.METSigParams_cfi import *
process.source = cms.Source( "PoolSource",
@alja
alja / xrd.config
Last active December 29, 2015 00:29
all.export /store
xrd.allow host *
sec.protocol host
sec.protbind * none
all.adminpath /tmp/XrootdAdmin