Skip to content

Instantly share code, notes, and snippets.

This gist I write, because I couldn't find step by step instructions
how to install and start postgresql locally and not globally in the
operating system (which would require sudo).
I hope, this will help especially people new to postgresql!
####################################
# create conda environment
####################################
@sbamin
sbamin / 1_rsync_documentation.md
Last active May 8, 2020 00:46 — forked from KartikTalwar/Documentation.md
Rsync over SSH - (40MB/s over 1GB NICs)

The fastest remote directory rsync over ssh archival I can muster (40MB/s over 1gb NICs)

This creates an archive that does the following:

rsync (Everyone seems to like -z, but it is much slower for me)

  • a: archive mode - rescursive, preserves owner, preserves permissions, preserves modification times, preserves group, copies symlinks as symlinks, preserves device files.
  • H: preserves hard-links
  • A: preserves ACLs
@sbamin
sbamin / ensembl_vep_86_with_offline_cache.md
Created April 3, 2018 22:23 — forked from ckandoth/ensembl_vep_86_with_offline_cache.md
Install Ensembl's VEP v86 with various caches for running offline

Ensembl's VEP (Variant Effect Predictor) is popular for how it picks a single effect per gene as detailed here, its CLIA-compliant HGVS variant format, and Sequence Ontology nomenclature for variant effects.

To follow these instructions, we'll assume you have these packaged essentials installed:

## For Debian/Ubuntu system admins ##
sudo apt-get install -y build-essential git libncurses-dev

## For RHEL/CentOS system admins ##
sudo yum groupinstall -y 'Development Tools'
sudo yum install -y git ncurses-devel
@sbamin
sbamin / exampleRScript1.r
Last active November 11, 2017 17:00 — forked from ericminikel/exampleRScript1.r
An example of how to use Rscript and optparse to run R in batch mode with command line args.
#!/usr/bin/env Rscript
# modified from a script by:
# Eric Vallabh Minikel
# https://gist.github.com/ericminikel/8428297
# example of how to use optparse in R scripts
# usage: ./exampleRScript1.r -a thisisa -b hiagain
# ./exampleRScript1.r --avar thisisa --bvar hiagain