Skip to content

Instantly share code, notes, and snippets.

@dizda
dizda / gist:a6b7bb4a2ff56fc40663cdc9e90553fa
Created July 6, 2020 07:26 — forked from carlos8f/gist:3473107
siege Mac OS X caveats
Mac OS X has only 16K ports available that won't be released until socket
TIME_WAIT is passed. The default timeout for TIME_WAIT is 15 seconds.
Consider reducing in case of available port bottleneck.
You can check whether this is a problem with netstat:
# sysctl net.inet.tcp.msl
net.inet.tcp.msl: 15000
# sudo sysctl -w net.inet.tcp.msl=100
@dizda
dizda / Growl.js
Last active December 14, 2015 05:49 — forked from Seasons7/app.js
Growl-like notifications in Titanium (tested under iOS)
Growl = (function() {
// constructor
function Growl(message){
this.message = message;
}
Growl.prototype.show = function()
{
this.createWindow();