Skip to content

Instantly share code, notes, and snippets.

@kapejod
kapejod / changed.diff
Created December 9, 2016 06:50
How i have built WebRTC for tvOs (some time ago....might not apply anymore)
diff --git a/webrtc/base/posix.cc b/webrtc/base/posix.cc
index 0eb24ee..7e48273 100644
--- a/webrtc/base/posix.cc
+++ b/webrtc/base/posix.cc
@@ -44,7 +44,7 @@ enum {
bool RunAsDaemon(const char *file, const char *const argv[]) {
// Fork intermediate child to daemonize.
- pid_t pid = fork();
+ pid_t pid = -1;
@kapejod
kapejod / gist:85bd38cd74971741ee15
Created April 23, 2015 17:53
Fix handleOpenURL() for Cordova on iOS (cold + warm start)
--- CDVViewController.m.orig 2015-04-23 19:49:35.000000000 +0200
+++ CDVViewController.m 2015-04-23 19:47:51.000000000 +0200
@@ -44,6 +44,7 @@
@property (readwrite, assign) BOOL initialized;
@property (atomic, strong) NSURL* openURL;
+@property (atomic) BOOL pageLoaded;
@end
@kapejod
kapejod / stungun.html
Created May 29, 2014 09:14
A proof of concept STUN gun for Google Chrome which creates a continous 2 mbit/s stream to anywhere you want.
<html>
<head>
<title>The STUN gun</title>
</head>
<body>
<form action="">
Destination IP:<br>
<input type="text" id="destinationIp" value="127.0.0.1"><br>
Destination port:<br>
<input type="text" id="destinationPort" value="8888"><br><br>