Skip to content

Instantly share code, notes, and snippets.

Jonathan Fretin jfretin

View GitHub Profile
@jfretin
jfretin / gist:7672871
Created Nov 27, 2013
Delete all messages in exim queue
View gist:7672871
exim -bp | exiqgrep -i | xargs exim -Mrm
@jfretin
jfretin / yt-playlist-dl.js
Last active Dec 27, 2015
Dowload Youtube playlist videos, with node.js.
View yt-playlist-dl.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 ) {
@jfretin
jfretin / README
Created Oct 4, 2011 — forked from rfreebern/README
Use bitbucket as a private offsite code backup (edited)
View README
Now that bitbucket supports git, it's easy to use their service as a free, private, offsite code backup. Just create an empty repo for your project on bitbucket, add it as a remote to your development repo:
username@host:~/project$ git remote add bitbucket git@bitbucket.org:username/project.git
Edit: I had to change in the config file the url value to set the complete https url: https://username@bitbucket.org/username/project.git
and use this post-commit hook to silently and automatically push your changes up after each commit.
You can’t perform that action at this time.