all repos — dotfiles @ 891917c42b235ef0e572cfaf38cad6f8db006f1d

linux dotfiles

scripts: some updates
Prithu Goswami pg@prithu.dev
Wed, 06 Mar 2024 21:41:03 +0530
commit

891917c42b235ef0e572cfaf38cad6f8db006f1d

parent

0cdc9d4803f286417684a8dc68156f2514a5f5e0

3 files changed, 5 insertions(+), 6 deletions(-)

jump to
M bin/scripts/logbin/scripts/log

@@ -1,6 +1,5 @@

#!/bin/sh -# life log (stole from icy) -# git.icyphox.sh/dotfiles/tree/home/bin/log +# life log key="A17AFDEA2EF9A76AA868285DE2AB251EDB8945E5" log_path=~/docs/org/lifelog/ll.gpg
M bin/scripts/reddit-browsebin/scripts/reddit-browse

@@ -9,11 +9,11 @@ while [ 1 ]

do if [ "$2" = "top" ] then - url="reddit.com/r/$1/top.json?t=all&after=$after" + url="old.reddit.com/r/$1/top.json?t=all&after=$after" else - url="reddit.com/r/$1.json?after=$after" + url="old.reddit.com/r/$1.json?after=$after" fi - wget --quiet -O - "$url" |\ + curl -s -L -H "User-Agnet: Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0" "$url" |\ tee /tmp/rtmp.json | jq '.data.children[] |.data.url' |\ grep -E 'jpg|png"$' | xargs feh -F 2>/dev/null
M bin/scripts/timesheetctlbin/scripts/timesheetctl

@@ -1,5 +1,5 @@

#!/bin/sh -ts_dir="$HOME/docs/org/projects/comono/timesheets" +ts_dir="$HOME/docs/org/2-notes/comono/timesheets" ts_file="$ts_dir/timesheet-`date +%Y%m`.csv" make_timesheet() { last_day="$(cal `date '+%m %Y'` | head -n -1 | tail -1 | awk '{print $NF}')"