This file contains 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
var should = require('should'); | |
function _something(cb) { | |
cb(); | |
} | |
describe('foo', function () { | |
describe('bar', function () { | |
it('should do something', function (done) { | |
var x = {}; |
This file contains 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
#! /bin/bash | |
mkdir -p workspace | |
cd workspace | |
for PROJ in 'app1' 'app2' 'app3' | |
do | |
mkdir $PROJ | |
cd $PROJ | |
# for SVN repo with structure app/trunk, app/branches, app/tags |
This file contains 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
var b = require('sandboxed-module').require('./b', {}); | |
b.foo(); |
This file contains 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
======================================================================== | |
Step 1: Delete an existing doc in _replicator database. | |
request: | |
{ method: 'POST', | |
headers: | |
{ 'content-type': 'application/json', | |
accept: 'application/json' }, | |
uri: 'http://user:pass@localhost:5984/_replicator/_bulk_docs', | |
body: '{"docs":[{"_id":"foo1","source":"http://user:pass@localhost:5984/mydb","target":"http://user:pass@localhost:5984/mydb2","continuous":true,"_rev":"59-abb0482eb5a5730d6a290a4c38206e96","_deleted":true}]}' } |
This file contains 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
[debug] [<0.85.0>] New task status for <0.308.0>: [{checkpointed_source_seq, | |
98413}, | |
{continuous,true}, | |
{doc_id,<<"my_content">>}, | |
{doc_write_failures,175}, | |
{docs_read,46479}, | |
{docs_written,46304}, | |
{missing_revisions_found, | |
46479}, | |
{progress,87}, |
This file contains 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
> VAGRANT_LOG=debug vagrant up | |
INFO global: Vagrant version: 1.0.6 | |
INFO vagrant: `vagrant` invoked: ["up"] | |
DEBUG vagrant: Creating Vagrant environment | |
INFO environment: Environment initialized (#<Vagrant::Environment:0x7fad33034200>) | |
INFO environment: - cwd: /home/user1 | |
INFO environment: Home path: /home/user1/.vagrant.d | |
INFO environment: Copying private key to home directory | |
/usr/lib/ruby/1.8/fileutils.rb:1268:in `initialize': Permission denied - /usr/lib/ruby/gems/1.8/gems/vagrant-1.0.6/keys/vagrant (Errno::EACCES) | |
from /usr/lib/ruby/1.8/fileutils.rb:1268:in `open' |
This file contains 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
kingkong:/tmp/gypfilecheck$ time couchtato iterate -u http://host/registry -p 5000 | |
retrieved 5000 docs - 0 | |
>> LDAP 1.1.4 has gypfile: true | |
>> airtunes 0.1.3 has gypfile: true | |
>> aligned-buffer 0.1.2 has gypfile: true | |
>> allsync 0.0.3b has gypfile: true | |
>> ancillary 2.0.0 has gypfile: true | |
>> aplus 0.1.0 has gypfile: true | |
>> base128 0.1.0 has gypfile: true | |
>> bcrypt 0.7.5 has gypfile: true |
This file contains 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
GET http://isaacs.iriscouch.com/registry/apis?atts_since=%5B%224-037b8021362c3319a7597c48c971a6e5%22%2C%224-05089c4258ba04259c89b3f2a8c97612%22%2C%224-0552d46c24ecdb65dd2d6c240797a56d%22%2C%224-0704025b6930979628cfc6c3e7cf7f7e%22%2C%224-08b2044a733715af4fa07417056ec78e%22%2C%224-08bd7afaad62b4baba0da5de8ff910e7%22%2C%224-0a526c7b6335f392d2cda8b8b3e8e13b%22%2C%224-0a6715d362d8a867e09f17165365dfbf%22%2C%224-0ceeacc9ca07e3c345811ec11a0ae472%22%2C%224-10ca136fcc95facdc28177cce97fb3ce%22%2C%224-124e9df218dfdb574de8b6441280090d%22%2C%224-160368532f9278a6929860c2471765af%22%2C%224-163142f0ffa5c7dd6bf5a3125fd45ebb%22%2C%224-18bdb5783ae063d6887bea6affd7514f%22%2C%224-18de5df4942206690c8163871f4f1432%22%2C%224-18f32ae20fcfd91ae634e13690cca4dd%22%2C%224-1a471de9368c2528b6ea3447e804ae83%22%2C%224-1ac85e92696815871c0a58390fc54b95%22%2C%224-1df874a5a797befbda068825aa3f1611%22%2C%224-207cddd8a6183df0f4e26dfb17aa8eb4%22%2C%224-2358faef216a5afe65d06e2702e9c8a0%22%2C%224-276856c6619a4fbaf298b8a3dd4cb56f%22%2C%224-2a39aa2d16a74 |
This file contains 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
>>> cat blah.js | |
var cp = require('child_process'); | |
var c = cp.exec('./blah.sh &', function (err) { | |
if (err) { | |
console.error('err: ' + err.message); | |
} else { | |
console.log('done'); | |
} | |
}); |
This file contains 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
# This gist is compatible with Ansible 1.x . | |
# For Ansible 2.x , please check out: | |
# - https://gist.github.com/dmsimard/cd706de198c85a8255f6 | |
# - https://github.com/n0ts/ansible-human_log | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# |
OlderNewer