This file contains 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
var spawn = require('electron-spawn'); | |
var electron = spawn('seeder.js', { | |
detached: false | |
}); | |
electron.stderr.on('data', function (data) { | |
console.error(data.toString()) | |
}); |
This file contains 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
server { | |
listen 443 ssl spdy; | |
listen [::]:443 ssl spdy; | |
server_name tracker.btorrent.xyz; | |
ssl_certificate /etc/nginx/ssl/tracker.btorrent.xyz.crt; | |
ssl_certificate_key /etc/nginx/ssl/tracker.btorrent.xyz.key; | |
location / { | |
proxy_pass http://127.0.0.1:8000; |
This file contains 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
npm i -g create-torrent |
This file contains 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
<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) |
This file contains 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
<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/juanpabloaj/other-page.torrent', function (torrent) { | |
// Got torrent metadata! | |
console.log('Client is downloading:', torrent.infoHash) | |
torrent.files[0].getBlobURL(function(err, url) { | |
if (err) return console.log(err) |
This file contains 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
require('ws') // before | |
require('uws') // after |
This file contains 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
System Info | |
----------- | |
Processor : Intel(R) Xeon(R) CPU E5-1620 0 @ 3.60GHz | |
CPU Cores : 4 | |
Frequency : 3600.013 MHz | |
Memory : 4096 MB | |
Swap : MB | |
Uptime : 1 day, 12:12, | |
OS : Ubuntu 16.04.1 LTS |
This file contains 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
apt-get update && apt-get upgrade | |
# Latest LTS NodeJS Repo | |
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - | |
# Latest nginx repo | |
echo "deb http://nginx.org/packages/ubuntu/ xenial nginx" >> /etc/apt/sources.list.d/nginx.list | |
echo "deb-src http://nginx.org/packages/ubuntu/ xenial nginx" >> /etc/apt/sources.list.d/nginx.list | |
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ABF5BD827BD9BF62 |
This file contains 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
let calificacion = 4 // Cambiar por el valor deseado {1,2,3,4} | |
for(let i = 1; i <=33; i++) { if(i === 17) continue; $(`input[value="${i}-${calificacion}"]`).click() } |
This file contains 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
module.exports = debug => | |
fn => | |
(req, res, next) => | |
fn(req, res, next) | |
.catch(e => { | |
e.status = e.status || 400 | |
e.debug = debug | |
next(e) | |
}) |
OlderNewer