From 9f91a082534feb0d6c471b7b3392360dd13b32d8 Mon Sep 17 00:00:00 2001 From: randomuser Date: Sun, 18 Oct 2020 18:40:53 +0000 Subject: [PATCH] ttm.sh pastebin wrapper and battery script --- bat | 3 +++ paste | 5 +++++ 2 files changed, 8 insertions(+) create mode 100755 bat create mode 100755 paste diff --git a/bat b/bat new file mode 100755 index 0000000..88788aa --- /dev/null +++ b/bat @@ -0,0 +1,3 @@ +#!/bin/sh + +cat /sys/class/power_supply/BAT?/capacity diff --git a/paste b/paste new file mode 100755 index 0000000..89b5eb0 --- /dev/null +++ b/paste @@ -0,0 +1,5 @@ +#!/bin/sh +set -x + +[ "$1" = "" ] && exit 1 +[ -f "$1" ] && curl -F"file=@${1}" https://ttm.sh && exit 0