Skip to content

Instantly share code, notes, and snippets.

View atrisovic's full-sized avatar

Ana Trisovic atrisovic

View GitHub Profile

Basic Dockerfile:

FROM continuumio/miniconda

RUN apt-get update
RUN apt-get install -y software-properties-common

RUN apt-get install -y vim.tiny  
@atrisovic
atrisovic / archive_docker.md
Last active February 19, 2018 16:28
Save/Archive docker images via python from gitlab registry

Step 1:

pip install docker
pip install tqdm

Step 2:

import docker
@atrisovic
atrisovic / author_c.py
Last active February 1, 2018 10:27
Author counter - analysis of bibtex files
from __future__ import division
import bibtexparser
from bibtexparser.bparser import BibTexParser
from bibtexparser.customization import homogeneize_latex_encoding
alist=[]
with open('bibfile.bib') as bibtex_file:
parser = BibTexParser()
parser.customization = homogeneize_latex_encoding
bib_database = bibtexparser.load(bibtex_file, parser=parser)
WARNING:lb-run:trying old SetupProject ([Errno 2] cannot find file in ['.', '/cvmfs/lhcb.cern.ch/lib/lhcb/LHCBGRID/LHCBGRID_v12r0/InstallArea/x86_64-slc6-gcc48-opt', '/cvmfs/lhcb.cern.ch/lib/lhcb/COMPAT/COMPAT_v1r19/InstallArea/x86_64-slc6-gcc48-opt', '/cvmfs/lhcb.cern.ch/lib/lhcb/DAVINCI/DAVINCI_v36r1p2/InstallArea/x86_64-slc6-gcc48-opt', '/cvmfs/lhcb.cern.ch/lib/lhcb/DBASE/AppConfig/v3r324', '/cvmfs/lhcb.cern.ch/lib/lhcb/DBASE/FieldMap/v5r7', '/cvmfs/lhcb.cern.ch/lib/lhcb/PARAM/ParamFiles/v8r21', '/cvmfs/lhcb.cern.ch/lib/lhcb/PARAM/QMTestFiles/v1r3', '/cvmfs/lhcb.cern.ch/lib/lhcb/DBASE/PRConfig/v1r26', '/cvmfs/lhcb.cern.ch/lib/lhcb/DBASE/TCK/HltTCK/v3r18p6', '/cvmfs/lhcb.cern.ch/lib/lhcb/ANALYSIS/ANALYSIS_v13r1/InstallArea/x86_64-slc6-gcc48-opt', '/cvmfs/lhcb.cern.ch/lib/lhcb/STRIPPING/STRIPPING_v9r2/InstallArea/x86_64-slc6-gcc48-opt', '/cvmfs/lhcb.cern.ch/lib/lhcb/LBCOM/LBCOM_v16r1/InstallArea/x86_64-slc6-gcc48-opt', '/cvmfs/lhcb.cern.ch/lib/lhcb/PHYS/PHYS_v19r2/InstallArea/x86_64-slc6-gcc48-opt', '/cvmfs/
@atrisovic
atrisovic / program.cs
Last active November 11, 2016 13:44
Pavle 2
/*
zadatak: http://bubblebee.rs/problemi/01-Aritmetika/01-Formule/01-Poznate-formule/08-putovanje
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
@atrisovic
atrisovic / program.cs
Created November 11, 2016 13:22
Pavle
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
atrisovi@lxplus118: ~/panoramix > python $myPanoramix -u Vis/Panoramix/options/PanoramixNoGui.py
# setting LC_ALL to "C"
#### ['$PANORAMIXDATA/Sel_Bsmumu_2highest.dst']
>>> Found database tags: {'DDDB': ['head-20110302'], 'ONLINE': ['HEAD'], 'DQFLAGS': ['tt-20110126'], 'LHCBCOND': ['head-20110524']}
# WARNING: Default tag requested for partition DDDB (using dddb-20150724)
# WARNING: Default tag requested for partition LHCBCOND (using cond-20151016)
# WARNING: Using default tag head-2015604 for partition CALIBOFF
# WARNING: file '/afs/cern.ch/lhcb/software/releases/DBASE/TCK/L0TCK/v4r43/options/L0DUConfig.opts' already included, ignored.
# WARNING: file '/afs/cern.ch/lhcb/software/releases/DBASE/TCK/L0TCK/v4r43/options/L0DUConfig.opts' already included, ignored.
# WARNING: file '/afs/cern.ch/lhcb/software/releases/DBASE/TCK/L0TCK/v4r43/options/L0DUConfig.opts' already included, ignored.
# Apache server configuration
# This sets up a Flask application over SSL with CERN SSO authentication via
# Shibboleth.
# Load the SSL and Shibboleth modules
LoadModule ssl_module modules/mod_ssl.so
LoadModule mod_shib /usr/lib64/shibboleth/mod_shib_24.so
# Disable TRACE HTTP requests on CERN advice
TraceEnable Off