Skip to content

Instantly share code, notes, and snippets.

@dhinakg
dhinakg / aria2.md
Last active July 5, 2025 16:57
aria2 cheat sheet

aria2 cheat sheet

  • -j: # of concurrent downloads
  • -s: connections to use per file
  • -x: maximum connections to one server for a file
  • --file-allocation=none: don't allocate disk space before downloading
  • --max-tries=N: retry N times (0 for infinite)
  • --retry-wait=N: wait for N secs before trying a failed connection again
  • --auto-file-renaming=false: don't redownload if already downloaded
  • --max-file-not-found=N: ignore 404s N times (0 for infinite)
@sid24rane
sid24rane / udp.js
Created July 25, 2016 08:39
Simple UDP Client and Server in Node.js ==> ( Echo Server )
var udp = require('dgram');
// --------------------creating a udp server --------------------
// creating a udp server
var server = udp.createSocket('udp4');
// emits when any error occurs
server.on('error',function(error){
console.log('Error: ' + error);