Skip to content

Instantly share code, notes, and snippets.

View csdaw's full-sized avatar
✍️
Writing my thesis..

Charlotte Dawson csdaw

✍️
Writing my thesis..
  • University of Cambridge
  • Cambridge, UK
  • X @csdawsonn
View GitHub Profile
@RalfG
RalfG / ppm_vs_dalton.md
Last active July 17, 2023 02:52
Dalton vs ppm mass error in mass spectrometry

Dalton vs ppm mass error in mass spectrometry

import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
sns.set_style("whitegrid")

def ppm_to_da(error_ppm, theoretical_mass):
 error_da = theoretical_mass / ((1/ error_ppm) * 1000000)
@danieldogeanu
danieldogeanu / MakePowerShellRememberSSHPassphrase.md
Last active April 23, 2024 12:18
How to make Powershell remember the SSH key passphrase.

You should not use the Open SSH client that comes with Git for Windows. Instead, Windows 10 has its own implementation of Open SSH that is integrated with the system. To achieve this:

  1. Start the ssh-agent from Windows Services:
  • Type Services in the Start Menu or Win+R and then type services.msc to launch the Services window;
  • Find the OpenSSH Authentication Agent in the list and double click on it;
  • In the OpenSSH Authentication Agent Properties window that appears, choose Automatic from the Startup type: dropdown and click Start from Service status:. Make sure it now says Service status: Running.
  1. Configure Git to use the Windows 10 implementation of OpenSSH by issuing the following command in Powershell:
git config --global core.sshCommand C:/Windows/System32/OpenSSH/ssh.exe