Skip to content

Instantly share code, notes, and snippets.

View xealits's full-sized avatar
🥘

Alex Toldaiev xealits

🥘
View GitHub Profile
@xealits
xealits / ROOT open, calculate, write out 1
Last active August 29, 2015 14:27
ROOT opening a tbranch of a ttree from a tfile, doing a calculation, writing a histogram
#include "TFile.h"
#include "TTree.h"
#include "TH1D.h"
#include <iostream>
void histo2()
{
std::cout << "fetch file\n" ;
@xealits
xealits / eos_commands
Last active October 11, 2016 15:58 — forked from nsahoo/eos_commands
EOS commands in CMS
# list the files in EOS
eos ls [-la] /eos/cms/user/t/test/
# copy all inside the directory recursively
eos cp -r /eos/cms/user/t/test/histodirectory/ /afs/cern.ch/user/t/test/histodirectory
# copy a single file
eos cp /eos/cms/user/t/test/histo.root /tmp/
eos cp /eos/cms/store/user/Username/Datadir/Data.root .
@xealits
xealits / reboot the system, run steam, crash, run again, the same error
Created January 1, 2015 19:32
end of 2014 year, double-upgraded Ubuntu from 13.04 to 14.04, Steam doesn't login. Sometimes it doesn't get even to login page. Sometimes the page does not respond. When it does after clicking login nothing happens. Here is the terminal outputs for various attempts
$ steam
Running Steam on ubuntu 14.04 32-bit
STEAM_RUNTIME is enabled automatically
Installing breakpad exception handler for appid(steam)/version(1416617579)
Installing breakpad exception handler for appid(steam)/version(1416617579)
Installing breakpad exception handler for appid(steam)/version(1416617579)
Gtk-Message: Failed to load module "overlay-scrollbar"
Gtk-Message: Failed to load module "unity-gtk-module"
Gtk-Message: Failed to load module "overlay-scrollbar"
Gtk-Message: Failed to load module "unity-gtk-module"
@xealits
xealits / installed libnss-mdns-i386, got this message, removed the second monitor cable, got the same
Last active August 29, 2015 14:12
end of 2014 year, double-upgraded Ubuntu from 13.04 to 14.04, Steam doesn't login. Sometimes it doesn't get even to login page. Sometimes the page does not respond. When it does after clicking login nothing happens. Here is the terminal output after upgrading Intel graphics, installing libnss-mdns-i386 and removing second monitor cable.
$ steam
Running Steam on ubuntu 14.04 32-bit
STEAM_RUNTIME is enabled automatically
Installing breakpad exception handler for appid(steam)/version(1416617579)
Installing breakpad exception handler for appid(steam)/version(1416617579)
Installing breakpad exception handler for appid(steam)/version(1416617579)
Gtk-Message: Failed to load module "overlay-scrollbar"
Gtk-Message: Failed to load module "unity-gtk-module"
Gtk-Message: Failed to load module "overlay-scrollbar"
Gtk-Message: Failed to load module "unity-gtk-module"
$ steam
Running Steam on ubuntu 14.04 32-bit
STEAM_RUNTIME is enabled automatically
Installing breakpad exception handler for appid(steam)/version(1416617579)
Installing breakpad exception handler for appid(steam)/version(1416617579)
Installing breakpad exception handler for appid(steam)/version(1416617579)
Gtk-Message: Failed to load module "overlay-scrollbar"
Gtk-Message: Failed to load module "unity-gtk-module"
Gtk-Message: Failed to load module "overlay-scrollbar"
Gtk-Message: Failed to load module "unity-gtk-module"
@xealits
xealits / gctags
Created May 19, 2014 13:28 — forked from leoliu/gctags
#!/bin/bash
export GTAGSLABEL=ctags
if [ -r $PWD/.globalrc ]; then
GTAGSCONF=$PWD/.globalrc
elif [ -r $HOME/.globalrc ]; then
GTAGSCONF=$HOME/.globalrc
elif [ -r /usr/local/share/gtags/gtags.conf ]; then
GTAGSCONF=/usr/local/share/gtags/gtags.conf