Skip to content

Instantly share code, notes, and snippets.

@brianlow
brianlow / PostToCosm
Created December 18, 2012 06:22 — forked from anonymous/PostToCosm
var webClient = new WebClient();
webClient.Headers.Set("X-ApiKey", "KbI9MZtLvhaOuAi0DKXWzc4UZk-SAKxhQjd3MHJtd2ZwYz0g");
var response = webClient.UploadString(
"http://api.cosm.com/v2/feeds/92158/datastreams/WaterLevel/datapoints",
"POST",
@"{
""datapoints"":[
{""at"":""2012-12-18T04:00:00Z"",""value"":""294""},
{""at"":""2012-12-18T04:01:00Z"",""value"":""295""},
{""at"":""2012-12-18T04:02:00Z"",""value"":""296""},
@brianlow
brianlow / kafka-from-cli.md
Last active May 30, 2018 01:38 — forked from crcastle/kafka-from-cli.md
Kafka CLI example using Apache Kafka on Heroku
@brianlow
brianlow / varnish3.rb
Last active January 7, 2019 17:55 — forked from aslam/varnish3.rb
Install Varnish-3.0.7 on OSX with homebrew
##
# Install Varnish 3.0.7 on OSX with the following Brew command:
# $> brew install https://gist.github.com/brianlow/674897ef935c2aae2f6cdae41c17766f/raw/varnish.rb
#
# You also might have to run:
# $> sudo brew link varnish3
# To symlink the install.
##
require 'formula'