Skip to content

Instantly share code, notes, and snippets.

View melvinlee's full-sized avatar

melvinlee melvinlee

  • Singapore
View GitHub Profile
@melvinlee
melvinlee / sqlplus-pod.yaml
Created April 3, 2025 04:27
Oracle sqlplus
apiVersion: v1
kind: Pod
metadata:
name: sqlplus-client
labels:
app: sqlplus
spec:
containers:
- name: sqlplus
image: gvenzl/oracle-free:23
@melvinlee
melvinlee / oracle-sts.yaml
Created April 2, 2025 13:19
Oracle Statefulset Manifest
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: oracle-db
namespace: default
labels:
app: oracle-db
spec:
serviceName: oracle-svc
replicas: 1
@melvinlee
melvinlee / mount-ebs.sh
Created March 28, 2025 01:17
This script attaches and mounts an EBS volume to an EC2 instance
#!/bin/bash
#
# EBS Volume Mount CLI Script
# This script attaches and mounts an EBS volume to an EC2 instance
#
set -e
# Define console colors
BLUE='\033[0;34m'
@melvinlee
melvinlee / myapp.py
Created February 29, 2024 03:41
stramlist
import streamlit as st
import time
col1, col2, col3 = st.columns([1,2,1])
col1.markdown("# Welcome to my app")
uploaded_photo = col2.file_uploader("Upload a photo")
camera_photo = col2.camera_input("Take a photo")
@melvinlee
melvinlee / Dockerfile
Created August 10, 2020 11:56
Baked NuGet packages cache into base images.
FROM mcr.microsoft.com/dotnet/core/sdk:3.1
# warmup NuGet package cache
WORKDIR /sln
COPY *.sln .
COPY projectfiles.tar .
RUN tar -xvf projectfiles.tar
RUN dotnet restore \
--source https://api.nuget.org/v3/index.json
@melvinlee
melvinlee / CKAD.md
Created June 10, 2020 09:51 — forked from veggiemonk/CKAD.md
CKAD exam preparation
#File: .azure-pipelines/azure-pipelines-fluxcd.yaml
trigger:
branches:
include:
- master
- releases/*
paths:
include:
- flux/*
## Install Chocolatey
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
# VS Code
choco install vscode -y
# Chrome
choco install googlechrome -y
# Utilities

PKI

How to Generate Private Key

File parameters to be updated. fileName is file’s name keyPassword is the API Key password

export filename=mykey

Generate new PKI key pair, with 2048 key encryption

minikube start --cpus 4 --memory 8192