Skip to content

Instantly share code, notes, and snippets.

@bougui505
bougui505 / find_rigid_alignment.py
Last active May 10, 2023 05:08
Rigid alignment between points (Kabsch algorithm)
#!/usr/bin/env python3
# -*- coding: UTF8 -*-
# Author: Guillaume Bouvier -- guillaume.bouvier@pasteur.fr
# https://research.pasteur.fr/en/member/guillaume-bouvier/
# 2020-10-01 10:13:01 (UTC+0200)
import numpy as np
@rmcgibbo
rmcgibbo / sbatch.sh
Last active February 19, 2016 09:49
Multiple trajectories + checkpointing with OpenMM
#!/bin/bash
#SBATCH --partition=long
#SBATCH --job-name=<job-name>
#SBATCH --output=<job-name>-%j.stdout
#SBATCH --error=<job-name>-%j.stderr
#SBATCH --time=24:00:00
#SBATCH --qos=normal
#SBATCH --nodes=1
#SBATCH --mail-type=ALL
@bougui505
bougui505 / ssh_config
Last active August 29, 2015 14:01
ssh ProxyCommand. Replace distant_hostname by the hostname of the distant machine to connect, ssh_server by the server accessible from your local machine and distant_machine by the machine you want to connect through ssh_server. File must be placed in ~/.ssh/config.
Host distant_hostname
User your_username
ProxyCommand ssh user@ssh_server exec nc distant_machine 22
@bougui505
bougui505 / beamer_transparency.tex
Last active August 29, 2015 14:00
To manage transparency with latex beamer and acrobat reader
\pdfpageattr{/Group <</S /Transparency /I true /CS /DeviceRGB>>} %To manage transparency with latex beamer and acrobat reader