Skip to content

Instantly share code, notes, and snippets.

blueprint:
name: Switch-activated Light
description: Turn on a light on/off following a switch.
domain: automation
input:
switch_entity:
name: Switch
selector:
entity:
light_target:
2018/02/28 09:25:59 [INFO] Terraform version: 0.11.3
2018/02/28 09:25:59 [INFO] Go runtime version: go1.9.3
2018/02/28 09:25:59 [INFO] CLI args: []string{"/usr/local/Cellar/terraform/0.11.3/bin/terraform", "apply"}
2018/02/28 09:25:59 [DEBUG] Attempting to open CLI config file: /Users/allisterantosik/.terraformrc
2018/02/28 09:25:59 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2018/02/28 09:25:59 [INFO] CLI command args: []string{"apply"}
2018/02/28 09:25:59 [INFO] command: empty terraform config, returning nil
2018/02/28 09:25:59 [DEBUG] command: no data state file found for backend config
2018/02/28 09:25:59 [DEBUG] New state was assigned lineage "083e0398-4f79-47c8-bc17-fc41e67eff8b"
2018/02/28 09:25:59 [INFO] command: backend initialized: <nil>
@allistera
allistera / aws_csaa_notes.md
Last active October 30, 2020 01:41
AWS Certified Solutions Architect - Associate Notes

AWS Certified Solutions Architect - Associate Notes

IAM

  • Power users can do everything except manage users and groups.
  • Can assign Roles to EC2 Instances.
  • Access Key ID and Secret Access key is auto-generated on user account creation.
  • Create role and attach policy for granting users temporary access.
  • 'Paying Account' and 'Linked Account' are types of consolidated billing account types.
### Keybase proof
I hereby claim:
* I am allistera on github.
* I am allisterantosik (https://keybase.io/allisterantosik) on keybase.
* I have a public key ASAua8q9LsFk-rvDTWYK3FeU_UlwE0lmYWjfrFTM3F3smQo
To claim this, I am signing this object:
@allistera
allistera / gist:5481929
Created April 29, 2013 14:30
Get all image files using codeigniter and output them as img tags. Allow them to be selected and place the filename in a hidden textbox.
<?php
// Controller Logic
// Get a list of all images
$this->load->helper('file');
$images = get_filenames('./assets/file_library/activities/');
// Remove the default
$this->viewData['images'] = array_diff($images, array('default.png'));
?>