Skip to content

Instantly share code, notes, and snippets.

curl -X PUT -d "{"receiveAsWhitelist":["*"], "sendWhitelist":["*"]}" https://meshblu.octoblu.com/devices/[flow-uuid] --header "meshblu_auth_uuid: {my uuid}" --header "meshblu_auth_token: {my token}" --header "Content-Type: application/json"
@sqrtofsaturn
sqrtofsaturn / -
Created September 18, 2015 18:14
OK
OK
OK
OK
@sqrtofsaturn
sqrtofsaturn / indexes.js
Created October 16, 2015 20:53
Meshblu Indexes
db.devices.createIndex({'meshblu.tokens': -1})
db.devices.createIndex({'uuid': -1})
#!/bin/bash
benchmarkOutput() {
local filename=$1
cat "$filename" | grep 'ms$'
}
getUniqExpressions() {
local filename=$1
FROM haproxy:1.5
COPY haproxy.cfg /usr/local/etc/haproxy/haproxy.cfg
CMD ["haproxy", "-d", "-f", "/usr/local/etc/haproxy/haproxy.cfg"]
defaults
log global
mode http
option httplog
option dontlognull
backend vulcand
balance leastconn
option forwardfor
@sqrtofsaturn
sqrtofsaturn / outline.md
Created November 18, 2015 05:22
2015-11-18 Phxmobi outline

Honey, I Shrunk Skynet: Composable Microservices, Mobile Devices, and IoT

Microservices

  • They are so hot right now
  • But why?
    • They make your life easier
    • They enforce separation of concerns
    • They get your project finished faster (as long as you're disciplined!)
    • They make your api cleaner
  • You might not think you'll use the api in other ways at first, but it's there and easy to use when you need it.
@sqrtofsaturn
sqrtofsaturn / watch-me-watch-me
Created January 15, 2016 16:48
Flow to watch
97998eb5-b2ca-4b72-9323-2026724ecb6e
@sqrtofsaturn
sqrtofsaturn / todo.txt
Last active January 26, 2016 00:23
Stuff to do for workflows in Octoblu
* Flows always look offline, despite being online
* Could not search for tag until I added/delete a value for that tag
* Compose node textboxes are ordered (value, key), but the button says "Add Key Value Pair"
* can't update tags in rightsignature (requires special xml?)
* Finding triggers in a flow
* Putting a flow in itself causes the flow to use the capacity of meshblbu
@sqrtofsaturn
sqrtofsaturn / big-update.json
Created March 11, 2016 17:24
A big update for demonstrating meshblu problems
This file has been truncated, but you can view the full file.
{"$set": {"garbage": "AGm6kpjpr5iyWQUNMF5ESQvbMpEPEpSep2umMfVerG/+qz1jWbZghwnuTCML6ABiYYUUV/ptnMVAQ/iXCePBdrGKBS4VRsdLVU3UZrzLh0DdkEsb0HzUW93vM9ZXkFUEJZtlQowQBZyors1p/FP2lcZ6a/yrtsrjNr3ELELGSqSTp/HAioifdErdTA8ceqQjEc5342V17OCEM4Kbgau5cWCRWBPvdLkTdy/HgkysZ90veZkx6dGAJd3O48kXuinAmx7bpv0h3+Ibg0gZ3z9vAQulkHXJdU5igNhJqkp0wejM9GC+MDKKnOg4HID4eGnXFGGkt+VVA+1As8SyFD3Cv9KjU6T4bjGBNUyHDNVTqxVZ1c2H4tQ6vx7kOIOxg2wyicn44CQshQPQHBluy+XTTmV47YKPh6iyc850lbBO1R2PdNKuaqZyyII84bpWx/xhuvjEh090foczPgx9Jqj94Cl6lOSIHtqBUN9Qk04XMTEY+5cWkPNTzdEGPN17va0BahJEdOUOpzNEWAO7i2zCvMJwxPJebQEu4RNJBL6SiB2AvrPX3zkWKUfQIu2d/B6i9SLe8Z/uXdG/KO3CLEg5R61wJoDyTPCJYKQlji6XR3sBO8FPYQcRTZyCHiak54I0JoC81Ot+MjOQNqyCyqE3c4eb/SXN9iG7qUWAFaue/t/bYJecdjezcuth/UZws1s+nxSDBTMaFwRK9BeucnyFKqBk6mtnXWPrxjmih8gXd0HZuzIQjDaBus3twNe3+1tOz+8JW+mHTelNipWvzH8g+lDd/0dZl2dT886T7ksb8IM2XFu2zWSIJ8YldrJha9XlDpPMxcj+yT/GxakBYEFgdQH6MpfN0/7DFXJrbfLPM2htvySp1/a1hy2f+lwuTQKsYrWkBNujR8+MyeKqfY6489AQf5HdO8P6HeL8/0an0EIbg7HHrQ9UrBl2EUbql8fEroLMmFFK2THQFPM41hCA7Z3woTqot2duWoqgHoc2dr