Skip to content

Instantly share code, notes, and snippets.

View elucify's full-sized avatar

Mark Johnson elucify

  • National Center for Biotechnology Information
  • Bethesda MD
View GitHub Profile
@elucify
elucify / gist:c7ccfee9f13b42f11f81
Created January 23, 2015 17:17
BASH: set variables for ANSI text color escape sequences
RESTORE=$(echo -en '\033[0m')
RED=$(echo -en '\033[00;31m')
GREEN=$(echo -en '\033[00;32m')
YELLOW=$(echo -en '\033[00;33m')
BLUE=$(echo -en '\033[00;34m')
MAGENTA=$(echo -en '\033[00;35m')
PURPLE=$(echo -en '\033[00;35m')
CYAN=$(echo -en '\033[00;36m')
LIGHTGRAY=$(echo -en '\033[00;37m')
LRED=$(echo -en '\033[01;31m')
@elucify
elucify / README.md
Last active May 13, 2020 17:40
ClinVar sample README.md

ClinVar

This directory contains:

  • ClinVar (http://www.ncbi.nlm.nih.gov/clinvar/) dataset reports, and ClinVar development documents
  • documents related to the NCBI collaboration with ClinGen (http://www.clinicalgenome.org/)
  • ftp://ftp.ncbi.nih.gov/pub/clinvar/ClinGen/ExpertPanelRequestForm.docx - how to apply for expert panel status
  • data common to ClinVar and GTR
  • ftp://ftp.ncbi.nlm.nih.gov/pub/GTR/standard_terms - terminology used by both GTR and ClinVar.
@elucify
elucify / upload_ssh_key.sh
Last active March 16, 2019 05:00
Upload ssh key to TeamCity server; works for version 2018.1.1 (build 58406).
#!/bin/bash
#
# Upload an SSH private key to a TeamCity project
# See https://youtrack.jetbrains.com/issue/TW-42311
# License: Public domain. No warranty expressed or implied. Use at own risk.
#
# Environment
#
# Must set environment variable TEAMCITY_SERVER_URL to https://<teamcity-hostname>. That
@elucify
elucify / CLUUC New Neighbors Refugees Donation Kits
Last active November 17, 2016 20:33
List of items for kits for donations to our new neighbors from around the world.
## Cleaning kit ($14-16)
* Dish soap
* kitchen cleaner
* bathroom cleaner
* sponges
## Toiletries kit (~$25)
* 2 adult toothbrushes
* toothpaste
from selenium import webdriver
from random import random
import contextlib
import sys
if len(sys.argv) != 4:
print "Usage: python sauce-wtf.py <iphone|firefox|firefox.local> username sauce-access-key"
sys.exit(1)
Hello!
After series of experiments with ftp clients tuning for both uploading
and downloading with NCBI's ftp server we got to the conclusion that the
configuration of ftp client seriously affects the speed you get.
We recommend to increase the buffer size to 32MB, it helps for both
uploads and downloads.
@elucify
elucify / ChromeConsole.txt
Created August 22, 2014 17:43
Koding Terminal Chrome Console
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit. kite.js:1984
EventEmitter.addListener kite.js:1984
EventEmitter.once kite.js:2016
module.exports.Kite.ready kite.js:3680
(anonymous function) kite.js:3376
tryCatch2 bluebird.js:4991
Promise._resolveFromResolver bluebird.js:2246
Promise bluebird.js:1726
module.exports.Kite.ready kite.js:3374
(anonymous function) kite.js:3492
@elucify
elucify / GTR-README.md
Last active August 29, 2015 14:05
Suggested .md for GTR

Genetic Testing Registry

This subdirectory of GTR's ftp site contains summary reports about labs that register tests in the NIH Genetic Testing Registry (GTR).

GTR Home - Browse the directory

--

See Disclaimer and Data Use Policy Below