Skip to content

Instantly share code, notes, and snippets.

user_id: '54eee748ec1e417d7e42e8fb', value: { profile: { service_type: 'page', profile_id: [Object], service: 'google' }, partner_source: '', via: 'api', placement: null, shared_now: false, num_profiles: 4, top: false, source: 'api', version: null, update_id: { '$oid': '558a6751f73c1407578b456c' }, client_id: { '$oid': '5022676c169f37db0e00001c' }, partner_placement: '', scheduled_at: { '$date': 1435159200000 } }, metric: 'event.updates', date: 1435133777000 }
http://kibana.buffer.com/#/visualize/create?type=histogram&indexPattern=event_data&_g=(refreshInterval:(display:Off,section:0,value:0),time:(from:now-4h,mode:quick,to:now))&_a=(filters:!(),linked:!f,query:(query_string:(analyze_wildcard:!t,query:'_type:event.api.capped')),vis:(aggs:!((id:'1',params:(),schema:metric,type:count),(id:'2',params:(extended_bounds:(),field:date,interval:auto,min_doc_count:1),schema:segment,type:date_histogram)),listeners:(),params:(addLegend:!t,addTooltip:!t,defaultYExtents:!f,mode:stacked,shareYAxis:!t),type:histogram))
version: '2'
services:
ghost:
image: ghost:1.16.2
volumes:
- ./ghost-db/:/var/lib/ghost/content/
expose:
- "2368"
environment:
url: https://steven.news
real_ip_header X-Forwarded-For;
set_real_ip_from 0.0.0.0/0;
split_clients "$remote_addr" $variant {
50% "google.com";
* "yahoo.com";
}
server {
listen 80;
package main
import (
"fmt"
"log"
"net/http"
"runtime"
"time"
"github.com/opentracing-contrib/go-stdlib/nethttp"
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: myhelloworld
name: myhelloworld
spec:
replicas: 1
template:
metadata:
$ curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | \
sudo apt-key add -
$ curl -s -L https://nvidia.github.io/nvidia-docker/debian9/amd64/nvidia-docker.list | \
sudo tee /etc/apt/sources.list.d/nvidia-docker.list
$ sudo apt-get update && sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
spec:
image: kope.io/k8s-1.8-debian-stretch-amd64-hvm-ebs-2018-01-05
kubelet:
featureGates:
DevicePlugins: "true"
machineType: p2.xlarge
maxSize: 2
minSize: 2
apiVersion: v1
kind: Pod
metadata:
name: gpu-pod
spec:
containers:
- name: cuda-container
image: nvidia/cuda:9.0
resources:
limits:
@stevenc81
stevenc81 / dd-tracing-logging-examples-nodejs-deplyment.yaml
Created May 13, 2019 01:46
A quick example for Datadog APM tracing and logging
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: dd-tracing-logging-examples-nodejs
name: dd-tracing-logging-examples-nodejs
namespace: dev
spec:
replicas: 1
template: