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
require 'aws-sdk-ssm' | |
require_relative './neko-logger' | |
L = Neko::Logger.logger | |
SSMPS_KEY_PATH = '/config/path/' | |
def config | |
# Skip if config was loaded within the last hour | |
if @config_loaded.nil? || (Time.now - @config_loaded > 3600) | |
L.info('Loading config from SSMPS') |
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
/* | |
Repeating Web client | |
This sketch connects to a a web server and makes a request | |
using a Wiznet Ethernet shield. You can use the Arduino Ethernet shield, or | |
the Adafruit Ethernet shield, either one will work, as long as it's got | |
a Wiznet Ethernet module on board. | |
This example uses DNS, by assigning the Ethernet client with a MAC address, | |
IP address, and DNS address. |
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
/* | |
Web client | |
This sketch connects to a website (http://www.google.com) | |
using an Arduino Wiznet Ethernet shield. | |
Circuit: | |
* Ethernet shield attached to pins 10, 11, 12, 13 | |
created 18 Dec 2009 |