Skip to content

Instantly share code, notes, and snippets.

View genomics-geek's full-sized avatar

Michael Gonzalez genomics-geek

View GitHub Profile
@genomics-geek
genomics-geek / sge_status.md
Created September 5, 2019 18:25 — forked from cmaureir/sge_status.md
Sun Grid Engine SGE state letter symbol codes meanings
@genomics-geek
genomics-geek / DataTable.ts
Created August 18, 2017 13:39 — forked from cschmidli/DataTable.ts
Semantic UI Data Table Component
import * as React from 'react';
import * as hash from 'object-hash';
import {
TableProps,
Table,
TableBody,
TableCell,
TableFooter,
TableHeaderCell,
@genomics-geek
genomics-geek / AvroHTTP.avdl
Created June 19, 2017 21:24 — forked from darkone23/AvroHTTP.avdl
Example generic spark setup that uses avro for schemas and the parquet file format for storage
@namespace("com.example.avro.parquet.spark")
protocol HTTP {
record Header {
string name;
string value;
}
record Request {
string method;
string path;
@genomics-geek
genomics-geek / README.md
Last active September 9, 2021 23:11
Setup ReactJS, Redux, Webpack with React Hot Reloading on an existing Django Project

Setting up ReactJS/Redux using Webpack for an existing Django project

This guide will help set up your django project to use ReactJS

1. Install Python dependencies

Add pip requirements to our django project:

  • django-webpack-loader==0.4.1 ( Connects Django project with Webpack)
@genomics-geek
genomics-geek / README.md
Created April 15, 2017 02:46 — forked from bruth/README.md
Django command that gives a set of subcommands a namespace. For example, a command named after an app can be defined with a set of subcommands, e.g. `python manage.py command subcommand`.

Subcommander

Managment commands are assumed to be unique across all apps in a Django project. This can lead to long or obscure command names in attempt to namespace those commands.

Subcommander acts as a proxy command giving the real commands a namespace. The subcommander module can be named after the app name or some derivation. The structure looks as follows:

myapp/
    management/
        commands/
; Configuration for Airflow webserver and scheduler in Supervisor
[program:airflow]
command=/bin/airflow webserver
stopsignal=QUIT
stopasgroup=true
user=airflow
stdout_logfile=/var/log/airflow/airflow-stdout.log
stderr_logfile=/var/log/airflow/airflow-stderr.log
environment=HOME="/home/airflow",AIRFLOW_HOME="/etc/airflow",TMPDIR="/storage/airflow_tmp"
@genomics-geek
genomics-geek / cors-nginx.conf
Created February 26, 2017 23:58 — forked from alexjs/cors-nginx.conf
Slightly tighter CORS config for nginx
#
# Slightly tighter CORS config for nginx
#
# A modification of https://gist.github.com/1064640/ to include a white-list of URLs
#
# Despite the W3C guidance suggesting that a list of origins can be passed as part of
# Access-Control-Allow-Origin headers, several browsers (well, at least Firefox)
# don't seem to play nicely with this.
#
@genomics-geek
genomics-geek / README.md
Created February 13, 2017 02:47
Setting up a pypi package

Setting up a python package

This will include:

  1. Travis CI integration
  2. Codecov integration
  3. run tests using pytest and tox

Step 1. Cookiecutter

@genomics-geek
genomics-geek / .bash_profile
Last active November 8, 2017 21:40
iMac/ MacBook setup dotfiles, etc
# .bash_profile
# Load specific settings
# --------------------------------------
source $HOME/.bashrc