Skip to content

Instantly share code, notes, and snippets.

Avatar

Yu-Xi Lim thirteen37

View GitHub Profile
@thirteen37
thirteen37 / turing-example.yaml
Created Mar 27, 2020
Example configuration for Turing
View turing-example.yaml
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 Mar 27, 2020
Example configuration for Turing
View turing-example.yaml
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
View feast-sample.py
# 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 Dec 5, 2019
Example Clockwork schedule spec
View schedule.yaml
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 Dec 5, 2019
Example Clockwork pipeline spec
View pipeline.yaml
# 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
View user_guide.md

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
@thirteen37
thirteen37 / apache-flink.rb
Last active Mar 8, 2018
Apache Flink 1.4 Homebrew formula
View apache-flink.rb
@thirteen37
thirteen37 / chip-java8.md
Last active Jun 4, 2018
Install Java 8 on C.H.I.P.
View chip-java8.md

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
View keybase.md

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 Dec 28, 2015
ADB on Chrome OS (x64) with Saucy (13.10)
View README.md

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

You can’t perform that action at this time.