Docker: TaskNuke remove those annoying orphaned tasks from a network

The setting: $ docker network rm myNetwork Error response from daemon: rpc error: code = FailedPrecondition desc = network kny0nsuae9ymnpzjzufrefn9a is in use by task iczzsz7yrrafhn08y1slnhr8l The solution: $ docker pull dperny/tasknuke! $ docker run -v /var/run/docker/swarm/control.sock:/var/run/swarmd.sock dperny/tasknuke iczzsz7yrrafhn08y1slnhr8l iczzsz7yrrafhn08y1slnhr8l The glorious source: success.docker.com РHow to force remove an orphaned task from a network

Generate new ssh key

Generating a new keypair with good key length: ssh-keygen -b 4096 -t rsa -C “<some comment here, like platform, user or computer name>” -f ~/.ssh/id_rsa  

PHP: Disable var_dump() from truncating data

Dear fellow PHP coders, does that look familiar? array(3) { ‘something’ => string(6) “blabla” ‘something else’ => string(8) “more bla” ‘something threlse’ => array(2) { ‘test1’ => … ‘test2’ => … } } Exactly…var_dump() truncating data… Naveen S Nayak to the rescue!!! Add this to your php.ini: xdebug.var_display_max_data = -1 xdebug.var_display_max_children = -1 xdebug.var_display_max_depth =… Continue Reading PHP: Disable var_dump() from truncating data

PHP – What does a function with boolean return values return, if it can’t return a boolean?

Let’s regard this function: /** * @return bool */ private function testThis() { if(false) { return true; } } This will obviously not ever return its return statement. What does this function actually return? It turns out: This function returns null