Skip to content

Instantly share code, notes, and snippets.

View egurapha's full-sized avatar
🍵
Probably Drinking Tea.

R. Eguchi egurapha

🍵
Probably Drinking Tea.
View GitHub Profile
@egurapha
egurapha / fix_github_https_repo.sh
Created April 18, 2019 20:46 — forked from m14t/fix_github_https_repo.sh
Convert HTTPS github clones to use SSH
#/bin/bash
#-- Script to automate https://help.github.com/articles/why-is-git-always-asking-for-my-password
REPO_URL=`git remote -v | grep -m1 '^origin' | sed -Ene's#.*(https://[^[:space:]]*).*#\1#p'`
if [ -z "$REPO_URL" ]; then
echo "-- ERROR: Could not identify Repo url."
echo " It is possible this repo is already using SSH instead of HTTPS."
exit
fi
@egurapha
egurapha / get_torsion.py
Created January 30, 2018 21:15 — forked from lennax/get_torsion.py
Script to calculate side-chain torsion angles from PDB files
#!/usr/bin/env python
# Copyright (c) 2014 Lenna X. Peterson, all rights reserved
# [email protected]
import argparse
import csv
import glob
import logging
import math
import os