This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT table_name, pg_size_pretty(total_bytes) AS total | |
| , pg_size_pretty(index_bytes) AS INDEX | |
| , pg_size_pretty(toast_bytes) AS toast | |
| , pg_size_pretty(table_bytes) AS TABLE | |
| FROM ( | |
| SELECT *, total_bytes-index_bytes-COALESCE(toast_bytes,0) AS table_bytes FROM ( | |
| SELECT c.oid,nspname AS table_schema, relname AS TABLE_NAME | |
| , c.reltuples AS row_estimate | |
| , pg_total_relation_size(c.oid) AS total_bytes | |
| , pg_indexes_size(c.oid) AS index_bytes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/homeassistant/components/device_tracker/automatic.py b/homeassistant/components/device_tracker/automatic.py | |
| index 27bd9c6..2d10eb8 100644 | |
| --- a/homeassistant/components/device_tracker/automatic.py | |
| +++ b/homeassistant/components/device_tracker/automatic.py | |
| @@ -114,12 +114,15 @@ class AutomaticDeviceScanner(object): | |
| response = requests.get(URL_VEHICLES, headers=self._headers) | |
| response.raise_for_status() | |
| + _LOGGER.debug('reponse: %s', response) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Support for WUnderground weather service. | |
| For more details about this platform, please refer to the documentation at | |
| https://home-assistant.io/components/sensor.wunderground/ | |
| """ | |
| from datetime import timedelta | |
| import logging | |
| import requests |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import os | |
| import re | |
| TFTP_PXELINUX_ROOT_CFG="/var/lib/tftpboot/pxelinux.cfg" | |
| TFTP_GRUB_ROOT_CFG="/var/lib/tftpboot/boot/grub2/powerpc-ieee1275" | |
| TFTP_GRUB_CFG_PREFIX="grub.cfg-" | |
| GRUB2_TEMPLATE=""" | |
| set default=0 | |
| set timeout=5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Support for WUnderground weather service. | |
| For more details about this platform, please refer to the documentation at | |
| https://home-assistant.io/components/sensor.wunderground/ | |
| """ | |
| from datetime import timedelta | |
| import logging | |
| import requests |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| 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/camera.amcrest/ | |
| """ | |
| import logging | |
| import voluptuous as vol | |
| from amcrest import AmcrestCamera |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Support for WUnderground weather service. | |
| For more details about this platform, please refer to the documentation at | |
| https://home-assistant.io/components/sensor.wunderground/ | |
| """ | |
| from datetime import timedelta | |
| import logging | |
| import re |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |