using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies
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
const fs = require('fs'); | |
let logFile = process.argv[2] || './data/nextcloud.log'; | |
fs.readFile(logFile, 'utf8', function (err, data) { | |
if (err) throw err; | |
data.split('\n').forEach((line) => { | |
if (!line) return; |
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
-- This is basically copied from andyet [1], except that it adds the required | |
-- namespace and fixes a small tab/space issue. Compared to the official module [2] | |
-- this module allows to pass multiple TURN/STUN addresses. | |
-- [1] https://github.com/andyet/otalk-server/blob/50d5d385f8d81fd133c4f880ee8873b1273ee867/mod_turncredentials/mod_turncredentials.lua | |
-- [2] https://hg.prosody.im/prosody-modules/file/tip/mod_turncredentials/mod_turncredentials.lua | |
-- XEP-0215 implementation for time-limited turn credentials | |
-- Copyright (C) 2012-2013 Philipp Hancke | |
-- This file is MIT/X11 licensed. |
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
<?php | |
// YOUR_PACKAGE/Classes/YOUR_NAMESPACE/Controller/FacebookController.php | |
namespace YOUR_NAMESPACE\Controller; | |
use TYPO3\Flow\Annotations as Flow; | |
class FacebookController extends \TYPO3\Flow\Mvc\Controller\ActionController { | |
/** |
I hereby claim:
- I am sualko on github.
- I am sualko (https://keybase.io/sualko) on keybase.
- I have a public key whose fingerprint is A3C4 DF1D 626D F8E1 E982 E68E 20C7 433F 9AD1 4FD7
To claim this, I am signing this object: