FollieHiyuki-dotfiles/home/.local/bin/purr
FollieHiyuki 9b81f9b07b
Some user configs
- neovim:
    + update lspkind icons for completion
    + start migrating config for nvim-tree.lua
    + update lsp config for sumneko_lua
- scripts:
    + add POSIX clients for PurritoBin (https://bsd.ac)
    + add script to upload to https://0x0.st
2021-10-17 21:48:13 +07:00

11 lines
327 B
Bash
Executable File

#!/bin/sh
# POSIX shell client for PurritoBin to upload standard message
: "${P_SERVER=https://bsd.ac}"
: "${P_PORT=42069}"
: "${P_MAXTIME=30}"
: "${P_TIME=week}" # can be set to day/week/month/<lifetime-in-minutes>
curl --silent --max-time "${P_MAXTIME}" --data-binary "@${1:-/dev/stdin}" "${P_SERVER}:${P_PORT}/${P_TIME}"