Skip to content

Instantly share code, notes, and snippets.

View matz-e's full-sized avatar
🎯
Focusing

Matthias Wolf matz-e

🎯
Focusing
View GitHub Profile
@matz-e
matz-e / test.cc
Created April 30, 2021 12:31
HighFive dataset reading
#include <iostream>
#include <vector>
#include <unistd.h>
#include "highfive/H5File.hpp"
static
std::shared_ptr<std::vector<std::string>>
read()
{
@matz-e
matz-e / spack.yaml
Last active September 30, 2020 12:13
Spack installation log with separately concretized environment
spack:
view: false
concretization: separately
packages:
all:
compiler: [[email protected]]
target: []
version: []
buildable: true
providers: {}
@matz-e
matz-e / ofx-to-ledger.py
Created September 8, 2018 05:55 — forked from code-affinity/ofx-to-ledger.py
Python script for importing OFX files into a ledger-cli file
from __future__ import print_function
from ofxparse import OfxParser
import os
import re
import sys
if len(sys.argv) != 1:
print ('This utility does not take command-line arguments')
exit()
@matz-e
matz-e / kitty_crash.log
Created May 31, 2018 05:20
kitty crash log on MacOS
Process: kitty [75725]
Path: /Applications/kitty.app/Contents/MacOS/kitty
Identifier: net.kovidgoyal.kitty
Version: 0.10.0 (0.10.0)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: kitty [75725]
User ID: 501
Date/Time: 2018-05-31 07:19:58.849 +0200
@matz-e
matz-e / beeminder.py
Last active June 2, 2017 23:02 — forked from annawoodard/beeminder.py
Send beeminder word count delta, not cumulative
#!/usr/local/bin/python3
import re
import requests
import shlex
import subprocess
# login to beeminder and visit https://www.beeminder.com/api/v1/auth_token.json
auth_token = 'token'
username = 'username'
goal = 'thesis'
@matz-e
matz-e / beeminder.py
Last active May 29, 2017 16:29 — forked from annawoodard/beeminder.py
Update beeminder with TeX wordcount
#!/usr/local/bin/python3
import re
import requests
import shlex
import subprocess
# login to beeminder and visit https://www.beeminder.com/api/v1/auth_token.json
auth_token = 'token'
username = 'username'
goal = 'thesis'
@matz-e
matz-e / trigger_studies.sh
Last active June 28, 2016 09:39
Recipe for trigger update studies (Phase 1)
# Recipe from the RECO/DIGI part of HCAL:
# https://twiki.cern.ch/twiki/bin/view/CMS/HcalPhase1SoftwareSimulationRecipe
# has a useful script for MC generation
cmsrel CMSSW_8_1_0_pre8
cd CMSSW_8_1_0_pre8/src
cmsenv
git cms-init
git cms-merge-topic matz-e:hcal-tp-2017-v3
scram b -j 12
# Download SinglePi_Phase1.sh from the twiki above and copy it into local directory
import FWCore.ParameterSet.Config as cms
process = cms.Process("HFCALIB")
## Import of standard configurations
process.load('FWCore/MessageService/MessageLogger_cfi')
process.MessageLogger.cerr.FwkReport.reportEvery = 100
process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff")
from Configuration.AlCa.autoCond import autoCond
@matz-e
matz-e / run.sh
Last active December 10, 2015 13:33
Run CMS MCM workflow with one event
#!/bin/sh
set -e
mkdir -p mc_gen3
cd mc_gen3
source /cvmfs/cms.cern.ch/cmsset_default.sh
curl -k https://cms-pdmv.cern.ch/mcm/public/restapi/requests/get_setup/HIG-RunIIWinter15wmLHE-00196 > setup01_lhe.sh
@matz-e
matz-e / hf_1x1_test.py
Last active December 1, 2015 14:53
Test configuration for HCAL HF 1x1 update
import FWCore.ParameterSet.Config as cms
process = cms.Process("HFCALIB")
## Import of standard configurations
process.load('FWCore/MessageService/MessageLogger_cfi')
process.MessageLogger.cerr.FwkReport.reportEvery = 100
process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff")
process.GlobalTag.globaltag = 'PRE_SHI72_V7'