vault backup: 2023-11-06 11:47:23

This commit is contained in:
Paul Trowbridge 2023-11-06 11:47:23 -05:00
parent c2a313dc64
commit db15580599
2 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/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 -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

4
requirements.sh Normal file
View File

@ -0,0 +1,4 @@
sudo apt-get install libpq-dev
pip install requests
pip install psycopg2
pip install python-dotenv