This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |