Skip to content

Instantly share code, notes, and snippets.

View RakibFiha's full-sized avatar
🏠
Working from home

Rakib Fiha RakibFiha

🏠
Working from home
View GitHub Profile
@RakibFiha
RakibFiha / is_unique.lua
Last active October 17, 2020 06:27
Find if a string has unique characters in Lua with Set implementation
#!/usr/bin/env lua
local lib = require "lib"
local totable = lib.totable
local Set = lib.Set
local tablelength = lib.tablelength
local contains = lib.contains
-- isuniqe function implementation
-- print(isuniqe("aabc")) -- would return false
@RakibFiha
RakibFiha / docker
Last active February 24, 2024 06:58
docker wrapper for podman, colima and docker
#!/usr/bin/env bash
# Author: rakibfiha
# Usage: Save it to $HOME/.local/bin/docker and add this path to your $PATH
# ENV: DOCKER_RUNTIME=podman|colima-containerd; Default: colima-containerd
# For colima: colima start --runtime containerd
# For podman: podman machine init && podman machine start and set DOCKER_RUNTIME=podman
# For docker: set DOCKER_RUNTIME=full/path/to/docker/executable
runtime_exists() {