diff --git a/add_to_file.sh b/add_to_file.sh index 259cd0b..5588cb9 100644 --- a/add_to_file.sh +++ b/add_to_file.sh @@ -1,4 +1,4 @@ #!/bin/bash #$PG -t -A -c "SELECT '## 2023-03-31' UNION ALL SELECT ' - ' ||(message->>'text') from rlarp.thirtysec where mdate >= '2023-03-31'" | fold -s -w 80 | sed -E 's/^([^ -])/ \1/;s/^(-{1,2} )/ \1/;s/^/ /' -$PG -t -A -f last_week.pg.sql >> /mnt/c/Users/PTrowbridge/hc_notes/30sec.md +$PG -t -A -f last_week.pg.sql >> /mnt/c/Users/ptrowbridge/hc_notes/30sec.md diff --git a/requirements.sh b/requirements.sh new file mode 100644 index 0000000..5cac094 --- /dev/null +++ b/requirements.sh @@ -0,0 +1,4 @@ +sudo apt-get install libpq-dev +pip install requests +pip install psycopg2 +pip install python-dotenv