Skip to content

Instantly share code, notes, and snippets.

@tnachen
tnachen / gist:d42c5ce3e9a9324408a07d273bebfbdc
Created January 1, 2019 18:06
EBS Default storage class for EKS
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: gp2
annotations:
storageclass.kubernetes.io/is-default-class: "true"
provisioner: kubernetes.io/aws-ebs
parameters:
type: gp2
encrypted: "true"
n00004475_6590 http://farm4.static.flickr.com/3175/2737866473_7958dc8760.jpg
n00004475_15899 http://farm4.static.flickr.com/3276/2875184020_9944005d0d.jpg
n00004475_32312 http://farm3.static.flickr.com/2531/4094333885_e8462a8338.jpg
n00004475_35466 http://farm4.static.flickr.com/3289/2809605169_8efe2b8f27.jpg
n00004475_39382 http://2.bp.blogspot.com/_SrRTF97Kbfo/SUqT9y-qTVI/AAAAAAAABmg/saRXhruwS6M/s400/bARADEI.jpg
n00004475_41022 http://fortunaweb.com.ar/wp-content/uploads/2009/10/Caroline-Atkinson-FMI.jpg
n00004475_42770 http://farm4.static.flickr.com/3488/4051378654_238ca94313.jpg
n00004475_54295 http://farm4.static.flickr.com/3368/3198142470_6eb0be5f32.jpg
n00005787_13 http://www.powercai.net/Photo/UploadPhotos/200503/20050307172201492.jpg
n00005787_32 http://www.web07.cn/uploads/Photo/c101122/12Z3Y54RZ-22027.jpg
@tnachen
tnachen / gist:9c58755c5f59d40179c5177e71cb1e30
Created October 15, 2018 00:49
Salus build instructions
you have to do the build step manually. But I think it serves as a good start point. The image is available on Docker Hub: https://hub.docker.com/r/qi437103/salus/tags/
You will need to start the docker with Nvidia runtime (see https://github.com/NVIDIA/nvidia-docker).
docker --runtime nvidia -it qi437103/salus:latest
# After starting the docker container, go to /salus
cd /salus
# get sources
@tnachen
tnachen / gist:94314b65cda5824ddc491b9000bc388f
Last active January 12, 2018 18:05
Prometheus instructions
go get https://github.com/prometheus/prometheus
cd $GOHOME/src/github.com/prometheus/prometheus
git remote add hyperpilot https://github.com/hyperpilotio/prometheus
git fetch
git reset --hard hyperpilot/master
./prometheus --storage.tsdb.path=<path_to_tsdb_dir> --config.file=documentation/examples/prometheus.yml
@tnachen
tnachen / gist:8bc7a07ae30c5f136e72b54e8c8ca8e4
Created August 13, 2017 05:21
This I believe (The Creed) Bb
Eb Gm
Our Father ever lasting
F Bb/D Eb
The all creating One
F Bb/D
God Al - mighty
Eb Gm
Through Your Holy Spirit
F Bb/D Eb
Conceiving Christ the Son
./spark-submit --deploy-mode cluster --class MovieLensALS --master k8s://https://redis-1c1-apiloadb-1em6ne4lzm7n7-5246469.us-east-1.elb.amazonaws.com --conf spark.app.name=spark-movielens --conf spark.kubernetes.driver.docker.image=hyperpilot/spark-movielens:small --conf spark.kubernetes.executor.docker.image=hyperpilot/spark-movielens:small-executor --conf spark.kubernetes.initcontainer.docker.image=hyperpilot/spark-init --conf spark.kubernetes.docker.image.pullPolicy=Always local:///dataset/movielens-als-assembly-0.1.jar file:///dataset/movie-small/ file:///dataset/personalRatings.txt
@tnachen
tnachen / locustfile.py
Last active April 8, 2017 21:06
exmaple locust file
from locust import HttpLocust, TaskSet, task
class UserBehavior(TaskSet)
@task
def index(self):
self.client.get("/index.html")
class WebsiteUser(HttpLocust):
task_set = UserBehavior
us-east-1 ami-6df8fe7a
us-east-2 ami-c6b5efa3
us-west-1 ami-1eda8d7e
us-west-2 ami-a2ca61c2
eu-west-1 ami-ba346ec9
eu-west-2 ami-42c5cf26
eu-central-1 ami-e012d48f
ap-northeast-1 ami-08f7956f
ap-southeast-1 ami-f4832f97
ap-southeast-2 ami-774b7314
@tnachen
tnachen / gist:6e2442e511e31556b8766470c98a5a75
Created November 21, 2016 03:47
AWS ECS Optimized AMI amzn-ami-2016.09.b-amazon-ecs-optimized
| Region | AMI |
|----------------|--------------|
| us-east-1 | ami-eca289fb |
| us-east-2 | ami-446f3521 |
| us-west-1 | ami-9fadf8ff |
| us-west-2 | ami-7abc111a |
| eu-west-1 | ami-a1491ad2 |
| eu-central-1 | ami-54f5303b |
| ap-northeast-1 | ami-9cd57ffd |
| ap-southeast-1 | ami-a900a3ca |
再沒有事物 能與你相比
活潑的盼望 超越全世界
你同在裡
我嚐到世上 最甜美的愛
當我心得釋放 我羞愧都鬆開
你同在裡
親愛聖靈 我們歡迎你
充滿這氛圍 澆灌在這地