|
|
@ -12,6 +12,16 @@ list-commands(){ |
|
|
|
typeset -F | cut -d ' ' -f 3 | grep -v '^_' | sort |
|
|
|
} |
|
|
|
|
|
|
|
# dockerLinux [imagename=ubuntu:22.40] . Quick shell inside given linux container |
|
|
|
dockerLinux(){ |
|
|
|
set -x |
|
|
|
local cid=$(($RANDOM%20)) |
|
|
|
local name=linux_$cid |
|
|
|
local image=${1:-ubuntu:22.04} |
|
|
|
docker run -d --name $name $image sh -c "trap : TERM INT; sleep infinity & wait" |
|
|
|
docker exec -it $name sh |
|
|
|
} |
|
|
|
|
|
|
|
# ts / tsx to js/jsx |
|
|
|
tstojs(){ |
|
|
|
set -x |
|
|
|