I hereby claim:
- I am rush on github.
 - I am rushpl (https://keybase.io/rushpl) on keybase.
 - I have a public key ASBSqVg6ydnTE-NIgaCHSJNYvcEJWypd4WLHN-EunskoTQo
 
To claim this, I am signing this object:
| { | |
| "error": "Invalid version" | |
| } | 
| import { decorate } from 'core-decorators'; | |
| import * as memoize from 'memoizee'; | |
| import { duration, unitOfTime } from 'moment'; | |
| import { memoizeObservable } from './rxjs'; | |
| type HumanDuration = [number, unitOfTime.DurationConstructor]; | |
| export interface MemoizeOptions extends memoize.Options { | |
| observable?: boolean; | |
| ttl?: HumanDuration; | 
I hereby claim:
To claim this, I am signing this object:
| /* | |
| Issue joyent/node#7733 | |
| run this on a remote server and do on your local machine (I have 40ms lag to my server) | |
| you need this image file: | |
| http://x.rushbase.net/da39a3ee5e6b4b0d3255bfef95601890afd80709/codecharm-white.png | |
| wget --no-check-certificate https://yourserver.net:63000/codecharm-white.png | |
| this should yield error on node 0.11.11 and upper and works well o node 0.11.10: | 
| #include <thread> | |
| #include <fstream> | |
| #include <vector> | |
| #include <chrono> | |
| #include <sys/stat.h> | |
| #include <iostream> | |
| #include <atomic> | |
| long file_size(const char* file) | |
| { | 
| using System.Diagnostics; | |
| using System; | |
| class Program | |
| { | |
| public static bool IsRunningOnMono() | |
| { | |
| return Type.GetType ("Mono.Runtime") != null; | |
| } | 
| #!/usr/bin/env node | |
| var tls = require('tls'); | |
| var crypto = require('crypto'); | |
| function b64decode(encoded) { | |
| return new Buffer(encoded || '', 'base64').toString('utf8'); | |
| }; | |
| var ciphers = "EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA384:EECDH+ECDSA+SHA256:EECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EECDH+aRSA+RC4:EECDH:EDH+aRSA:RC4:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS"; | 
| function sortObjectKeys(unsortedObject) { | |
| if(typeof unsortedObject !== 'object') | |
| return unsortedObject; | |
| var sortedObject = {}; | |
| Object.keys(unsortedObject).sort().forEach(function(k) { | |
| sortedObject[k] = sortObjectKeys(unsortedObject[k]); | |
| }); | |
| return sortedObject; | |
| } | 
| /* | |
| After running this script, please run: | |
| openssl s_client -reconnect -state -prexit -connect localhost:41443 2> /dev/null|grep -P "(New|Reused)" | |
| Needs at least: | |
| > openssl version | |
| OpenSSL 1.0.1e 11 Feb 2013 | |
| Expected behaviour: OpenSSL should report all new connections since resumeSession is | |
| returning null session data. Both newSession and resumeSession should | |
| work, although in this setup only newSession should be called. | 
| #!/usr/bin/env node | |
| var spdy = require('spdy'), | |
| crypto = require('crypto'), | |
| fs = require('fs'); | |
| b64decode = function(encoded) { | |
| return new Buffer(encoded || '', 'base64').toString('utf8'); | |
| }; |