Skip to content

Instantly share code, notes, and snippets.

View surhudm's full-sized avatar

Surhud More surhudm

View GitHub Profile
@surhudm
surhudm / LSST_pipeline_setup.md
Last active November 26, 2021 10:26
LSST pipeline setup

Here I describe my experience in setting up the LSST pipeline Gen3 butler on an IUCAA server.

Set up the LSST stack

mkdir -p lsst_stack
cd lsst_stack
curl -OL https://raw.githubusercontent.com/lsst/lsst/master/scripts/newinstall.sh
bash newinstall.sh -ct
source loadLSST.bash
eups distrib install -t v23_0_0_rc2
@surhudm
surhudm / Pegasus.md
Last active June 29, 2020 18:57
Pegasus access

Access to Pegasus

The Pegasus cluster will disable the passphrase authentication system from July 5th, 2020 (11:59 am IST). We will only use ssh key based authentication in order to gain access to the cluster. Please follow the instructions below to create your SSH keys. We provide methods for different platforms here.

Table of contents

  1. SSH key generation
    1. Linux/MacOSX/Windows
  2. Using SSH key to access pegasus
    1. Linux
  3. OSX

Solving HP 1040 G6 Elitebook keyboard issues in Linux

Got a new HP 1040 G6. Most things work out of the box with Fedora, but I saw the following issues

  • Input from the keyboard.
    • Brightness keys do not work.
    • Mute button does not work.
    • Calendar button does not work.
    • Presentation button does not work.
    • Call receive and call end buttons do not work.
@surhudm
surhudm / mpi.md
Last active June 13, 2019 12:02
A simple mpi python program

A simple mpi program which outputs the rank and size of the MPI pool.

Save the following program as say test.py.

#!/usr/bin/env python
from mpi4py import MPI
from subprocess import call

comm = MPI.COMM_WORLD
@surhudm
surhudm / linux.md
Last active June 13, 2019 11:53
Useful linux commands

Useful linux commands:

# List files in directory
ls -lrt

# Show contents of file
cat filename

# Useful to parse lines
@surhudm
surhudm / vnc.md
Last active May 17, 2020 14:40
Setup vnc

Setup vnc

Setup ssh

First of all in .ssh/config, create an entry:

host shortnamevnc
    hostname the_url_of_server
    localforward 12345 localhost:5901
 identityfile ~/.ssh/id_rsa
@surhudm
surhudm / GNUPG_agent_forwarding.md
Last active February 18, 2022 17:50
GNUPG agent forwarding

Forward GNUPG agent with the following steps:

On the remote insecure machine:

Run gpg once to create the directory structure.

gpg --list-keys

On the local machine:

@surhudm
surhudm / GNUPG.md
Last active May 25, 2017 21:43
gpg key creation

Creating the public/private key pair (For the blinder)

gpg --gen-key

Choose the default options for the following first three questions

What kind of key? RSA and RSA

@surhudm
surhudm / getdist.md
Last active April 24, 2017 01:05
GetDist setup procedure

Installing blind version of getdist

Here is the procedure to install the blind version of getdist from my fork to your computer.

On your command line type:

pip install --user git+https://github.com/surhudm/getdist.git@53aa798b228
For linux:
Install python-pyside using your system package manager
bash $ sudo apt install python-pyside
Or
bash $ sudo dnf install python-pyside
If you do not have root permissions, even the following may work