Skip to content

Instantly share code, notes, and snippets.

View canhtran's full-sized avatar

Calvin Canh Tran canhtran

View GitHub Profile

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

@canhtran
canhtran / iris-api-depployment.yaml
Created September 2, 2019 03:11
Iris flower data deployment for k8s / medium post
apiVersion: apps/v1
kind: Deployment
metadata:
name: iris-app
labels:
app: iris-app
tier: backend
version: v1
spec:
selector:
@canhtran
canhtran / ingress-titanic.yaml
Last active July 28, 2019 15:57
data-devops-medium blog
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: titanic-ingress
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
nginx.ingress.kubernetes.io/ssl-redirect: "false"
spec:
rules:
- http:
@canhtran
canhtran / deployment-titanic.yaml
Created July 28, 2019 08:56
data-devops-medium blog
apiVersion: apps/v1
kind: Deployment
metadata:
name: titanic-app
labels:
app: titanic-app
tier: backend
version: v1
spec:
selector:
@canhtran
canhtran / Titanic.dockerfile
Created July 14, 2019 17:36
data-devops-medium blog
FROM python:3.6
LABEL maintainer "Calvin Tran <[email protected]>"
ENV APP_HOME /app
RUN mkdir -p $APP_HOME
WORKDIR $APP_HOME
@canhtran
canhtran / log.txt
Last active May 1, 2019 06:15
medium-blog
64.242.88.10 - - [07/Mar/2004:16:47:12 -0800] "GET /robots.txt HTTP/1.1" 200 68
64.242.88.10 - - [07/Mar/2004:16:47:46 -0800] "GET /twiki/bin/rdiff/Know/ReadmeFirst?rev1=1.5&rev2=1.4 HTTP/1.1" 200 5724
64.242.88.10 - - [07/Mar/2004:16:49:04 -0800] "GET /twiki/bin/view/Main/TWikiGroups?rev=1.2 HTTP/1.1" 200 5162
64.242.88.10 - - [07/Mar/2004:16:50:54 -0800] "GET /twiki/bin/rdiff/Main/ConfigurationVariables HTTP/1.1" 200 59679
64.242.88.10 - - [07/Mar/2004:16:52:35 -0800] "GET /twiki/bin/edit/Main/Flush_service_name?topicparent=Main.ConfigurationVariables HTTP/1.1" 401 12851
64.242.88.10 - - [07/Mar/2004:16:53:46 -0800] "GET /twiki/bin/rdiff/TWiki/TWikiRegistration HTTP/1.1" 200 34395
64.242.88.10 - - [07/Mar/2004:16:54:55 -0800] "GET /twiki/bin/rdiff/Main/NicholasLee HTTP/1.1" 200 7235
64.242.88.10 - - [07/Mar/2004:16:56:39 -0800] "GET /twiki/bin/view/Sandbox/WebHome?rev=1.6 HTTP/1.1" 200 8545
64.242.88.10 - - [07/Mar/2004:16:58:54 -0800] "GET /mailman/listinfo/administration HTTP/1.1" 200 6459
lordgun.org - -
@canhtran
canhtran / titanic-flask.py
Last active July 14, 2019 17:34
data-devops-medium blog
import pickle
import numpy as np
from flask import (
Flask,
jsonify,
request
)
app = Flask(__name__)
@canhtran
canhtran / init.vim
Last active September 28, 2018 09:14
cal plug#begin('~/.config/nvim/bundle')
Plug 'scrooloose/nerdtree'
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'tpope/vim-fugitive'
call plug#end()
syntax enable
set number