Skip to content

Instantly share code, notes, and snippets.

@kaaquist
kaaquist / podman_macos.md
Last active April 2, 2024 13:20
Podman with docker-compose on MacOS.

Podman with docker-compose on MacOS.

Podman an alternative to Docker Desktop on MacOS

Getting podman installed and started is super easy.
Just use brew to install it.

> brew install podman

Now since podman uses a VM just like the Docker Client on MacOS we need to initialize that and start it.

@kyrene-chew
kyrene-chew / SingaporeNricValidator.js
Last active August 11, 2023 06:17
Javascript - Singapore NRIC Validator
function nricValidator(nricInput) {
// validation rules
const nricRegex = /(\D)(\d{7})(\D)/;
const nricTypeRegex = /S|T|F|G/;
const weightArr = [2, 7, 6, 5, 4, 3, 2];
const nricLetterST = ['J', 'Z', 'I', 'H', 'G', 'F', 'E', 'D', 'C', 'B', 'A'];
const nricLetterFG = ['X', 'W', 'U', 'T', 'R', 'Q', 'P', 'N', 'M', 'L', 'K'];
// set nric to all uppercase to remove case sensitivity
const nric = nricInput.toUpperCase();
@marcesher
marcesher / gist:7168642
Last active December 27, 2022 10:29
install 7zip on linux
In this case, in AWS Linux:
yum-config-manager --enable epel
yum install -y p7ip
cp /usr/bin/7za /usr/bin/7z
7z