From 79ca688241777870cfa19b6a0d84b13a50c36f96 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Thu, 12 Jan 2023 21:07:26 -0500 Subject: [PATCH] vault backup: 2023-01-12 21:07:26 --- .obsidian/workspace.json | 23 +++++++-------- pgbdager.md | 10 +++---- pghero.md | 62 ++++++++++++++++++++-------------------- 3 files changed, 46 insertions(+), 49 deletions(-) diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index bba3fdb..5ed94f9 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -4,18 +4,15 @@ "type": "split", "children": [ { - "id": "8842c89178654d5e", + "id": "bd3048da7ced7906", "type": "tabs", "children": [ { - "id": "ea1bfb1f125294a3", + "id": "6971c1675e1bdbb9", "type": "leaf", "state": { - "type": "diff-view", - "state": { - "file": "logseq/bak/esqlate/2023-01-13T01_15_47.847Z.Desktop.md", - "staged": true - } + "type": "empty", + "state": {} } } ] @@ -150,17 +147,17 @@ "command-palette:Open command palette": false } }, - "active": "ea1bfb1f125294a3", + "active": "6971c1675e1bdbb9", "lastOpenFiles": [ + "pages/Contents.md", + "pghero.md", + "pgbdager.md", + "postgres.md", "journals/2023_01_12.md", "journals/2023_01_09.md", "apache.md", "auth.md", "sql_server/error_handling.sql", - "2023-01-09.md", - "visidata.md", - "webmin.md", - "wekan.md", - "telnet.md" + "2023-01-09.md" ] } \ No newline at end of file diff --git a/pgbdager.md b/pgbdager.md index d24d80c..828668e 100644 --- a/pgbdager.md +++ b/pgbdager.md @@ -1,5 +1,5 @@ -creates a file `out.html` by default - - sudo pgbadger --prefix '%t [%p]: [%l-1] user=%u,db=%d,app=%a,client=%h,remote=%r ' //var/log/postgresql/postgresql-2020-02* - -"C:\PostgreSQL\perl5\perl\bin\perl.exe" "C:\PostgreSQL\pgbadger\pgbadger" -o "C:\Users\ptrowbridge\Downloads\pgb.html" "C:\PostgreSQL\data\logs\pg10\postgresql-Mon.log" "C:\PostgreSQL\data\logs\pg10\postgresql-Tue.log" "C:\PostgreSQL\data\logs\pg10\postgresql-Wed.log" "C:\PostgreSQL\data\logs\pg10\postgresql-Thu.log" "C:\PostgreSQL\data\logs\pg10\postgresql-Fri.log" +creates a file `out.html` by default + + sudo pgbadger --prefix '%t [%p]: [%l-1] user=%u,db=%d,app=%a,client=%h,remote=%r ' //var/log/postgresql/postgresql-2020-02* + +"C:\PostgreSQL\perl5\perl\bin\perl.exe" "C:\PostgreSQL\pgbadger\pgbadger" -o "C:\Users\ptrowbridge\Downloads\pgb.html" "C:\PostgreSQL\data\logs\pg10\postgresql-Mon.log" "C:\PostgreSQL\data\logs\pg10\postgresql-Tue.log" "C:\PostgreSQL\data\logs\pg10\postgresql-Wed.log" "C:\PostgreSQL\data\logs\pg10\postgresql-Thu.log" "C:\PostgreSQL\data\logs\pg10\postgresql-Fri.log" diff --git a/pghero.md b/pghero.md index 9fb4ef0..a066edf 100644 --- a/pghero.md +++ b/pghero.md @@ -1,32 +1,32 @@ -https://github.com/ankane/pghero/blob/master/guides/Linux.md - -get: -``` -wget -qO- https://dl.packager.io/srv/pghero/pghero/key | sudo apt-key add - -sudo wget -O /etc/apt/sources.list.d/pghero.list \ - https://dl.packager.io/srv/pghero/pghero/master/installer/ubuntu/18.04.repo -sudo apt-get update -sudo apt-get -y install pghero -``` - -Add your database. (use \ to escape special passw chars) -``` -sudo pghero config:set DATABASE_URL=postgres://user:password@hostname:5432/dbname -``` - -And optional authentication. -``` -sudo pghero config:set PGHERO_USERNAME=link -sudo pghero config:set PGHERO_PASSWORD=hyrule -``` - -Start the server -``` -sudo pghero config:set PORT=3001 -sudo pghero config:set RAILS_LOG_TO_STDOUT=disabled -sudo pghero scale web=1 -``` - -Confirm it’s running with: - +https://github.com/ankane/pghero/blob/master/guides/Linux.md + +get: +``` +wget -qO- https://dl.packager.io/srv/pghero/pghero/key | sudo apt-key add - +sudo wget -O /etc/apt/sources.list.d/pghero.list \ + https://dl.packager.io/srv/pghero/pghero/master/installer/ubuntu/18.04.repo +sudo apt-get update +sudo apt-get -y install pghero +``` + +Add your database. (use \ to escape special passw chars) +``` +sudo pghero config:set DATABASE_URL=postgres://user:password@hostname:5432/dbname +``` + +And optional authentication. +``` +sudo pghero config:set PGHERO_USERNAME=link +sudo pghero config:set PGHERO_PASSWORD=hyrule +``` + +Start the server +``` +sudo pghero config:set PORT=3001 +sudo pghero config:set RAILS_LOG_TO_STDOUT=disabled +sudo pghero scale web=1 +``` + +Confirm it’s running with: + `curl -v http://localhost:3001/` \ No newline at end of file