Skip to content

Instantly share code, notes, and snippets.

View yunong's full-sized avatar

Yunong Xiao yunong

View GitHub Profile
// Copyright 2012 Mark Cavage, Inc. All rights reserved.
var EventEmitter = require('events').EventEmitter;
var url = require('url');
var util = require('util');
var assert = require('assert-plus');
var deepEqual = require('deep-equal');
var LRU = require('lru-cache');
var Negotiator = require('negotiator');
// Copyright 2012 Mark Cavage, Inc. All rights reserved.
var EventEmitter = require('events').EventEmitter;
var url = require('url');
var util = require('util');
var assert = require('assert-plus');
var deepEqual = require('deep-equal');
var LRU = require('lru-cache');
var Negotiator = require('negotiator');
@yunong
yunong / convert.js
Last active August 29, 2015 14:07 — forked from rf/convert.js
var fs = require('fs');
var infile = process.argv[2];
if (!infile) return console.log("need infile");
var data = fs.readFileSync(infile, 'utf8').split('\n');
var outlines = [];
data.forEach(function(item) {
### Keybase proof
I hereby claim:
* I am yunong on github.
* I am yunong (https://keybase.io/yunong) on keybase.
* I have a public key whose fingerprint is 4F53 0077 A080 3662 ACD1 189F FCCF A7FF 506B 9E30
To claim this, I am signing this object:
[root@4de16f13 (postgres) ~/manatee]$ cat lib/backupServer.js | head -12
/*
* Copyright (c) 2013, Joyent, Inc. All rights reserved.
*
* _.---.._
* _ _.-' \ \ ''-.
* .' '-,_.-' / / / '''.
* ( _ o :
* '._ .-' '-._ \ \- ---]
* '-.___.-') )..-'
root@headnode (coal) ~]# sdc-amon /pub/580ca9b3-176e-44eb-9724-fff2e8b0cf92/alarms
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 7303
Date: Wed, 22 May 2013 21:41:29 GMT
Server: Amon Master/1.0.0
Request-Id: 5cdc8440-c328-11e2-b63f-4f6256f36ee4
Response-Time: 3
Connection: keep-alive
[root@452e969d-068a-4fa7-a611-3ce1f6f18b60 /zones/452e969d-068a-4fa7-a611-3ce1f6f18b60/data]# cat /tmp/foo | zfs recv -F zones/452e969d-068a-4fa7-a611-3ce1f6f18b60/data
cannot unmount '/zones/452e969d-068a-4fa7-a611-3ce1f6f18b60/data': Device busy
entity not found
entity not found
entity not found
entity not found
entity not found
entity not found
entity not found
NFS plugin problem with SMF repository: unknown 1003