Skip to content

Instantly share code, notes, and snippets.

View jfretin's full-sized avatar

Jonathan Fretin jfretin

View GitHub Profile
@jfretin
jfretin / gist:7672871
Created November 27, 2013 09:16
Delete all messages in exim queue
exim -bp | exiqgrep -i | xargs exim -Mrm
@jfretin
jfretin / yt-playlist-dl.js
Last active December 27, 2015 22:09
Dowload Youtube playlist videos, with node.js.
var youtube = require('youtube-feeds');
var fs = require('fs');
var ytdl = require('ytdl');
var slug = require('slug-component');
youtube.httpProtocol = 'http';
var videos = null;
youtube.feeds.playlist("PL8Mfzkj8FPJtepq2syn8nFKtOWdyPigE_",{} ,
function( err, data ) {
if( err instanceof Error ) {