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
vagrant@stackstorm:~$ cat /opt/stackstorm/packs/examples/actions/mistral-basic.yaml | |
version: '2.0' | |
examples.mistral-basic: | |
description: A basic workflow that runs an arbitrary linux command. | |
type: direct | |
input: | |
- cmd | |
output: | |
stdout: <% $.stdout %> |
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
Non working Vagrant 1.7.4 Version | |
==> default: Running provisioner: salt... | |
INFO environment: Running hook: provisioner_run | |
INFO runner: Preparing hooks for middleware sequence... | |
INFO runner: 3 hooks defined. | |
INFO runner: Running action: provisioner_run #<Method: Vagrant::Action::Builtin::Provision#run_provisioner> | |
INFO warden: Calling IN action: #<Proc:0x000001027d4c60@/opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/warden.rb:94 (lambda)> | |
INFO interface: info: Copying salt minion config to vm. | |
Copying salt minion config to vm. |
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
Using salt package 2014.7.0+ds-2trusty1 | |
vagrant@vagrant-ubuntu-trusty-64:~$ sudo salt-call --local grains.items | |
local: | |
---------- | |
SSDs: | |
biosreleasedate: | |
12/01/2006 | |
biosversion: | |
VirtualBox |
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
#!/bin/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' | |
green='\033[0;32m' |
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
"script": "ctx._source.Tracking += Tracking", | |
"params": { | |
"Tracking": [ { "Timestamp": datetime.datetime.now(), "Entry": tracking['Entry'], "SystemId": system_id} ] | |
} |
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
INFO:sleekxmpp.xmlstream.xmlstream:Negotiating TLS | |
INFO:sleekxmpp.xmlstream.xmlstream:Using SSL version: 3 | |
ERROR:sleekxmpp.xmlstream.xmlstream:Connection error. | |
ERROR:sleekxmpp.basexmpp:Failed to import _strptime because the import lockis held by another thread. | |
Traceback (most recent call last): | |
File "/usr/local/lib/python2.7/dist-packages/sleekxmpp/xmlstream/xmlstream.py", line 1441, in _process | |
if not self.__read_xml(): | |
File "/usr/local/lib/python2.7/dist-packages/sleekxmpp/xmlstream/xmlstream.py", line 1509, in __read_xml | |
self.__spawn_event(xml) | |
File "/usr/local/lib/python2.7/dist-packages/sleekxmpp/xmlstream/xmlstream.py", line 1577, in __spawn_event |
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 Capture_Upload: | |
def __init__(self, controlmypi): | |
self.image_id = 0 | |
self.controlmypi = controlmypi | |
self.storage_bucket = 'image-store' | |
self.uri = boto.storage_uri(self.storage_bucket, 'gs') | |
self.temp_dir = tempfile.mkdtemp(prefix='googlestorage') | |
temp_uuid = str(uuid4()) | |
self.entr = temp_uuid[0:8] |
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
if controlmypi_connection.start_control(): | |
capture_service.say_cheese() | |
try: | |
while True: | |
logging.info("Queue length is : %d" % snap_queue.qsize()) | |
rgb = snap_queue.get(block=True) | |
led_setter.set(rgb) | |
capture_service.say_cheese() | |
capture_service.spring_cleaning() | |
except KeyboardInterrupt: |
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 controlmypi import ControlMyPi | |
jabber_id = 'Jabber ID' | |
password = 'password' | |
panel_id = 'circMan' | |
panel_name = 'Lights In A Box' | |
panel_status = 'pub' | |
def controlmypi_callback(connection, key, value): | |
logging.info("Got message from controlmypi.com key : %s Value : %s" % (key, value)) |
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
# -*- coding: utf-8 -*- | |
from __future__ import with_statement | |
import os | |
import time | |
import logging | |
import shutil | |
import tempfile | |
import Queue |
NewerOlder