scripts

various scripts and utils
git clone git://kh1b.org/scripts
Log | Files | Refs

commit 1ac9d8dc62f83200b4c57d1a8c60469cd51f0370
parent 90aff83fb7a509e7a6665f61936b3df5ac419cfe
Author: bazizi khaled <contact@kh1b.org>
Date:   Wed, 18 Dec 2024 16:13:49 +0100

adding some scripts

Diffstat:
Abright | 8++++++++
Rcpscreen -> cpshot | 0
Apasteb | 6++++++
3 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/bright b/bright @@ -0,0 +1,8 @@ +#!/bin/sh +# depends on : wjt + +IN="$(xbacklight)" + +wjt -j 20 -s 5 -p "brightness:" -x "$IN" "$@" | while read LEVEL; do + xbacklight -set "$LEVEL" +done diff --git a/cpscreen b/cpshot diff --git a/pasteb b/pasteb @@ -0,0 +1,6 @@ +#!/bin/sh +# simple pastebin +# inspired from https://codemadness.org/paste-service.html + +ssh root@kh1b.org "cat > /var/www/pub.kh1b.org/tmp/$1" +echo "https://pub.kh1b.org/tmp/$1"