Skip to content

Instantly share code, notes, and snippets.

View johndpope's full-sized avatar

John D. Pope johndpope

View GitHub Profile
ubuntu@ip-172-31-14-185:~/sfm-docker$ cat docker-compose.yml
version: "2"
services:
db:
image: gwul/sfm-ui-db:1.2.0
environment:
- POSTGRES_PASSWORD
- TZ
logging:
driver: json-file
conda info
conda info --all
conda info --license
# list conda environment
conda info -e
# list all the package in the current environment
conda list
@johndpope
johndpope / karhoo_setup.sh
Created September 9, 2017 23:59 — forked from johndpope-karhoo/karhoo_setup.sh
setup OSX.sh
# chmod +x karhoo_setup.sh
#!/bin/bash
#NODE_VERSION=0.4.7
#NPM_VERSION=1.0.94
# Examples
# https://github.com/donnemartin/dev-setup/blob/master/brew.sh
# https://gist.github.com/phatblat/1713458#file-heroku-node-init-sh
# https://gist.github.com/zenorocha/7159780
@johndpope
johndpope / 01_mongodb_live_hacking.md
Created September 5, 2017 18:31 — forked from ttrelle/01_mongodb_live_hacking.md
MongoDB Live Hacking Preparations

Download & Run MongoDB

  • Grab the latest stable release from the download page
  • Unzip the archive to a folder called ${MONGO_HOME} on your disk
  • Create a folder /data/db on the same drive/partition
  • Go to ${MONGO_HOME}/bin
  • Execute the binary mongod (or mongod.exe on Windows)

For a more detailed explanation, see the MongoDB installation guide.

@johndpope
johndpope / install.md
Last active August 6, 2017 17:37 — forked from surjikal/install.md
Presto Installation Instructions for OSX + Zsh
@johndpope
johndpope / install-tensorflow-using-anaconda.md
Last active October 9, 2023 13:19 — forked from sethbunke/install-tensorflow-using-anaconda.txt
Create a virtual environment using Anaconda and install various ML tools and TensorFlow
@johndpope
johndpope / create_hellotensor.py
Created June 8, 2017 13:50 — forked from omimo/create_hellotensor.py
A simple example for saving a tensorflow model and preparing it for using on Android
# Create a simple TF Graph
# By Omid Alemi - Jan 2017
# Works with TF <r1.0
import tensorflow as tf
I = tf.placeholder(tf.float32, shape=[None,3], name='I') # input
W = tf.Variable(tf.zeros_initializer(shape=[3,2]), dtype=tf.float32, name='W') # weights
b = tf.Variable(tf.zeros_initializer(shape=[2]), dtype=tf.float32, name='b') # biases
O = tf.nn.relu(tf.matmul(I, W) + b, name='O') # activation / output
@johndpope
johndpope / create_hellotensor.py
Created June 8, 2017 13:50 — forked from omimo/create_hellotensor.py
A simple example for saving a tensorflow model and preparing it for using on Android
# Create a simple TF Graph
# By Omid Alemi - Jan 2017
# Works with TF <r1.0
import tensorflow as tf
I = tf.placeholder(tf.float32, shape=[None,3], name='I') # input
W = tf.Variable(tf.zeros_initializer(shape=[3,2]), dtype=tf.float32, name='W') # weights
b = tf.Variable(tf.zeros_initializer(shape=[2]), dtype=tf.float32, name='b') # biases
O = tf.nn.relu(tf.matmul(I, W) + b, name='O') # activation / output
@johndpope
johndpope / TENSORFLOW_DEBUG.md
Created May 27, 2017 15:29 — forked from Mistobaan/TENSORFLOW_DEBUG.md
Tensorflow Internals Debugging Techniques

Machine Setup August 2016

Linux Ubuntu 2016.

  • 1080 GTX
  • SDK 8.0
  • CuDNN 5.1

ENABLE Core dumps

ulimit -c unlimited
@johndpope
johndpope / IO.swift
Last active May 27, 2017 00:24 — forked from alecthomas/IO.swift
Swift IO
//
// Swift.IO
//
// Created by Alec Thomas on 25/02/2015.
// Updated by Tommie N. Carter, Jr., MBA on 2/12/16.
// Copyright (c) 2015 SwapOff. All rights reserved.
//
//
// This file provides a consistent, simple interface to stream-based data sources.
// It is based on Go's I/O library.