Skip to content

Instantly share code, notes, and snippets.

@Nepomuk
Nepomuk / DPG_template.tex
Last active December 31, 2015 03:29
Convert PANDAs collaboration member list to the DPG collaboration list LaTeX format. Joint effort with https://github.com/AndiH
\documentclass{scdpg}
\begin{document}
\scBookLanguage{de}
\begin{scCollaboration}
\scCollaborationName{PANDA}
#for $person in $persons
\scAuthor{}{$person.firstname}{$person.lastname}{$person.institute}
#end for
#for $key, $value in enumerate($institutes)
#set $id = $key + 1
@Nepomuk
Nepomuk / encfs_login.sh
Last active August 29, 2015 14:05
Mount a encfs/boxcryptor image with OSX and let it display as a local mount in finder.
#!/bin/bash
ENCFS="/usr/local/bin/encfs"
ENCDIR="$HOME/Dropbox/Boxcryptor.bcc"
DECDIR="/Volumes/Boxcryptor"
if [ ! -d "$DECDIR" ]; then
mkdir -p $DECDIR
fi

Keybase proof

I hereby claim:

  • I am nepomuk on github.
  • I am nepomuk (https://keybase.io/nepomuk) on keybase.
  • I have a public key whose fingerprint is 0EFC 085D 7A66 C165 E3D6 5806 BEA5 5B72 AC23 AEED

To claim this, I am signing this object:

@Nepomuk
Nepomuk / combineData.sh
Last active August 29, 2015 14:16
Recursively add multiple root data files into one.
#!/bin/bash
prefix="cascade"
dataDir="data/prometheus/"
subDir=""
postfixes="pid_complete
reco_complete
cascade_ana-0"
@Nepomuk
Nepomuk / tableau_colors.cpp
Last active August 29, 2015 14:17
Tableau20 Colors for ROOT
/**
* @file tableau_colors.cpp
* @Author André Goerres ([email protected])
* @date 2015
* @brief Tableau color scheme for ROOT
*
* This file adds predefined colors according to the tableau color palette. Two
* different namespaces are offered providing 20 nicely balanced colors or 10
* colors color blind people can savely distinguish.
* -André
@Nepomuk
Nepomuk / cascade_job_resubmit.sh
Last active August 29, 2015 14:19
Resubmit jobs on Sun Grid Engine
#!/bin/bash
# restart all currently running jobs which are hanging for some reason
if [ "$1" == "qstat" ]; then
qstat=$(qstat -u $USER)
jobIDs=$(echo "$qstat" | awk -v col=1 'NR > 2 {print $col}' | sort | uniq)
taskIDs=$(echo "$qstat" | awk -v col=10 'NR > 2 {print $col}')
# kill currently running jobs
for id in $jobIDs; do
@Nepomuk
Nepomuk / mkv_keep_eng_track.sh
Created November 20, 2017 10:00
Keep only the English audio track of a mkv file.
#!/bin/bash
directory=$1
dest=/Volumes/Andre_800G/Serien/ready/
destBin="done"
cd $directory
if [ ! -d "$destBin" ]; then
echo "Creating folder $destBin..."