Skip to content

Instantly share code, notes, and snippets.

View erhwenkuo's full-sized avatar

ErhWen Kuo erhwenkuo

View GitHub Profile
@erhwenkuo
erhwenkuo / 01_deployment_testweb.yaml
Created April 14, 2019 04:16
Kubernetes網路是如何運作?Part#3 (Ingress & Ingress Controller)
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: test-web-deployment
namespace: default
labels:
app: test-web
spec:
replicas: 3
selector:
@erhwenkuo
erhwenkuo / 01_deployment.yaml
Created April 15, 2019 22:29
Kubernetes Ingress & Ingress Controller 範例#1 (app1)
apiVersion: apps/v1
kind: Deployment
metadata:
name: app1-deployment
namespace: default
labels:
app: app1
spec:
replicas: 3
selector:
@erhwenkuo
erhwenkuo / cuda_11.8_installation_on_Ubuntu_22.04
Last active September 1, 2023 01:04 — forked from MihailCosmin/cuda_11.8_installation_on_Ubuntu_22.04
Instructions for CUDA v11.8 and cuDNN 8.7 installation on Ubuntu 22.04 for PyTorch 2.0.0
#!/bin/bash
### steps ####
# verify the system has a cuda-capable gpu
# download and install the nvidia cuda toolkit and cudnn
# setup environmental variables
# verify the installation
###
### to verify your gpu is cuda enable check