Skip to content

Instantly share code, notes, and snippets.

@avinashtare
avinashtare / nodep2p2.js
Created July 11, 2025 13:22
True Peer To Peer Connection Chat APP Using Node.JS.
const dgram = require('dgram');
const readline = require('readline');
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
function ask(question) {
return new Promise(resolve => rl.question(question, resolve));
@avinashtare
avinashtare / gist:791125a9c4680d64f3be90f33ff3249d
Last active September 25, 2024 02:53
Get All YouTube Video Data Free API

Get All YouTube Video Data Free API

To retrieve the latest videos and their details from a specific YouTube channel, use the following API endpoint:

API Endpoint

https://www.youtube.com/feeds/videos.xml?channel_id=YOUR_CHANNEL_ID

How to Find Your Channel ID

  1. Visit your YouTube account settings: YouTube Account Settings.
  2. Look for your Channel ID in the "Channel Settings" section.
@avinashtare
avinashtare / gist:0acfc267a948fc16a6d30c465fd0f932
Created August 28, 2024 09:09
Get Instagram Post Info By Id
let InstagramID = <add here iq id>
https://www.instagram.com/p/{InstagramID}/?__a=1&__d=dis