Skip to content

Instantly share code, notes, and snippets.

View Jared-Prime's full-sized avatar
📚

Jared Davis Jared-Prime

📚
View GitHub Profile
## Systems / SDLC / General
1. Can you describe a complex system architecture you have worked on in the past?
Ifbyphone Phoenix project:
- kamalio (kamailio) for SIP load balancing
- asterisk for call handling and routing
- mysql for survey data
- Ruby Adhearsion survey logic

Original by Bert Hubert

What is life?

This question keeps many people awake at night and has led to rafts of definitions, some involving features (procreation, metabolism and so forth), some involving chemistry, entropy or energy flux and some are of a more philosophical bent. A BBC article noted there are over 100 definitions of life and it claims all are wrong.

And indeed it does appear to be quite a challenge - every hard and fast rule is violated somewhere in biology. There are things that are clearly alive, but never replicate. Plants typically do not move yet are extremely vital. Viruses do make copies of themselves, but need a host to do so. Are they alive? And once you have it all figured out, some wise person comes up with a crystal that somehow manages to create copies of itself, and points out that these copies even ‘inherit’ characteristics. Is the crystal alive? Similarly, “fire” consumes elements, moves and even replicates. Yet calling fire

@Jared-Prime
Jared-Prime / sagemaker-gpu.dockerfile
Last active March 6, 2019 19:46
Dockerfile for running DonkeyCar training jobs on AWS Sagemaker
FROM nvidia/cuda:9.0-base-ubuntu16.04
LABEL maintainer="Jared Davis <[email protected]>"
# Pick up some TF dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
cuda-command-line-tools-9-0 \
cuda-cublas-9-0 \
cuda-cufft-9-0 \
@Jared-Prime
Jared-Prime / grpc.conf
Created March 9, 2018 22:46
sketch of what a gRPC backend to nginx might look like based off https://github.com/grpc/grpc.github.io/issues/230#issuecomment-328827358
server {
listen 8443 ssl http2;
listen [::]:8443 ssl http2;
ssl_certificate /some/place/server.crt;
ssl_certificate_key /some/place/server.key;
}
location /internal {
proxy_http_version 2.0;
proxy_pass http://$some_ip:50051;
package main
import (
"flag"
"log"
"math"
)
// constants and inverse error function
// found from http://libit.sourceforge.net/math_8c.html

Keybase proof

I hereby claim:

  • I am jared-prime on github.
  • I am 1ijk (https://keybase.io/1ijk) on keybase.
  • I have a public key ASBCiwiAriRMub7tHOVk2ofaXDdmZUIuezlPSBsFSKlFaQo

To claim this, I am signing this object:

#!/usr/bin/env bash
# BASH TIPS -
# http://kvz.io/blog/2013/11/21/bash-best-practices/
set -o errexit
set -o nounset
set -o xtrace
# TMUX CONFIG
module Change where
data Coin a = Penny a | Nickel a | Dime a | Quarter a deriving (Eq, Ord, Show)
type Coins = [Coin Int]
denominations = [1, 5, 10, 25]
coinCount :: Int -> Int -> Coin Int
coinCount amount denomination
@Jared-Prime
Jared-Prime / clean_docker_images.py
Created January 26, 2016 22:34 — forked from DrMavenRebe/clean_docker_images.py
Remove unlinked space from the docker drive
#!/usr/bin/env python
"""
Check all existing Docker containers for their mapped paths, and then purge any
zombie directories in docker's volumes directory which don't correspond to an
existing container.
Taken from: https://github.com/docker/docker/issues/6354
"""
import logging
import os

We must warn the reader about another semantic confusion which has caused error and controversy in probability theory for many decades. It would be quite wrong and misleading to call g(f) the ‘posterior distribution of f’, because that verbiage would imply to the unwary that f itself is varying and is ‘distributed’ in some way. This would be another form of the mind projection fallacy, confusing reality with a state of knowledge about reality. In the problem we are discussing, f is simply an unknown constant parameter; what is ‘distributed’ is not the parameter, but the probability. Use of the terminology ‘probability distribution for f’ will be followed, in order to emphasize this constantly.

Of course, nothing in probability theory forbids us to consider the possibility that f might vary with time or with circumstance; indeed, probability theory enables us to analyze that case fully, as we shall see later. But then we should recognize that we are considering a different problem than the one