Skip to content

Instantly share code, notes, and snippets.

View robwithhair's full-sized avatar

Rob Harrison robwithhair

View GitHub Profile
@robwithhair
robwithhair / Readme.md
Last active June 22, 2016 11:49
First impressions of oauth saved json types

Couchbase OAuth types

Ok, so first impressions are the way that the data is being saved in couchbase is not conforming to some of the conventions we made regarding required fields and keys.

All keys saved to the database should be in the format [reverse domain]_[sigular type]_[int id or urlsafe string id] or as an example com.example.www_client_web-app. URLsafe ID's should be composed of a-z A-Z 0-9 or - but not _.

All objects saved in the DB should have the following required properties...

{
"id":"int id or urlsafe string id", // always a string, only the end of the key
package main
import (
"bytes"
"encoding/json"
. "github.com/smartystreets/goconvey/convey"
"io"
"mime/multipart"
"net/http"
"net/http/httptest"
;;; kubernetes-tramp.el --- TRAMP integration for kubernetes containers -*- lexical-binding: t; -*-
;; Copyright (C) 2017 Giovanni Ruggiero <[email protected]>
;; Author: Giovanni Ruggiero <[email protected]>
;; URL: https://github.com/gruggiero/kubernetes-tramp
;; Keywords: kubernetes, convenience
;; Version: 0.1
;; Package-Requires: ((emacs "24") (cl-lib "0.5"))