Skip to content

Instantly share code, notes, and snippets.

View j4gd33p's full-sized avatar
🎯
Focusing

J4GD33P 51NGH j4gd33p

🎯
Focusing
View GitHub Profile
@j4gd33p
j4gd33p / Install mediasoup on windows
Last active January 23, 2023 06:12
Step by step guide to install Medisoup server on windows machine (> 10)
Installation required:
Node version >= v12.0.0
Python version >= 3.6
GNU make (https://sourceforge.net/projects/mingw/)
MOST IMPORTANT THING: THE PATH WHERE PROJECT IS STORED(where you'll do npm i mediasoup) SHOULD NOT HAVE WHITESPACES IN IT
EXAMPLE: INCORRECT: C:\Some Project\mediasoupDemo
CORRECT: C:\SomeProject\mediasoupDemo
- Install mingw and add all Basic & msys packages and append the path of folder containing make to the Windows Path environment variable (e.g. C:\MinGW\msys\1.0\bin)
@gurupras
gurupras / distributed-mediasoup.js
Created May 27, 2020 13:41
mediasoup horizontal scaling
onServerStartup () {
const { serverId, ip } = getServerInfo() // serverId does not change across restarts
this.serverId = serverId
// We don't have any routers or producers (yet). Clear any value that exists in the DB related to our serverId
clearSharedDB(serverId, 'routers')
clearSharedDB(serverId, 'producers')
// Update the DB with our serverId and ip so that others will know how to reach us
registerServerInDB(serverId, ip)
@robinpokorny
robinpokorny / .bash_profile
Created March 4, 2020 13:10
In case of fire
function fire() {
local BRANCH=emergency-`date +%s`-`git config user.email`
git checkout -b $BRANCH
git add -A
git commit -m 'EMERGENCY!'
git push -f origin $BRANCH
}
# Inspired by https://www.reddit.com/r/ProgrammerHumor/comments/3nc531/in_case_of_fire/cvn1k27/

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@yetithefoot
yetithefoot / stuns
Last active November 5, 2025 04:35 — forked from zziuni/stuns
STUN+TURN servers list
{url:'stun:stun01.sipphone.com'},
{url:'stun:stun.ekiga.net'},
{url:'stun:stun.fwdnet.net'},
{url:'stun:stun.ideasip.com'},
{url:'stun:stun.iptel.org'},
{url:'stun:stun.rixtelecom.se'},
{url:'stun:stun.schlund.de'},
{url:'stun:stun.l.google.com:19302'},
{url:'stun:stun1.l.google.com:19302'},
{url:'stun:stun2.l.google.com:19302'},