Skip to content

Instantly share code, notes, and snippets.

@shaharmor
shaharmor / leak.js
Last active March 21, 2017 20:50
ioredis memory leak
var Redis = require('ioredis');
// single instance
//var redis = new Redis();
// cluster
var redis = new Redis.Cluster([
{
"host": "127.0.0.1",
"port": 6380
This file has been truncated, but you can view the full file.
INFO:HLSNetStream:close
DEBUG:StreamBuffer flushed
DEBUG:add callback textLoaded, id:0
DEBUG:cancel any manifest load in progress
DEBUG:JSURLLoader.load:http://livestream.peer5.com/video/kite/index.m3u8
The XMLHttpRequest progress event property 'position' is deprecated. Please use 'loaded' instead.
The XMLHttpRequest progress event property 'totalSize' is deprecated. Please use 'total' instead.
DEBUG:resourceLoaded
DEBUG:switch to level 0
DEBUG:(re)load Playlist
@shaharmor
shaharmor / plantie.md
Created August 2, 2015 12:29
Plantie API

plantie-api

Authentication

  • Signup:

    Route: POST: /api/signup

    Body:

@shaharmor
shaharmor / logstash-template.json
Created July 31, 2015 18:22
Logstash elasticsearch template
{
"template": "logstash-*",
"settings": {
"index.refresh_interval": "5s"
},
"mappings": {
"_default_": {
"_all": {
"enabled": false
},
@shaharmor
shaharmor / cache.sh
Last active August 29, 2015 14:26
Elasticsearch scripts
curl -XPUT localhost:9200/logstash-YYYY.MM.DD/_settings -d '{ "index.cache.query.enable": true }'