Skip to content

Instantly share code, notes, and snippets.

View jessejlt's full-sized avatar

Jesse Thompson jessejlt

View GitHub Profile
@jessejlt
jessejlt / perf.md
Last active August 29, 2015 14:05
Sharedcloud collection performance

Is taking ~500ms to GET /collections/:id a bug or expected? What about taking ~1s to create a collection?

curl -w %{time_total} -iX POST https://cc-us1-stage.adobesc.com/api/v1/collections \
-H "X-User-Token: ---" \
-H "Authorization: ---" \
-H "Content-Type:application/json" \
--data-binary '{
  "collection_name": "1s3c5",
  "parent_collection": "77e10fd2-eb88-4845-8610-d3cae9f8efc4"
package main
import (
"encoding"
"encoding/json"
"fmt"
)
func main() {
@jessejlt
jessejlt / main.go
Created October 8, 2017 16:50
AWS SDK S3 mocking
package main
import (
"fmt"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/s3"
"github.com/aws/aws-sdk-go/service/s3/s3iface"
)
package main
import (
"io"
"log"
)
func main() {
w := sink()
@jessejlt
jessejlt / experiment-pipeline.yaml
Last active May 1, 2019 17:11
concourse experimentation example
jobs:
- name: some experiment
plan:
- task: experiment
config:
platform: linux
run:
path: /bin/bash
args: -exc
- |