Skip to content

Instantly share code, notes, and snippets.

View thirteen37's full-sized avatar

Yu-Xi Lim thirteen37

View GitHub Profile
@thirteen37
thirteen37 / turing-example.yaml
Created March 27, 2020 15:20
Example configuration for Turing
id: example_router
routes:
- id: tensorflow_model
type: PROXY
endpoint: "http://api.golabs.io/v2/5e4caccc310000e2cad8c071"
- id: control
type: PROXY
endpoint: "http://api.golabs.io/v2/5e4cacd4310000e1cad8c073"
strategy:
type: fiber.DefaultTuringRoutingStrategy
@thirteen37
thirteen37 / turing-example.yaml
Created March 27, 2020 15:20
Example configuration for Turing
id: example_router
routes:
- id: tensorflow_model
type: PROXY
endpoint: "http://api.golabs.io/v2/5e4caccc310000e2cad8c071"
- id: control
type: PROXY
endpoint: "http://api.golabs.io/v2/5e4cacd4310000e1cad8c073"
strategy:
type: fiber.DefaultTuringRoutingStrategy
# Batch retrieval from warehouse store at training
features = feast_client.get_batch_features(
entity_rows = df, # dataframe containing entity values to join features to
feature_refs = [ "humidity", "rainfall", "temperature" ]
)
# Online retrieval from low-latency store at serving
features = feast_client.get_online_features(
entity_rows = entity_rows, # list of entity values to join features to
feature_refs = [ "humidity", "rainfall", "temperature" ]
)
@thirteen37
thirteen37 / schedule.yaml
Created December 5, 2019 06:13
Example Clockwork schedule spec
apiVersion: v2
scheduledPipelines:
- # reference a remote uri that contains the pipeline specification
pipelineRef: https://source.golabs.io/ds/example/blob/master/cw.yaml
# specifies when the scheduler should start running this pipeline
startDate: 2019-02-28
# the repeat interval for this job, using cron expression
schedule: "*/5 * * * *"
# additional no of tries to run the task upon failure
retries: 1
@thirteen37
thirteen37 / pipeline.yaml
Created December 5, 2019 06:09
Example Clockwork pipeline spec
# name of the pipeline
name: mypipeline
# default Docker image for each task
image: alpine
# default resources required for each task
resources:
cpu: 2
memory: 4GB
disk: 80GB
# default working directory for each task, can reference a Git repo

Yu-Xi's user guide

Principles

  • Default to "yes": I trust you know what to do, so you rarely need to ask me for affirmation. Exceptions: you aren't clear what to do, or your choices may cause irreversible harm.
  • Default to "open": Ask Me Anything. My intention is to be open and honest. I prefer to over-communicate than under-communicate. Likewise, I greatly value feedback so please be open and honest with me too.
@thirteen37
thirteen37 / apache-flink.rb
Last active March 8, 2018 00:29
Apache Flink 1.4 Homebrew formula
@thirteen37
thirteen37 / chip-java8.md
Last active June 4, 2018 14:44
Install Java 8 on C.H.I.P.

Install Java 8 on C.H.I.P.

C.H.I.P. or PocketC.H.I.P. is a Debian Jessie-based system. We can use the Ubuntu Trusty repos:

sudo sh -c "echo \"deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main\" > /etc/apt/sources.list.d/java8.list"
sudo sh -c "echo \"deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main\" >> /etc/apt/sources.list.d/java8.list"
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886
sudo apt-get update
sudo apt-get install -y oracle-java8-installer oracle-java8-set-default

Keybase proof

I hereby claim:

  • I am thirteen37 on github.
  • I am limyuxi (https://keybase.io/limyuxi) on keybase.
  • I have a public key ASBuMYdfi5rEMZ4EQrHbFiidiuwTtueOjYVLNAei-jPXJAo

To claim this, I am signing this object:

@thirteen37
thirteen37 / README.md
Last active December 28, 2015 17:49
ADB on Chrome OS (x64) with Saucy (13.10)

The main trick here is the new Multiarch on Ubuntu Saucy and the need to enable it separately for Crouton.

  1. Install Crouton

  2. Install saucy

    sudo sh -e ~/Downloads/crouton -t xfce -r saucy
    
  3. Start the chroot