Skip to content

Instantly share code, notes, and snippets.

View dnanto's full-sized avatar
⚗️
🝎

Daniel Antonio Negrón dnanto

⚗️
🝎
View GitHub Profile
@gwangjinkim
gwangjinkim / install-and-start-postgresql-in-conda-locally
Last active February 17, 2026 10:06
How to install and run postgresql in conda
This gist I write, because I couldn't find any step by step instructions
how to install and start postgresql locally (using conda within a conda environment - with the result
that you can run it without sudo/admin rights on your machine!)
and not globally in the operating system (which requires sudo/admin rights on that machine).
I hope, this will help especially people new to postgresql
(and those who don't have sudo/admin rights on a specific machine but want
to run postgresql there)!
Prerequisite is to have miniconda already installed in your Computer.

Recommendations for developing Nextstrain pathogen builds

These are my recommendations for developing modular augur pathogen builds in per-pathogen repositories. They're based on my experience creating such a build using zika as an example while developing the Nextstrain base container and CLI.

Use a config.yaml file

@nh2
nh2 / rigid-transform-with-scale.py
Last active July 17, 2024 14:03
Rigidly (+scale) aligns two point clouds with know point-to-point correspondences, in Python with numpy
import numpy as np
import numpy.linalg
# Relevant links:
# - http://stackoverflow.com/a/32244818/263061 (solution with scale)
# - "Least-Squares Rigid Motion Using SVD" (no scale but easy proofs and explains how weights could be added)
# Rigidly (+scale) aligns two point clouds with know point-to-point correspondences
# with least-squares error.
@jwebcat
jwebcat / gist:5122366
Last active October 9, 2025 13:52 — forked from lemenkov/gist:1674929
Properly download from github using wget and curl
wget --no-check-certificate --content-disposition https://github.com/joyent/node/tarball/v0.7.1
# --no-check-cerftificate was necessary for me to have wget not puke about https
curl -LJO https://github.com/joyent/node/tarball/v0.7.1