Skip to content

Instantly share code, notes, and snippets.

View talebisinan's full-sized avatar

Sinan Talebi talebisinan

  • Workgenius
  • Hamburg, Germany
View GitHub Profile
@talebisinan
talebisinan / kill_zombies.go
Last active August 3, 2023 14:15
Kill zombie processes
package main
import (
"fmt"
"io/ioutil"
"os"
"strconv"
"strings"
)
@talebisinan
talebisinan / client
Created August 5, 2020 07:04
sample client for webrtc
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<!-- This adapter.js file de-prefixes the webkit* and moz* prefixed RTC
methods. When RTC becomes a more solid standard, this adapter should no
longer be necessary. -->
<script src="https://webrtc.googlecode.com/svn/trunk/samples/js/base/adapter.js"></script>
<style>
html,
@talebisinan
talebisinan / server
Created August 5, 2020 06:58
webrtc public server
/**************/
/*** CONFIG ***/
/**************/
var PORT = 8080;
/*************/
/*** SETUP ***/
/*************/
var express = require("express");
var https = require("https");