Skip to content

Instantly share code, notes, and snippets.

View kaovilai's full-sized avatar

Tiger Kaovilai kaovilai

View GitHub Profile
@kaovilai
kaovilai / Makefile - exercise
Last active April 30, 2018 20:12
CSC230 Makefile(s)
#############USER#############
#compiles a single exercise
ex = []#name here
arg = []#arguments here
##############################
#######################DEV############################
all:
gcc -g -pg -Wall -std=c99 $(ex).c -o $(ex)
run: all
@kaovilai
kaovilai / tigece331lib.ipynb
Last active March 7, 2019 18:07
ECE331 SageMath Library
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kaovilai
kaovilai / Summit Workshop RHPDS.md
Last active June 19, 2019 21:25
Summit Workshop RHPDS Setup

Once you have ordered DEV Admin Storage, ssh to bastion and run the following

oc set env deploymentconfigs.apps.openshift.io admin -n labguide -e DOWNLOAD_URL=https://raw.githubusercontent.com/openshift/openshift-cns-testdrive/ocp4-dev/labguide

Check status with

oc rollout status dc/admin -n labguide
@kaovilai
kaovilai / ansible-playbook script dev
Last active August 19, 2019 05:41
tp12servicemesh
TARGET_HOST=$(hostname)
OCP_USERNAME="$(oc whoami)"
GUID=$(hostname | cut -d\. -f2)
# a TARGET_HOST is specified in the command line, without using an inventory file
ansible-playbook -i ${TARGET_HOST}, ./configs/ocp-student-workloads/ocp-student-workloads.yml \
-e"ansible_ssh_private_key_file=~/.ssh/id_rsa" \
-e"ansible_user=$(whoami)" \
-e"ocp_username=${OCP_USERNAME}" \
-e"ocp_workloads=ocp4-workload-istio-controlplane,ocp4-workload-istio-tutorial,ocp4-workload-workshop-dashboard-cluster-admin" \
@kaovilai
kaovilai / Notion-Todo.js
Last active July 29, 2020 18:10
Notion formulas
//Age of task
concat(format(dateBetween(prop("Date Created"), now(), "days")), " days old");
//If Due Date is empty, don't display due in
if(empty(prop("Due Date")), "", "Due in " + format(dateBetween(prop("Due Date"), now(), "days")) + " days")
//Combined
concat(format(dateBetween(now(), prop("Date Created"), "days")), " days old") + if(empty(prop("Due Date")), "", "; Due in " + format(dateBetween(prop("Due Date"), now(), "days")) + "D " + format(dateBetween(prop("Due Date"), now(), "hours") - 24 * dateBetween(prop("Due Date"), now(), "days")) + "H " + format(dateBetween(prop("Due Date"), now(), "minutes") - 60 * dateBetween(prop("Due Date"), now(), "hours")) + "M " + format(dateBetween(prop("Due Date"), now(), "seconds") - 60 * dateBetween(prop("Due Date"), now(), "minutes")) + "S") + if(empty(prop("blocked by")), "", "\nBlocked by '" + prop("blocked by") + "'") + if(empty(prop("blocking")), "", "; \nblocking: '" + prop("blocking") + "'")
Contract tracing tech from Google and Apple is now available in NC! Anonymous and No login required!
The app uses bluetooth only and doesn't track your location. The purpose is to allow an exposed person to notify you anonymously that you have been exposed and should get tested.
Whitepapers
https://developer.apple.com/exposure-notification/
https://www.google.com/covid19/exposurenotifications/
SlowCovidNC Homepage
https://covid19.ncdhhs.gov/slowcovidnc
kind: ImageStream
apiVersion: image.openshift.io/v1
metadata:
name: nginx
namespace: nginx-example
uid: 6c4952d1-583c-415b-ae3a-247fe0f56381
resourceVersion: '14604570'
generation: 1
creationTimestamp: '2021-08-26T16:16:03Z'
annotations:
@kaovilai
kaovilai / getprop
Last active September 23, 2021 03:34
Signal Crash on OnePlus 7 Pro Android 11
[DEVICE_PROVISIONED]: [1]
[aaudio.hw_burst_min_usec]: [2000]
[aaudio.mmap_exclusive_policy]: [2]
[aaudio.mmap_policy]: [2]
[af.fast_track_multiplier]: [2]
[audio.deep_buffer.media]: [true]
[audio.offload.min.duration.secs]: [30]
[audio.sys.mute.latency.factor]: [2]
[audio.sys.noisy.broadcast.delay]: [500]
[audio.sys.offload.pstimeout.secs]: [3]
@kaovilai
kaovilai / VeleroCR.yaml
Created October 13, 2021 18:56
e2e fail 10/13 Focus: MSSQL application
apiVersion: oadp.openshift.io/v1alpha1
kind: Velero
metadata:
creationTimestamp: '2021-10-13T18:52:09Z'
generation: 1
managedFields:
- apiVersion: oadp.openshift.io/v1alpha1
fieldsType: FieldsV1
fieldsV1:
'f:spec':