View Dockerfile.py35
# Modified from: https://github.com/xeb/fastText-docker/blob/master/Dockerfile
# To build & run, do:
# docker build -t fasttext-py3.5 -f Dockerfile.py35 .
# docker run --rm -it fasttext-py3.5 ./eval.py
#
FROM python:3.5
RUN apt-get update && apt-get install -y \
build-essential \
wget \
git \
View Dockerfile
# Dockerfile to reproduce Issue 114 for TensorFlow Serving
# https://github.com/tensorflow/serving/issues/114
# Base Dockerfile from: https://github.com/tensorflow/serving/blob/master/tensorflow_serving/tools/docker/Dockerfile.devel
# To demonstrate this, just build the container & then run it:
# $ docker build -t tfserv_114 .
# $ docker run -it tfserv_114
FROM ubuntu:14.04
RUN apt-get update && apt-get install -y \
View docker_cheatseet.md

Remove unused images

docker rmi $(docker images --filter "dangling=true" -q --no-trunc)

View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/xenial64"
#config.vm.box = "bento/centos-7.2"
#config.vm.box_url = "https://atlas.hashicorp.com/bento/boxes/centos-7.2"
config.vm.network "forwarded_port", guest: 5000, host: 5000
config.vm.synced_folder "scripts", "/home/vagrant/scripts"
View ssh_reverse.md

SSH Reverse Proxy

Some simple notes to setup SSH reverse proxy

  1. on source machine (behind the network), run: ssh -N -R 2222:localhost:22 YOURUSER@YOURSERVER

  2. on YOURSERVER, run: ssh -l SOURCEUSER -p 2222 localhost

  3. If you want to automated it, do something like...

View install-tensorflow.sh
#!/bin/bash
sudo -H pip install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.6.0-py2-none-any.whl --ignore-installed six
# Modified install command from: https://www.tensorflow.org/versions/master/get_started/os_setup.html
# See: https://github.com/pypa/pip/issues/3165
# Because Apple has preinstalled the dependency Six that cannot be removed
# Some of the errors I experienced were the following:
# [Errno 1] Operation not permitted: '/tmp/pip-BriGIp-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib
View flac2mp3
#!/bin/bash
# from: http://apple.stackexchange.com/questions/9064/how-to-i-go-from-flac-to-mp3-using-lame-flac-using-the-terminal-alone
for f in "$@"; do
[[ "$f" != *.flac ]] && continue
album="$(metaflac --show-tag=album "$f" | sed 's/[^=]*=//')"
artist="$(metaflac --show-tag=artist "$f" | sed 's/[^=]*=//')"
date="$(metaflac --show-tag=date "$f" | sed 's/[^=]*=//')"
title="$(metaflac --show-tag=title "$f" | sed 's/[^=]*=//')"
year="$(metaflac --show-tag=date "$f" | sed 's/[^=]*=//')"
View gist:89b98f961f2691d5d5f3
curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'
View payload.json
{ "event": { "userDefined": { "name": "Load Testing" } } }
View README.md