logo

utils

~/.local/bin tools and git-hooks
commit: 941228360a270bc142341d64ab5d991c17a72221
parent: c61a55a7500ef70901bc897c9f1c3244fbcbe263
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed, 15 Mar 2017 17:45:55 +0100

bin/memsys.sh: Add it with security corrections + README

Diffstat:

AREADME26++++++++++++++++++++++++++
Abin/memsys.sh4++++
2 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/README b/README @@ -0,0 +1,26 @@ +This is my utils which lives in my home PATH (~/.local/bin). + +## argc +Currently prints number of args used. (Used for debugging some broken shells) + +## CC-BY-SA-4.0 +License (see footer) + +## mcal +more simple cal(1), using ISO 8601/RFC 3339 for args. + +## memsys.sh +shell script for locking then suspending to RAM under linux(and maybe others) + +## range +A range function for C/shell. + +## ctr (braille, morse, kirshenbaum) +CVS for tr, convertion from one CVS dictionary another using CVS + +## timey-whyme.sh +script for managing your time(TODO and Calendar), done it because todo.txt/taskwarrior didn’t have nice due time and weren’t Unix-y enough + +--- + +Copyright CC-BY-SA-4.0 2017- Haelwenn (lanodan) Monnier <contact@hacktivis.me> diff --git a/bin/memsys.sh b/bin/memsys.sh @@ -0,0 +1,4 @@ +#!/bin/sh +locker='slock' + +su -c "su -c $locker $(id -u -nr) & echo mem > /sys/power/state" $(id -u -nr 0)