Magic words:
psql -U postgresIf run with -E flag, it will describe the underlaying queries of the \ commands (cool for learning!).
Most \d commands support additional param of __schema__.name__ and accept wildcards like *.*
| """ | |
| This component provides support to the Ring Door Bell camera. | |
| For more details about this platform, please refer to the documentation at | |
| https://home-assistant.io/components/camera.ring/ | |
| """ | |
| import asyncio | |
| import logging | |
| from datetime import datetime, timedelta |
| """ | |
| This component provides support to the Ring Door Bell camera. | |
| For more details about this platform, please refer to the documentation at | |
| https://home-assistant.io/components/camera.ring/ | |
| """ | |
| import asyncio | |
| from datetime import datetime, timedelta | |
| import pytz | |
| import dateutil.parser |
| CERT=/etc/pki/katello/certs/katello-apache.crt | |
| KEY=/etc/pki/katello/private/katello-apache.key | |
| qpid-config --ssl-certificate $CERT --ssl-key $KEY -b "amqps://localhost:5671" add exchange topic event --durable | |
| qpid-config --ssl-certificate $CERT --ssl-key $KEY -b "amqps://localhost:5671" add queue katello_event_queue --durable | |
| qpid-config --ssl-certificate $CERT --ssl-key $KEY -b "amqps://localhost:5671" bind event katello_event_queue '*.*' |
| """ | |
| This component provides HA sensor support for Ring Door Bell/Chimes. | |
| For more details about this platform, please refer to the documentation at | |
| https://home-assistant.io/components/sensor.ring/ | |
| """ | |
| import logging | |
| from datetime import timedelta | |
| import voluptuous as vol |
| #!/usr/bin/env python3 | |
| import socket | |
| import requests | |
| from subprocess import Popen, PIPE | |
| import json | |
| ## line which as Node004 ZRC-90 command | |
| # scene1 | |
| #2017-01-14 23:36:31.244 Detail, Node004, Received: 0x01, 0x0b, 0x00, 0x04, 0x00, 0x04, 0x05, 0x5b, 0x03, 0x66, 0x00, 0x01, 0xce | |
| # scene2 |
| #!/usr/bin/env python | |
| # vim:ts=4:sw=4:et | |
| import os | |
| import socket | |
| import sys | |
| import requests | |
| import tempfile | |
| sys.path.append('/usr/share/foreman/config') |
| #!/bin/bash | |
| STATE="" | |
| for TASK in `pulp-admin tasks list | egrep '^Task Id:|^State:' | sed -e 's,^Task Id: ,,' -e 's,^State: ,,'`; do | |
| if [ "$STATE" = "" ]; then | |
| STATE=$TASK | |
| else | |
| if [ $STATE != Successful ] && [ $STATE != Cancelled ] && [ $STATE != Failed ]; then | |
| pulp-admin tasks details --task-id=$TASK | |
| pulp-admin tasks cancel --task-id=$TASK | |
| fi |
| """ | |
| This component provides basic support for Amcrest IP cameras. | |
| For more details about this platform, please refer to the documentation at | |
| https://home-assistant.io/components/sensor.amcrest/ | |
| """ | |
| from datetime import timedelta | |
| import logging | |
| import voluptuous as vol |
| #!/bin/bash | |
| export PATH="/bin:/sbin:/usr/bin:/usr/sbin:/opt/rh/postgresql92/root/usr/bin" | |
| PG_VERSION=$(su - postgres -c "psql -c 'select version();'" | grep "^ PostgreSQL" | cut -f 3 -d ' ' | cut -f1 -d'.') | |
| if [ $PG_VERSION -eq 9 ]; then | |
| echo "SELECT query,xact_start,query_start FROM pg_stat_activity GROUP BY query,xact_start,query_start;" | spacewalk-sql --select-mode - | |
| elif [ $PG_VERSION -eq 8 ]; then |