Skip to content

Instantly share code, notes, and snippets.

View oshadura's full-sized avatar
:octocat:

Oksana Shadura oshadura

:octocat:
  • CERN
  • Geneva
View GitHub Profile
DataFormats/Alignment is missing DataFormats/GeometrySurface
DataFormats/Alignment is missing DataFormats/CLHEP
DataFormats/Alignment is missing DataFormats/DetId
DataFormats/BTauReco is missing DataFormats/GeometryVector
DataFormats/BTauReco is missing DataFormats/Candidate
DataFormats/BTauReco is missing DataFormats/GeometryCommonDetAlgo
DataFormats/BTauReco is missing DataFormats/EgammaReco
DataFormats/BeamSpot is missing DataFormats/GeometrySurface
DataFormats/BeamSpot is missing DataFormats/Math
DataFormats/CSCDigi is missing DataFormats/MuonData
@oshadura
oshadura / gpg-import-and-export-instructions.md
Created January 21, 2020 12:59 — forked from chrisroos/gpg-import-and-export-instructions.md
Instructions for exporting/importing (backup/restore) GPG keys

Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.

Method 1

Backup the public and secret keyrings and trust database

cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/

or, instead of backing up trustdb...

@oshadura
oshadura / delete_git_submodule.md
Created January 20, 2020 14:40 — forked from myusuf3/delete_git_submodule.md
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
setenv ARCH slc7_amd64_gcc820
setenv PKGTOOLS_TAG V00-32-XX
setenv CMSDIST_TAG IB/CMSSW_11_1_X/rootmodule
git clone -b $CMSDIST_TAG [email protected]:cms-sw/cmsdist.git CMSDIST ; git clone -b $PKGTOOLS_TAG [email protected]:cms-sw/pkgtools.git PKGTOOLS
I have some local modifications to CMSDIST - see below -
#echo "check scram list CMSSW_11_0_X to see if it is week0 or week1 and adjust the next command"
#echo "then PKGTOOLS/cmsBuild --repo cms.week1 -a $ARCH -j 6 --builders 4 build cmssw-tool-conf > & go.1 &"
@oshadura
oshadura / cmssw_cheatsheet.md
Created October 10, 2019 15:22 — forked from vgvassilev/cmssw_cheatsheet.md
CMSSW Cheatsheet

Running CMSSW with custom ROOT build

Source what's needed:

ssh lxplus
bash
source /cvmfs/sft-nightlies.cern.ch/lcg/views/dev3/latest/x86_64-centos7-gcc8-opt/setup.sh
source /cvmfs/cms.cern.ch/slc7_amd64_gcc700/external/cmake/3.14.5/etc/profile.d/init.sh
@oshadura
oshadura / dotfiles
Created May 17, 2019 09:31 — forked from rosghub/dotfiles
Manjaro i3 Hi-DPI config
#
# Configuration files for Manjaro i3 on Lenovo Yoga 2 pro
# to scale properly on HiDPI (3200x1800)
#
#####################################################
~/.profile #
#####################################################
# UI element scaling, icons
export GDK_SCALE=2
@oshadura
oshadura / .Xresources-hidpi
Created May 17, 2019 09:29 — forked from boznius/.Xresources-hidpi
.Xresources-hidpi
Xft.dpi : 227
Xft.antialias: false
Xft.rgba: rgb
URxvt.scrollstyle: xterm
URxvt.background: black
URxvt.foreground: gray
URxvt.preeditType: Root
URxvt.scrollBar_right: true
URxvt.jumpScroll: true
@oshadura
oshadura / GlobalModulesIndex.md
Created February 11, 2019 12:53 — forked from yamaguchi1024/GlobalModulesIndex.md
Introduction to GlobalModulesIndex project at HSF group

Thank you for the interest in GlobalModulesIndex project at HSF group! As this project is highly technical, it is necessary to have some understanding of ROOT and Clang before starting to write proposal. This document is dedicated to give a surface introduction of C++ modules, and to give a project which you can try out.

Build ROOT with C++ Modules

git clone https://github.com/root-project/root
mkdir root-build
cd root-build
cmake ../root -Druntime_cxxmodules=On -Droot7=Off (-GNinja)
make (or ninja)
@oshadura
oshadura / effective_modern_cmake.md
Created April 24, 2018 11:45 — forked from mbinna/effective_modern_cmake.md
Effective Modern CMake

Effective Modern CMake

Getting Started

For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.

After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](https://www.amazon.de/Large-Scale-Soft