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
| 17-01-30 00:50:19 ERROR (MainThread) [homeassistant.bootstrap] Error during setup of component http | |
| Traceback (most recent call last): | |
| File "/usr/src/app/homeassistant/util/__init__.py", line 91, in get_local_ip | |
| sock.connect(('8.8.8.8', 80)) | |
| OSError: [Errno 101] Network is unreachable | |
| During handling of the above exception, another exception occurred: | |
| Traceback (most recent call last): | |
| File "/usr/src/app/homeassistant/bootstrap.py", line 148, in _async_setup_component |
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
| <div class="interaction"> | |
| <div>BobSmith:</div> | |
| <div class="spoke"> | |
| <p><span class="caption">aadfasdfalkja</span> <span class="caption">kjadslk akldf klasj</span></p> | |
| <p><span class="caption">aadfasdfalkj</span></p> | |
| <p><span class="caption">aadfasdfalkj</span></p> | |
| </div> | |
| </div> |
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
| import React, { PropTypes } from 'react'; | |
| import cx from 'classnames'; | |
| class TranscriptTextHighlighter extends React.Component { | |
| constructor() { | |
| super(); | |
| this.state = { | |
| activeIndex: 3, |
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
| --- | |
| Type: "AWS::SSM::Parameter" | |
| Properties: | |
| Name: awesomeParam | |
| Description: A Great Param | |
| Type: String | |
| Value: {Ref: SomeResourceID} |
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
| const AWS = require('aws-sdk'); | |
| const ssm = new AWS.SSM({ apiVersion: '2014-11-06' }); | |
| exports.handler = (event, context, cb) => { | |
| ssm | |
| .getParameter({ Name: 'awesomeParam' }) | |
| .promise() | |
| .then(resp => { | |
| const value = resp.Parameter.Value; | |
| cb(null, `Success: the param value is ${value}`); |
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
| service: service-name | |
| provider: | |
| name: aws | |
| runtime: nodejs6.10 | |
| region: us-east-1 | |
| functions: | |
| hello: | |
| handler: handler.hello |
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
| const path = require('path'); | |
| const { STATUS_CODES } = require('http'); | |
| exports.rewriteHandler = (evt, ctx, cb) => { | |
| const { request } = evt.Records[0].cf; | |
| const htmlExtRegex = /(.*)\.html?$/; | |
| if (htmlExtRegex.test(request.uri)) { | |
| const uri = request.uri.replace(htmlExtRegex, '$1'); | |
| return cb(null, redirect(uri)); | |
| } |
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
| Resources: | |
| WebACL: | |
| Type: "AWS::WAF::WebACL" | |
| Properties: | |
| DefaultAction: | |
| Type: BLOCK | |
| MetricName: "TrustedIPs" | |
| Name: "TrustedIPs" | |
| Rules: | |
| - Action: |
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
| var AWS = require('aws-sdk'); | |
| var elastictranscoder = new AWS.ElasticTranscoder(); | |
| var Create = function(params, reply) { | |
| elastictranscoder.createPipeline(params, function(err, data) { | |
| if (err) { | |
| console.error(err); | |
| reply(err); | |
| } else { |
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
| version: "2" | |
| services: | |
| server: | |
| image: webpagetest/server:latest | |
| volumes: | |
| - ./server/locations.ini:/var/www/html/settings/locations.ini | |
| agent: | |
| image: webpagetest/agent:latest | |
| environment: |