This file contains 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
class Password | |
{ | |
readonly string unencryptedPassword; | |
Password(string unencryptedPassword) | |
{ | |
unencryptedPassword = unencryptedPassword; | |
} | |
} |
This file contains 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
packer build example-pack.json | |
2014/06/04 16:42:36 Packer Version: 0.6.0 12e28f257f66299e3bb13a053bf06ccd236e7efd | |
2014/06/04 16:42:36 Packer Target OS/Arch: darwin amd64 | |
2014/06/04 16:42:36 Built with Go Version: go1.2 | |
2014/06/04 16:42:36 Detected home directory from env var: /Users/redact | |
2014/06/04 16:42:36 Attempting to open config file: /Users/redact/.packerconfig | |
2014/06/04 16:42:36 File doesn't exist, but doesn't need to. Ignoring. | |
2014/06/04 16:42:36 Packer config: &{PluginMinPort:0 PluginMaxPort:0 Builders:map[docker:packer-builder-docker openstack:packer-builder-openstack virtualbox-iso:packer-builder-virtualbox-iso googlecompute:packer-builder-googlecompute qemu:packer-builder-qemu vmware-vmx:packer-builder-vmware-vmx parallels-iso:packer-builder-parallels-iso null:packer-builder-null amazon-ebs:packer-builder-amazon-ebs amazon-chroot:packer-builder-amazon-chroot virtualbox-ovf:packer-builder-virtualbox-ovf vmware-iso:packer-builder-vmware-iso amazon-instance:packer-builder-amazon-instance digitalo |
This file contains 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
{ | |
"sensor": { | |
"type": "map", | |
"value": { | |
"luminiscence": { | |
"type": "integer", | |
"value": 77 | |
}, | |
"ultraviolet": { | |
"type": "integer", |
This file contains 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
// Copyright (c) 2015 Initial State Technologies, Inc. | |
// This file is licensed under the MIT License | |
// http://opensource.org/licenses/MIT | |
class InitialState { | |
static _baseUrl = "https://groker.initialstate.com/api/"; | |
static _apiVersion = "~0"; | |
_bucketKey = null; | |
_accessKey = null; | |
_bucketName = null; |
This file contains 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
isstreamer.ini |
This file contains 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
void postBucket() | |
{ | |
Process isstreamer; | |
String newjson; | |
newjson="https://groker.initialstate.com/api/events?accessKey="+accessKey+"&bucketKey="+bucketKey; | |
newjson+= "&Sensor 1="+sensor_data[0]; | |
newjson+= "&Sensor 2="+sensor_data[1]; | |
isstreamer.begin("curl"); | |
isstreamer.addParameter(newjson); |
This file contains 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
curl https://groker.initialstate.com/api/events?accessKey=SOME_ACCESS_KEY&bucketKey=SOME_BUCKET_KEY&sensor1=1&sensor2=2&sensor3=3 |
This file contains 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
'use strict'; | |
let https = require('https'), | |
http = require('http'); | |
const ISAccessKey = 'INITIALSTATE_ACCESS_KEY', | |
ISBucketKey = 'INITIALSTATE_BUCKET_KEY', | |
WundergroundApiKey = 'WUNDERGROUND_API_KEY', | |
WundergroundCity = 'Nashville', | |
WundergroundState = 'TN'; |
This file contains 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 sends an event to Initial State (http://insecure-groker.initialstate.com) | |
using an Arduino Wiznet Ethernet shield. | |
Circuit: | |
* Ethernet shield attached to pins 10, 11, 12, 13 | |
created 18 Dec 2009 |
This file contains 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
# # # # # # # # # # # # # # # # # # # # # # # # # # | |
# Leagl stuff. Because, lawyers. | |
# | |
# Copyright (c) 2017 David Sulpy | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
OlderNewer