#! /bin/bash

# ↑ (2191)
# Upload input from stdin to a pad. The first argument of the script is the name of the pad
#

curl -F "file=@-;type=text/plain" "$(🗊 $1)/import"
#! /bin/bash

# ↓ (2193)
# Download content from a pad as text and send it to stdout
#

wget -qO- "$(🗊 $1)/export/txt"
#! /bin/bash

# ☁ (2601)
# Download content from given pad and excecute
#

eval "$(↓ $1)"
#! /bin/bash

# 🌩 (1f329)
# Download content from given pad and excecute
#

# Store pad content in temporary file
tmp="tmp-unibash-code"
↓ $2 > $tmp
# Execute
eval "${1} ${tmp}"
# Remove the file
rm $tmp
🌩
#! /bin/bash

# 🗊 (1f5ca)
# Transform name to pad url
#

echo "http://192.168.73.188:9001/p/${1}"
🗊
../