This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#logo { margin: 1em; } | |
#events { | |
font-family: sans-serif; | |
box-shadow: 4px 4px 10px 5px grey; | |
display: flex; | |
flex-direction: column; | |
} | |
#events > .event { | |
margin: 1em; | |
margin-top: 0.5em; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/ops/server.c b/lib/ops/server.c | |
index f9a3e2a..a67d6fb 100644 | |
--- a/lib/ops/server.c | |
+++ b/lib/ops/server.c | |
@@ -208,19 +208,21 @@ static int add_route(kr_front_router *router, const char *str) { | |
} | |
static ssize_t say_something(kr_web_path *path, const char *something) { | |
+ kr_web_client *client; | |
kr_http_header hdr; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/daemon/krad_ops.c b/daemon/krad_ops.c | |
index 2d1068c..74815fd 100644 | |
--- a/daemon/krad_ops.c | |
+++ b/daemon/krad_ops.c | |
@@ -37,7 +37,7 @@ typedef struct kr_media_ops_server kr_media_ops_server; | |
#define KR_COMMAND_SIZE 512 | |
#define KR_OPS_NTASKS 64 | |
-#define KR_TIMEOUT_SEC 1 | |
+#define KR_TIMEOUT_SEC 100 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <sys/uio.h> | |
static FILE *launch_pgrep() { | |
char cmd[512]; | |
snprintf(cmd, 512, "pgrep kr"); | |
cmd[511] = '\0'; | |
return launch_command(cmd); | |
} | |
static FILE *launch_stressor() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*stress --cpu 4 --vm 4 */ | |
static FILE *launch_pgrep() { | |
char cmd[512]; | |
snprintf(cmd, 512, "pgrep kr"); | |
cmd[511] = '\0'; | |
return launch_command(cmd); | |
} | |
static FILE *launch_stressor() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <inttypes.h> | |
#include <unistd.h> | |
#include <signal.h> | |
#include <fcntl.h> | |
#include <errno.h> | |
#include <sys/signalfd.h> | |
#include <sys/epoll.h> | |
#include <sys/timerfd.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <inttypes.h> | |
#include <unistd.h> | |
#include <signal.h> | |
#include <fcntl.h> | |
#include <errno.h> | |
#include <sys/signalfd.h> | |
#include <sys/epoll.h> | |
#include <sys/timerfd.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
signal_type = [ CALL, ANSWER, HANGUP ] | |
user { | |
user_name; | |
} | |
connection { | |
string user[2]; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cairo.h> | |
#include "kr_client.h" | |
#include <ccv.h> | |
typedef struct kr_snapshot { | |
uint32_t width; | |
uint32_t height; | |
uint8_t *rgba; | |
kr_videoport_t *videoport_in; | |
kr_client_t *client_in; | |
int got_frame; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/perl | |
while (<>) { | |
while (/([-.\d]+)(\s*)em/) { | |
$rel = $1 * 16; | |
$val = $1; | |
$s = $2; | |
s/$val\s*em/${rel}%/; | |
} | |
print; |
NewerOlder