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
# This will provide write access, but not list or read access | |
resource "openstack_objectstorage_container_v1" "test" { | |
name = "test-container" | |
container_read = ".r:-${var.service_username}" | |
container_write = "${var.project_id}:${var.service_username}" | |
} |
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 StdioProtocol(LineReceiver): | |
from os import linesep as delimiter | |
def connectionMade(self): | |
self.connected = True | |
def __init__(self, wire): | |
self.chat = wire | |
wire.output = 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
from pyparsing import Word, Literal, alphas, alphanums, stringStart, ParserElement, ZeroOrMore,OneOrMore, Forward, Dict, Group, pythonStyleComment, lineStart, lineEnd, FollowedBy, dictOf, oneOf, NotAny, Regex | |
import re | |
DEBUG=True | |
ce = """custom_tooltip = { | |
fail_text = INVALID_RIVAL_DESC | |
is_country_type = default | |
} | |
""" |
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 twisted.internet.protocol import Factory | |
from twisted.internet.endpoints import TCP4ClientEndpoint | |
from twisted.internet import reactor | |
from twisted.protocols.basic import LineReceiver | |
import json | |
your_name = "aurynn" | |
class JsonProtocol(LineReceiver): |
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 twisted.internet.protocol import Factory | |
from twisted.protocols.basic import LineReceiver | |
import json | |
your_name = "aurynn" | |
class JsonProtocol(LineReceiver): | |
def lineReceived(self, msg): | |
try: |
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
# Shamelessly stolen from the Twisted site | |
from twisted.internet import protocol, reactor, defer, stdio | |
from twisted.protocols.basic import LineReceiver | |
from twisted.internet.endpoints import TCP4ClientEndpoint, connectProtocol | |
import json | |
class JsonEchoClient(LineReceiver): |
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 twisted.internet import stdio, protocol, reactor | |
from twisted.protocols.basic import LineReceiver | |
import json | |
class myProtocol(LineReceiver): | |
def connectionMade(self): | |
# self.sendLine(json.dumps({"name": "aurynn", "message":"hello"})) | |
self.io.getNetwork(self) | |
def lineReceived(self, data): | |
# Do some stuff w/ the data |
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 twisted.internet import protocol, reactor | |
from twisted.protocols.basic import LineReceiver | |
import json | |
class myProtocol(LineReceiver): | |
def lineReceived(self, data): | |
# Do some stuff w/ the data | |
# p = json.loads(data) | |
self.transport.write("Hi!") |
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 twisted.internet import protocol, reactor | |
from twisted.protocols.basic import LineReceiver | |
class myProtocol(LineReceiver): | |
def lineReceived(self, data): | |
# Do some stuff w/ the data | |
p = json.parse(data) | |
self.doStuff(p) | |
def saySomething(self, message): | |
self.sendLine( |
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
znc::user{"aurynn": | |
admin => 'true', | |
ssl => 'true', | |
quitmsg => 'Taste the Rainbow.', | |
ident => 'skittles', | |
realname => "Very real.", | |
timezone => "Pacific/Auckland", | |
} |
NewerOlder