Skip to content

Instantly share code, notes, and snippets.

v12.0.0 Luminous (dev)

This is the first development checkpoint release of Luminous series, the next long time release. We're off to a good start to release Luminous in the spring of '17.

Major changes from Kraken

v12.0.0 Luminous (dev)

This is the first development checkpoint release of Luminous series, the next long time release. We're off to a good start to release Luminous in the spring of '17.

Major changes from Kraken

  • When assigning a network to the public network and not to
package main
import (
"fmt"
"os"
"strings"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/aws/session"
#!/usr/bin/env python
import boto
import boto.s3.connection
from boto.compat import six, urllib
from boto.s3.connection import SubdomainCallingFormat
from boto.connection import AWSAuthConnection
class AbsoluteCallingFormat(SubdomainCallingFormat):
# Need this as we need to create a path, but we only pass on
@theanalyst
theanalyst / main.go
Created January 10, 2017 09:24
http abs uri with tracing
package main
import (
"fmt"
"log"
"net/http"
"net/http/httptrace"
"net/http/httputil"
)
#!/usr/bin/env python
# Originally modified from A. Israel's script seen at
# https://gist.github.com/aisrael/b2b78d9dfdd176a232b9
"""To run this script first install the dependencies
virtualenv v
source v/bin/activate
pip install githubpy GitPython requests
#!/usr/bin/env python
import os
import github
import argparse
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("pr", metavar="pr",
help="pr to modify/get title for")
parser.add_argument("title", metavar="title", nargs='?',
2016-05-02 13:14:02.867741 7f46a87d8700 2 req 87:0.000032::GET /nonexistant.html::initializing for trans_id = tx000000000000000000057-005727529a-fbe3-us-east-1
2016-05-02 13:14:02.867748 7f46a87d8700 10 host=s3website.mywebsite.domain.com
2016-05-02 13:14:02.867762 7f46a87d8700 20 subdomain=s3website domain=mywebsite.domain.com in_hosted_domain=1 in_hosted_domain_s3website=1
2016-05-02 13:14:02.867801 7f46a87d8700 20 get_handler handler=29RGWHandler_REST_Obj_S3Website
2016-05-02 13:14:02.867807 7f46a87d8700 10 handler=29RGWHandler_REST_Obj_S3Website
2016-05-02 13:14:02.867809 7f46a87d8700 2 req 87:0.000101:s3:GET /nonexistant.html::getting op 0
2016-05-02 13:14:02.867813 7f46a87d8700 10 op=28RGWGetObj_ObjStore_S3Website
2016-05-02 13:14:02.867816 7f46a87d8700 2 req 87:0.000107:s3:GET /nonexistant.html:get_obj:authorizing
2016-05-02 13:14:02.867822 7f46a87d8700 2 req 87:0.000113:s3:GET /nonexistant.html:get_obj:normalizing buckets and tenants
2016-05-02 13:14:02.867825 7f46a87d8700 10 s->object=nonexistant
#!/usr/bin/env python2
import boto
import boto.s3.connection
import logging
sample_html = '''
<html>
<head>
<title>Sample "Hello, World" Application</title>
</head>
#!/bin/bash
set -x
cluster1=${1:-dc1}
cluster2=${2:-dc2}
export ZONE_ACCESS_KEY=1555b35654ad1656d804
export ZONE_SECRET_KEY="h7GhxuBLTrlhVUyxSPUKUV8r/2EI4ngqJxD7iBdBYLhwluN30JaT3Q=="
export CEPH_CONF=./run/$cluster1/ceph.conf
./radosgw-admin realm create --rgw-realm=gold --default
./radosgw-admin zonegroup create --rgw-zonegroup=us --endpoints=http://localhost:8001 --master --default
./radosgw-admin zone create --rgw-zonegroup=us --rgw-zone=us-east-1 --access-key=$ZONE_ACCESS_KEY --secret=$ZONE_SECRET_KEY --endpoints=http://localhost:8001 --default --master