This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
magi@duality ~> sudo pmset -b standbydelay 43200 | |
magi@duality ~> sudo pmset -c standby 0 | |
magi@duality ~> pmset -g | |
Active Profiles: | |
Battery Power -1* | |
AC Power -1 | |
Currently in use: | |
standbydelay 43200 | |
standby 1 | |
halfdim 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var Fiber = require('fibers'); | |
var Future = require('fibers/future'); | |
function test() { | |
console.trace('trace from root non-fiber'); | |
// Create fiber explicitly, the low-level way. | |
var f1 = Fiber(function fiber1() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// preemption.js | |
// | |
// Demo of undesirable preemption in NodeJS 0.10 (at least) due to MakeCallback; | |
// outer JS code that's running along happily but transitions to C++ code and then | |
// some inner JS code and back can find that state has changed out from under it, | |
// in ways it cannot predict (or conversely, that the inner JS code can observe | |
// shared data structures in an inconsistent state because the outer code was in | |
// the process of making changes to them that were intended to be atomic, and are | |
// not atomic due to this preemption). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
See for example https://github.com/karma-runner/karma/blob/master/lib/middleware/karma.js#L40, which assumes the result of `url.parse(foo, true)` always has a non-null `.query` property. | |
In node 0.10.26: | |
magi@ubuntu ~/s/d/experiments> node-0.10.26 | |
> url.parse('/foo', true) | |
{ protocol: null, | |
slashes: null, | |
auth: null, | |
host: null, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
discourse@chunkalicious:/var/www/discourse$ RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production bundle exec rake db:migrate | |
WARNING: -------------------------------------------------------------------------- | |
You are running an old version of bundler, please update by running: gem install bundler | |
WARNING: -------------------------------------------------------------------------- | |
You are running an old version of bundler, please update by running: gem install bundler | |
rake aborted! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2014/06/21 (10:23pm on a saturday night, maybe bad case for monkeybrains): | |
astound: | |
wormhole:~# ping -I eth0.101 204.195.74.1 | |
PING 204.195.74.1 (204.195.74.1) from 204.195.74.x eth0.101: 56(84) bytes of data. | |
64 bytes from 204.195.74.1: icmp_req=1 ttl=64 time=9.76 ms | |
64 bytes from 204.195.74.1: icmp_req=2 ttl=64 time=7.21 ms | |
64 bytes from 204.195.74.1: icmp_req=3 ttl=64 time=10.3 ms | |
64 bytes from 204.195.74.1: icmp_req=4 ttl=64 time=9.39 ms |
NewerOlder