Skip to content

Instantly share code, notes, and snippets.

@bato3
bato3 / gist:d4174c9fb4b3ac4ae5ff7ce0fe9aa213
Created April 30, 2017 12:58 — forked from danbev/gist:9887071
SockJS curl commands

Open or poll a xhr polling session:

curl -v http://localhost:8081/echo/123/123/xhr

Send to a xhr polling session:

curl -i --header "Content-Type: application/javascript" -X POST -d '["data"]' http://localhost:8081/echo/123/123/xhr_send
@bato3
bato3 / predictionio_readme.md
Last active April 30, 2017 12:01 — forked from rojosinalma/predictionio_readme.md
PredictionIO Install Instructions

PredictionIO Setup Guide

--

This is a pretty much self-noted guide to setting up PredictionIO in a cluster of 3 servers (for this guide in particular).

You can also setup more servers and distribute the services mentioned here differently, but for the scope of this guide I won't explain how to do that, although you might use the references here to guide yourself into doing that.

  1. Requirements:
<?php
/**
* Twitter Bootstrap Kohana helper
*
* example of use:
* <?=Bootstrap::grid($grid, Bootstrap::FLUID);?>
* <?=$grid->span($view, 4);?>
* <?=Bootstrap::icon('download', TRUE);?>
* <?=Bootstrap::button('Button'); ?>