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
| """ | |
| 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 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
| 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
| 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
| # /etc/httpd/conf.d/05-foreman-ssl.conf | |
| PassengerAppRoot /usr/share/foreman | |
| PassengerRuby /usr/bin/tfm-ruby | |
| PassengerMinInstances 5 | |
| PassengerStartTimeout 600 | |
| PassengerPreStart https://<FQDN> | |
| # https://www.phusionpassenger.com/library/config/apache/optimization/ | |
| # /etc/httpd/conf.d/passenger_tunnings.conf |
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 ruby | |
| ##### | |
| ##### [root@sat6mmello ~]# openssl s_client -CAfile /etc/foreman-proxy/ssl_ca.pem -connect $(hostname):8444 | |
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'webrick' | |
| require 'webrick/https' |
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
| --- /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.80/app/models/katello/concerns/content_facet_host_extensions.rb.orig 2016-10-10 16:46:52.578790963 -0400 | |
| +++ /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.80/app/models/katello/concerns/content_facet_host_extensions.rb 2016-10-10 16:48:10.677468395 -0400 | |
| @@ -23,11 +23,11 @@ | |
| has_many :applicable_errata, :through => :content_facet | |
| scoped_search :in => :content_view, :on => :name, :complete_value => true, :rename => :content_view | |
| - scoped_search :in => :content_facet, :on => :content_view_id, :rename => :content_view_id | |
| + scoped_search :in => :content_facet, :on => :content_view_id, :rename => :content_view_id, :only_explicit => true | |
| scoped_search :in => :lifecycle_environment, :on => :name, :complete_value => true, :rename => :lifecycle_environment | |
| - scoped_search :in => :content_facet, :on => :lifecycle_environment_id, :rename => :lifecycle_environment_id |