Skip to content

Instantly share code, notes, and snippets.

View obarisk's full-sized avatar

鐘翊修 obarisk

View GitHub Profile
@obarisk
obarisk / inferencelambda.sh
Created October 20, 2020 07:23
lambda ml inference
# configs
PYTHON_VER="3.8"
PYLIBPATH="/mnt/python"
PKGS=(numpy scipy tensorflow xgboost)
sudo yum -y update
sudo yum install -y amazon-efs-utils
# Set up env vars
PYTHON_VER_YUM="${PYTHON_VER/\./}"
@obarisk
obarisk / update-shiny-server.sh
Created October 14, 2018 14:18
update-shiny-server on ubuntu
#!/bin/bash
DISTRO="ubuntu"
DISTROCODE="14.04"
ARCH="x86_64"
HOST="https://download3.rstudio.org"
ShinyV=$(curl -s https://www.rstudio.com/products/shiny/download-server/ |\
grep 'Download RStudio Shiny Server' |\
sed 's/<[^>]*>//g' |\