Skip to content

Instantly share code, notes, and snippets.

View DiegoRBaquero's full-sized avatar

Diego Rodríguez Baquero DiegoRBaquero

View GitHub Profile
@DiegoRBaquero
DiegoRBaquero / demo.html
Created May 8, 2016 11:36
Stream Alpine Timedrift WebTorrent with Webseed
<html>
<body>
<script src="https://cdn.jsdelivr.net/webtorrent/latest/webtorrent.min.js"></script>
<script>
var client = new WebTorrent()
client.add('https://webseed.btorrent.xyz/timedrift-alpine-4k-timelapse.mp4.torrent', function (torrent) {
// Got torrent metadata!
console.log('Client is downloading:', torrent.infoHash)
@DiegoRBaquero
DiegoRBaquero / createInstall.sh
Created May 8, 2016 11:30
Install create-torrent NPM module
npm i -g create-torrent
var spawn = require('electron-spawn');
var electron = spawn('seeder.js', {
detached: false
});
electron.stderr.on('data', function (data) {
console.error(data.toString())
});