I hereby claim:
- I am roccomuso on github.
- I am roccomuso (https://keybase.io/roccomuso) on keybase.
- I have a public key ASDYVzLuaGmRCGjHViw8SM3gNsZmntfh7GDM8VYJ71lVawo
To claim this, I am signing this object:
const ffmpeg = require('fluent-ffmpeg') | |
const parseUrl = require('url').parse | |
// Polyfill, modifying the global Object | |
require('es6-object-assign').polyfill() | |
global.Promise = require('es6-promise').Promise | |
const aws4 = require('aws4') | |
const axios = require('axios') | |
const CancelToken = axios.CancelToken | |
const fs = require('fs') | |
const PipeViewer = require('pv') |
I hereby claim:
To claim this, I am signing this object:
const {isBuffer} = Buffer | |
const {Readable} = require('readable-stream') | |
class StreamLoop extends Readable { | |
constructor(data, options = {}) { | |
if (!isBuffer(data)) throw new Error('data must be a Buffer') | |
super(options) // Readable opts | |
this.data = data | |
this.length = data.byteLength | |
this.offset = 0 |
#!/bin/bash | |
# store the current dir | |
CUR_DIR=$(pwd) | |
# Let the person running the script know what's going on. | |
echo -e "\n[Pulling in latest changes for all repositories...]" | |
# Find all git repositories and update it to the master latest revision | |
for i in $(find ./* -maxdepth 1 -name ".git" | cut -c 3-); do |
var Client = require('ssh2').Client; | |
var readline = require('readline') | |
var conn = new Client(); | |
conn.on('ready', function() { | |
console.log('Client :: ready'); | |
conn.shell(function(err, stream) { | |
if (err) throw err; | |
// create readline interface | |
var rl = readline.createInterface(process.stdin, process.stdout) |
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>ESNextbin Sketch</title> | |
<!-- put additional styles and scripts here --> | |
<style> | |
body{ | |
background-color: #7f7a7a; | |
}; |
var net = require('net') | |
var readline = require('readline') | |
/** | |
* @class Client | |
* @param host {String} the host | |
* @param post {Integer} the port | |
*/ | |
function Client (host, port) { | |
this.host = host |
var path = require('path'); | |
var config = require('config'); | |
var chalk = require('chalk'); | |
/* | |
* | |
* DEBUG wrapper to enhance the debug module features. Include this wrapper into your projects to enable debug from a config file and make the files use the global namespace and their name. | |
* Use it along with the 'config' module. The provides at least this configuration: | |
* {namespace: "projectName", debug: true} | |
* |
#!/usr/bin/env node | |
/* | |
Don't forget to: | |
$ chmod 755 log-rotation.js | |
$ mkdir logs | |
Then you can save any generic stdout on logs piping it with log-roation.js: | |
$ node whatever.js | ./log-rotation.js | |
*/ |
<html> | |
<head> | |
<title>Modules in JS</title> | |
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> | |
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mustache.js/2.1.3/mustache.min.js"></script> | |