Skip to content

Instantly share code, notes, and snippets.

View aurynn's full-sized avatar

Aurynn Shaw aurynn

View GitHub Profile
@aurynn
aurynn / write_only_swift.tf
Created March 26, 2020 03:16
write-only-swift
# 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}"
}
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
}
"""
znc::user{"aurynn":
admin => 'true',
ssl => 'true',
quitmsg => 'Taste the Rainbow.',
ident => 'skittles',
realname => "Very real.",
timezone => "Pacific/Auckland",
}
@aurynn
aurynn / gist:af6d1c197e65242124c4
Created July 4, 2014 05:38
Simple greenletters ruby script to capture password hash generation
require 'greenletters'
znc = Greenletters::Process.new("znc -s")
pass = "foo"
salt = method = hash = nil
znc.start!
@aurynn
aurynn / gist:10309576
Created April 9, 2014 20:11
echo rpc client
# 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):
# Shamelessly stolen from the Twisted site
from twisted.internet import protocol, reactor, defer
from twisted.protocols.basic import LineReceiver
from twisted.internet.endpoints import TCP4ServerEndpoint
import json
class JsonEchoServer(LineReceiver):
# Shamelessly stolen from the Twisted site
from twisted.internet import protocol, reactor, defer
from twisted.protocols.basic import LineReceiver
from twisted.internet.endpoints import TCP4ServerEndpoint
import json
class JsonEchoServer(LineReceiver):
# Shamelessly stolen from the Twisted site
from twisted.internet import protocol, reactor, defer
from twisted.protocols.basic import LineReceiver
from twisted.internet.endpoints import TCP4ServerEndpoint
import json
class JsonEchoServer(LineReceiver):
from twisted.internet.protocol import Factory
from twisted.internet.endpoints import TCP4ClientEndpoint
from twisted.internet import reactor, defer
from twisted.protocols.basic import LineReceiver
import json
your_name = "aurynn"
class JsonProtocol(LineReceiver):
def __init__(self, *args):
@aurynn
aurynn / gist:10281816
Created April 9, 2014 15:14
echo client/server
# Shamelessly stolen from the Twisted site
from twisted.internet import protocol, reactor, defer
from twisted.protocols.basic import LineReceiver
from twisted.internet.endpoints import TCP4ServerEndpoint
import json
class JsonEchoServer(LineReceiver):