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
2019/01/18 16:52:57 [INFO] Terraform version: 0.11.7 41e50bd32a8825a84535e353c3674af8ce799161 | |
2019/01/18 16:52:57 [INFO] Go runtime version: go1.10.1 | |
2019/01/18 16:52:57 [INFO] CLI args: []string{"/home/pauls/.local/bin/terraform", "apply", "--auto-approve"} | |
2019/01/18 16:52:57 [DEBUG] Attempting to open CLI config file: /home/pauls/.terraformrc | |
2019/01/18 16:52:57 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2019/01/18 16:52:57 [INFO] CLI command args: []string{"apply", "--auto-approve"} | |
2019/01/18 16:52:57 [INFO] command: empty terraform config, returning nil | |
2019/01/18 16:52:57 [DEBUG] command: no data state file found for backend config | |
2019/01/18 16:52:57 [DEBUG] New state was assigned lineage "ec2bf51c-13bf-4266-5c74-9eb50a359913" | |
2019/01/18 16:52:57 [INFO] command: backend initialized: <nil> |
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
#include <RFM69.h> | |
#include <SPI.h> | |
#include <Wire.h> | |
#include <Adafruit_GFX.h> | |
#include <Adafruit_SSD1306.h> | |
Adafruit_SSD1306 oled = Adafruit_SSD1306(); | |
#define BUTTON_A 9 | |
#define BUTTON_B 6 | |
#define BUTTON_C 5 |
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
import requests | |
camera_ip = '127.0.0.1' | |
camera_password = '' | |
camera_username = 'root' | |
camera_url = 'http://%s:%s@%s/axis-cgi/param.cgi' % (camera_username, camera_pa> | |
zoneminder_ip = '127.0.0.1' | |
#get current camera status |
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
/etc/consul.d: | |
file.directory: | |
- user: root | |
- group: adm | |
- mode: 0755 | |
/etc/consul.d/client: | |
file.directory: | |
- user: root | |
- group: adm |
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
debconf-utils: | |
pkg.installed | |
base: | |
pkgrepo.managed: | |
- humanname: Unoffical Java PPA | |
- name: deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main | |
- dist: precise | |
- file: /etc/apt/sources.list.d/java.list | |
- keyid: EEA14886 |
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
from athena.classes.module import Module | |
from athena.classes.task import ActiveTask | |
from athena.apis import api_lib | |
from mpd import MPDClient | |
client = MPDClient() | |
client.connect("192.168.0.150", 6600) | |
class PauseSongTask(ActiveTask): | |
def __init__(self): |
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
import json | |
import boto3 | |
import os | |
from __future__ import print_function | |
from email.parser import Parser | |
os.environ['AWS_DEFAULT_REGION'] = 'us-east-1' | |
# this is the email address you want the inbound mail forwarded to |
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
# check depth of keys | |
# | |
a = { | |
'key1': 1, | |
'key2': { | |
'key3': 1, | |
'key4': { | |
'key5': 4 | |
} | |
} |
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 Node: | |
def __init__(self, value, parent): | |
self.value = value | |
self.parent = parent | |
def ancestors(node): | |
# return all parent nodes including this node | |
ancestor_nodes = [] | |
ancestor_nodes.append(node) | |
parent = node.parent |
NewerOlder