profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/benjamintanweihao/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Benjamin Tan Wei Hao benjamintanweihao @EasyMile Singapore https://benjamintan.io/ I'm a Software Engineer at EasyMile and author of both The Little Elixir and OTP Guidebook and The Mastering Ruby Closures Book.

benjamintanweihao/blitzy 80

A simple HTTP load tester in Elixir

benjamintanweihao/awesome-elixir 3

A curated list of amazingly awesome Elixir libraries, resources and shiny things.

benjamintanweihao/AnKoGit 2

AnKoGit – An Android GitHub Client written in Kotlin

benjamintanweihao/chip8 2

CHIP-8 emulator in Elixir

benjamintanweihao/argoflow 1

Deploying Kubeflow with Argo CD

benjamintanweihao/casty 1

Shoutcast in Elixir

startedPyTorchLightning/pytorch-lightning

started time in 8 days

issue commentkubeflow/kfctl

How to do programmatic authentication with Dex?

Here's something that I came up with:

import logging
import os

import requests
from urllib.parse import parse_qs

host = 'https://your.inference.service'


def get_auth_session_token(host):
    response = requests.get(host, verify=False, allow_redirects=False)
    location = response.headers['location']

    state = parse_qs(location)['state'][0]

    location_prefix, _ = location.split('state=')
    location = location_prefix + f'state={state}'
    url = host + location

    response = requests.get(url, verify=False, allow_redirects=False)
    location = response.headers['location']
    req_value = location.split('=')[1]

    with requests.Session() as s:
        data = {
            'login': os.getenv('KUBEFLOW_USERNAME', 'EMAIL-GOES-HERE'),
            'password': os.getenv('KUBEFLOW_PASSWORD', 'PASSWORD-GOES-HERE'),
        }

        url = f'{host}/dex/auth/local?req={req_value}'
        logging.debug(url)

        response = requests.post(url, data=data, verify=False, allow_redirects=False)
        location = response.headers['location']
        req_value = location.split('=')[1]

        url = f'{host}/dex/approval?req={req_value}'
        logging.debug(url)
        response = requests.get(url, verify=False, allow_redirects=False)
        location = response.headers['location']

        url = host + location
        response = requests.get(url, verify=False, allow_redirects=False)
        logging.debug(url)

        return response.headers['set-cookie']
jlewi

comment created time in 12 days

delete branch benjamintanweihao/website

delete branch : patch-3

delete time in a month

push eventbenjamintanweihao/kfserving

Benjamin Tan Wei Hao

commit sha 13c500a663be19639c47af2e708ac984b2d4f6d7

Update storageUri to S3 sample example.

view details

push time in a month

PR opened kubeflow/website

Add specific version of Kustomize that works

I've tested that Kustomize 4.2.0 (the latest that the installation script pulls) works with Kubeflow 1.3.1. However, it is possible that not all paths would work. For example, some of the scripts use --load_restrictor instead of --load-restrictor. For the outlined steps Kustomize 4.2.0 works fine, though this is not mentioned anywhere. (The impression is that the user should use Kustomize 3.2.0 which didn't work for me)

+3 -3

0 comment

1 changed file

pr created time in 2 months

push eventbenjamintanweihao/website

Benjamin Tan Wei Hao

commit sha bb2a53a8e1c409abb6864f3f259e88c32aa52d7e

Add specific version of Kustomize that works I've tested that Kustomize 4.2.0 (the latest that the installation script pulls) works with Kubeflow 1.3.1. However, it is possible that not all paths would work. For example, some of the scripts use `--load_restrictor` instead of `--load-restrictor`. For the outlined steps Kustomize 4.2.0 works fine, though this is not mentioned anywhere. (The impression is that the user should use Kustomize 3.2.0 which didn't work for me)

view details

push time in 2 months

push eventbenjamintanweihao/kubeflow

Benjamin Tan Wei Hao

commit sha 19fa8354373d7ae09b0d75ec745a24d3d269594f

Fix typo

view details

push time in 2 months

PR opened kubeflow/kubeflow

Fix typo

Fix typo:

A started Jupyter Notebook -> A starter Jupyter Notebook

+3 -3

0 comment

3 changed files

pr created time in 2 months

create barnchbenjamintanweihao/kubeflow

branch : fix-started-starter-typo

created branch time in 2 months

fork benjamintanweihao/kubeflow

Machine Learning Toolkit for Kubernetes

fork in 2 months

PR opened kubeflow/website

Fix typo
+1 -1

0 comment

1 changed file

pr created time in 2 months

push eventbenjamintanweihao/website

Benjamin Tan Wei Hao

commit sha 6127172c75f20c8950759104bae6a01831946c68

Fix typo

view details

push time in 2 months

fork benjamintanweihao/mlopscommunitysummit

Building ML Blocks with Kubeflow Orchestration with Feature Store.

fork in 2 months

startedaniruddhachoudhury/mlopscommunitysummit

started time in 2 months

push eventbenjamintanweihao/argoflow

Benjamin Tan

commit sha 002877275d9da59426223a0173af1c4a169e296b

Fix kind image

view details

push time in 3 months

push eventbenjamintanweihao/argoflow

Benjamin Tan

commit sha 8b4b05ba06a0f72e70eb628ce9837c5a387fe1ee

Fix Istio ref

view details

push time in 3 months

push eventbenjamintanweihao/argoflow-test

Benjamin Tan

commit sha 7563bbfa21036373dfadccccc30a234e9ca72f54

Kustomiziation

view details

push time in 3 months

push eventbenjamintanweihao/argoflow-test

Benjamin Tan

commit sha 10b22bfb1f24a6df194acf35b1b7b3b70ca732ef

Initial setup

view details

push time in 3 months

create barnchbenjamintanweihao/argoflow-test

branch : master

created branch time in 3 months

created repositorybenjamintanweihao/argoflow-test

created time in 3 months