Skip to content

Instantly share code, notes, and snippets.

Jesse Thompson jessejlt

Block or report user

Report or block jessejlt

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jessejlt
jessejlt / experiment-pipeline.yaml
Last active May 1, 2019
concourse experimentation example
View experiment-pipeline.yaml
jobs:
- name: some experiment
plan:
- task: experiment
config:
platform: linux
run:
path: /bin/bash
args: -exc
- |
View pipe_closer_thinger.go
package main
import (
"io"
"log"
)
func main() {
w := sink()
@jessejlt
jessejlt / main.go
Created Oct 8, 2017
AWS SDK S3 mocking
View main.go
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"
)
View ghetto_unmarshaler.go
package main
import (
"encoding"
"encoding/json"
"fmt"
)
func main() {
@jessejlt
jessejlt / perf.md
Last active Aug 29, 2015
Sharedcloud collection performance
View perf.md

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"
@jessejlt
jessejlt / about.md
Created Jul 2, 2013
Some ECMAScript 6 features I'm excited about
View about.md
@jessejlt
jessejlt / master.yml
Created May 14, 2012
ElasticSearch zen unicast discovery
View master.yml
cluster.name: elasticsearch_media
node.name: "media-dev"
node.master: true
node.data: true
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["153.32.228.250[9300-9400]", "10.122.234.19[9300-9400]"]
@jessejlt
jessejlt / command line example
Created Apr 6, 2012
nosetests running a single test programmatically
View command line example
$ nosetests flask.testsuite.testing:TestToolsTestCase.test_environ_defaults
.
----------------------------------------------------------------------
Ran 1 test in 0.014s
OK
@jessejlt
jessejlt / nginx.conf
Created Mar 23, 2012
Flask + nginx + uwsgi
View nginx.conf
location / {
include uwsgi_params;
uwsgi_pass 127.0.0.1:4050;
}
View gist:1719842
curl -XDELETE localhost:9200
curl -XPOST localhost:9200/test/tools -d '
{
"type": "crayon",
"color": "red"
}'
curl -XPOST localhost:9200/test/tools -d '
{
You can’t perform that action at this time.