not done
tags include #next
not done
(due before today) OR (scheduled before today)
hide recurrence rule
#!/bin/bash | |
curl -X PUT --data "$(cat -)" https://bin.gy/ | |
echo # bin.gy does not return a newline after the link | |
# use: cat <file> | bin | |
# or: some-command | bin |
# bash function to generate ports for projects | |
# use the first four non-zero digits from the sha256sum of the project’s name | |
# infer the name from the current directory if no argument is given | |
thinkofport() { | |
if [ "$#" -gt 0 ]; then | |
echo -n "$1" | sha256sum | grep -o '[1-9]' | head -n 4 | tr -d '\n' | |
else | |
basename "$(pwd)" | sha256sum | grep -o '[1-9]' | head -n 4 | tr -d '\n' | |
fi | |
} |