Skip to content

Instantly share code, notes, and snippets.

@simonswine
simonswine / copy-k8s-resources-across-namespaces.sh
Created August 2, 2016 13:40
Copying kubernetes resources accross namespaces
kubectl get rs,secrets -o json --namespace old | jq '.items[].metadata.namespace = "new"' | kubectl create-f -
@nmerouze
nmerouze / main.go
Last active January 17, 2025 21:20
JSON-API with Go and MongoDB: Final Part
package main
import (
"encoding/json"
"log"
"net/http"
"reflect"
"time"
"github.com/gorilla/context"
@jexp
jexp / ab_results_old_endpoint.txt
Last active January 3, 2016 10:49
ab test of neo4j cypher endpoints
ab -n 1000 -c 1 -T application/json -H accept:application/json -H X-Stream:true -p /Users/mh/trash/perf_test_old.json http://127.0.0.1:7474/db/data/cypher
Benchmarking 127.0.0.1 (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests