Skip to content

Instantly share code, notes, and snippets.

View Unitech's full-sized avatar

Alexandre Strzelewicz Unitech

View GitHub Profile
var http = require('http');
var net = require('net');
var debugging = 0;
var regex_hostport = /^([^:]+)(:([0-9]+))?$/;
function getHostPortFromString( hostString, defaultPort ) {
var host = hostString;
var port = defaultPort;
@Unitech
Unitech / dojo-toolkit.js
Last active August 29, 2015 14:23
Window Style
// http://dojotoolkit.org/documentation/#widgets
define(["../Theme", "dojox/gfx/gradutils", "./common"], function(Theme, gradutils, themes){
// created by Tom Trenka
var g = Theme.generateGradient,
defaultFill = {type: "linear", space: "shape", x1: 0, y1: 0, x2: 0, y2: 100};
themes.Claro = new Theme({
chart: {
- describe
- desc
- show
Add that he has to source ~/.bashrc or ~/.zshrc upon installation
{ sample: { _elements: [Object], _size: 10, _sum: 1010, _count: 10 },
cmp: [Function],
start: false,
reached: 0,
threshold: 20,
issue: [Error: more than 20],
func: [Function] } }
grunt.registerTask('es', 'ES', function(usr) {
var utils = require('util');
var done = this.async();
var query = {
index : '*',
type : 'exception',
body : {
size : 5000,
"query" : {
cluster.name: alphacentauri
node.master: true
node.max_local_storage_nodes: 1
index.mapper_dynamic: true
index.query.bool.max_clause_count: 4096
- sysctl: name=net.ipv4.ip_local_port_range value='1024 65000'
- sysctl: name=vm.swappiness value=0 state=present
- sysctl: name=fs.file-max value=128000
- lineinfile: dest=/etc/security/limits.conf line='* - nofile 128000' insertafter=EOF
# Increase number of incoming connections
- sysctl: name=net.core.somaxconn value='4096'
- sysctl: name=net.ipv4.tcp_tw_reuse value='1'
- sysctl: name=net.ipv4.tcp_fin_timeout value='15'
TypeError: Cannot read property 'split' of undefined
at Object.Semver.compare (all.min.js?t=1441807385906:4)
at isModuleUpdated (all.min.js?t=1441807385906:24)
at Object.fn (all.min.js?t=1441807385906:24)
at m.a.$get.m.$digest (all.min.js?t=1441807385906:6)
at m.a.$get.m.$apply (all.min.js?t=1441807385906:6)
at l (all.min.js?t=1441807385906:5)
at N (all.min.js?t=1441807385906:5
at XMLHttpRequest.x.onload (all.min.js?t=1441807385906:5)(anonymous function) @ all.min.js?t=1441807385906:6b.$get @ all.min.js?t=1441807385906:5a.$get.m.$digest @ all.min.js?t=1441807385906:6a.$get.m.$apply @ all.min.js?t=1441807385906:6l @ all.min.js?t=1441807385906:5N @ all.min.js?t=1441807385906:5x.onload @ all.min.js?t=1441807385906:5
@Unitech
Unitech / aayasd
Created September 20, 2015 17:09
val equal threshol throw error
TypeError: this.cmp is not a function
at Alert.tick (/root/.pm2/node_modules/pm2-server-monit/node_modules/pmx/lib/utils/alert.js:112:15)
at /root/.pm2/node_modules/pm2-server-monit/node_modules/pmx/lib/Probe.js:76:30
at Array.forEach (native)
at checkIssues (/root/.pm2/node_modules/pm2-server-monit/node_modules/pmx/lib/Probe.js:74:21)
at null._repeat (/root/.pm2/node_modules/pm2-server-monit/node_modules/pmx/lib/Probe.js:124:7)
at wrapper [as _onTimeout] (timers.js:270:19)
at Timer.listOnTimeout (timers.js:89:15)
{
"at": 1443001198515,
"data": {
"stack": "Error\n at ChildProcess.<anonymous> (/home/virtual/meczyki/.pm2/node_modules/pm2-server-monit/lib/process.js:40:32)\n at ChildProcess.emit (events.js:110:17)\n at Process.ChildProcess._handle.onexit (child_process.js:1074:12)",
"message": ""
},
"process": {
"pm_id": 6,
"name": "pm2-server-monit",
"rev": null,