Skip to content

Instantly share code, notes, and snippets.

@sub-mod
sub-mod / tektoncd_notes.md
Last active January 29, 2020 20:16
tektoncd_notes.md
@sub-mod
sub-mod / Reflector.md
Created December 29, 2019 23:45 — forked from songbinliu/Reflector.md
description the implementation and usage of kubernetes reflector.

Kubernetes Reflector

Reflector is a key component for Kubernetes clients, kube-scheduler and Replication Controller. Reflector is in the middle between client and Kubernetes API-server. It provides a framework to monitor the changes of the Kubernetes cluster.

Definition of Reflector

Here is the definition of Reflector. reflector define

As shown in the definition, there are two important compoents of a Reflector:

@sub-mod
sub-mod / SharedInformer.md
Created December 29, 2019 23:46 — forked from songbinliu/SharedInformer.md
Notes about Kubernetes SharedInformer

Kubernetes SharedInformer

Overview

SharedInformer has a shared data cache, and is able to distribute notifications for changes to the cache to multiple listeners who have registered to it. SharedInformer is also a "Producer-Consumer" framework, using Controller as Producer to produce the Events (, or changes to the cache).

@sub-mod
sub-mod / tfodapi.txt
Created January 6, 2020 21:00
tfodapi.txt
INFO:tensorflow:Restoring parameters from ./models/model.ckpt-500
I0106 15:55:19.536532 140690754516544 saver.py:1284] Restoring parameters from ./models/model.ckpt-500
INFO:tensorflow:Running local_init_op.
I0106 15:55:20.502651 140690754516544 session_manager.py:500] Running local_init_op.
INFO:tensorflow:Done running local_init_op.
I0106 15:55:20.614528 140690754516544 session_manager.py:502] Done running local_init_op.
INFO:tensorflow:Performing evaluation on 22 images.
I0106 15:55:23.292874 140683104995072 coco_evaluation.py:205] Performing evaluation on 22 images.
creating index...
index created!
@sub-mod
sub-mod / crc1_14_0_F31.md
Last active May 1, 2023 09:26
Setup CodeReady Containers on Remote Server and connect from Laptop 4.2 - Fedora 31
@sub-mod
sub-mod / object_detection_mlperf.txt
Last active March 9, 2020 18:14
object_detection mlperf
// use nvidia/cuda:10.0-cudnn7-devel-centos7 as BASE
// Ensure below paths are set to access nvcc at $CUDA_HOME/bin
export CUDA_HOME=/usr/local/cuda
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64
export PATH=$PATH:$CUDA_HOME/bin
// Install mentions GCC>=4.9. update to devtoolset-7
// use python 3.6
@sub-mod
sub-mod / tf_2_10_cuda10_0.md
Last active March 23, 2020 21:00
Using Tensorflow 2.1.0 with CUDA 10.0

Use cuda:10.0-cudnn7-devel-centos7 container

docker run -it -u 0 docker.io/nvidia/cuda:10.0-cudnn7-devel-centos7 /bin/bash

Setup LD_LIBRARY_PATH and Links

yum install -y centos-release-scl
yum install -y devtoolset-7 rh-python36 mlocate
source scl_source enable devtoolset-7 rh-python36
@sub-mod
sub-mod / tekton_issue.md
Created March 23, 2020 21:52
tekton_issue

some thing like this would cause invalid input params: param types don''t match the user-specified type in pipeline webhook controller which simply can't parse the type

---
apiVersion: tekton.dev/v1alpha1
kind: PipelineRun
metadata:
  name: params-example
spec: