ttm.sh pastebin wrapper and battery script

This commit is contained in:
randomuser 2020-10-18 18:40:53 +00:00
parent 2e8bd7c21c
commit 9f91a08253
2 changed files with 8 additions and 0 deletions

3
bat Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
cat /sys/class/power_supply/BAT?/capacity

5
paste Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
set -x
[ "$1" = "" ] && exit 1
[ -f "$1" ] && curl -F"file=@${1}" https://ttm.sh && exit 0