I hereby claim:
- I am javereec on github.
- I am javereec (https://keybase.io/javereec) on keybase.
- I have a public key ASAdAsFp3Rp7_-bLDyeD8QD07cEnabw40jhBiT5iF1u1lwo
To claim this, I am signing this object:
# | |
# Cookbook Name:: atari | |
# Recipe:: db_server | |
# | |
# Copyright 2010, Atari | |
# | |
# All rights reserved | |
# | |
include_recipe "postgresql::server" |
# Install rvm | |
# Install ruby 1.9.3-p125 | |
rvm install 1.9.3-p125 --with-gcc=clang |
require 'active_support' | |
require 'YAML' | |
# in some cases i've found JSON.pretty_generate doesn't output properly | |
# when combined with ActiveSupport::OrderedHash without json/pure | |
# require 'json/pure' | |
def returning(value) | |
yield(value) | |
value | |
end |
curl -XDELETE localhost:9200/twitter | |
curl -XPOST localhost:9200/twitter -d ' | |
{"index": | |
{ "number_of_shards": 1, | |
"analysis": { | |
"filter": { | |
"snowball": { | |
"type" : "snowball", | |
"language" : "English" |
conn = Faraday.new(url: 'http://veran.lvh.me:3000/', params: { token: 'ac350077d3066be3d2ca79fd0586e1b1d386b88a5870a1c0' }) do |f| | |
f.request :multipart | |
f.request :url_encoded | |
f.adapter :net_http | |
end | |
response = conn.post('api/products/abacate-embalagem-de-1kg/images',{image: {attachment: Faraday::UploadIO.new('./image.jpg', 'image/jpeg')}}) | |
## |
filter { | |
if [type] == "odoo" { | |
grok { | |
match => { "message" => "%{ODOOLOG}" } | |
} | |
date { | |
match => [ "timestamp", "yyyy-MM-dd HH:mm:ss,SSS" ] | |
} | |
} | |
} |
/** @jsx React.DOM */ | |
import React from './react-es6'; | |
import classSet from './react-es6/lib/cx'; | |
import BootstrapMixin from './BootstrapMixin'; | |
var Form = React.createClass({ | |
mixins: [BootstrapMixin], |
# Create a product | |
product_params = %{ | |
description: "some content", | |
name: "some content", | |
price: 120.5, | |
sku: "ABC-123" | |
} | |
{:ok, product} = Nova.ProductCommands.create(product_params) | |
# Create a variant |
#!/bin/bash | |
# | |
# Restart Bluetooth Module on Mac OS X | |
# | |
# Requires Blueutil to be installed: http://brewformulas.org/blueutil | |
BT="/usr/local/bin/blueutil" | |
log() { | |
echo "$@" |
I hereby claim:
To claim this, I am signing this object: