- sender, receiver, agent 用3个 goroutine 加 workcontainer 实现. 如果用一个 goroutine 能搞定更好.
This file contains 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
LOCAL_PATH := $(call my-dir) | |
include $(CLEAR_VARS) | |
# NDK 7d支持硬浮点的直接编译 | |
#APP_ABI := armeabi-v7a-hard | |
LOCAL_MODULE := liblive555 | |
LOCAL_ARM_MODE := arm |
This file contains 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 "server.hpp" | |
#include <iostream> | |
#include <fstream> | |
#include <sstream> | |
using std::cout; | |
using std::cerr; | |
using std::cin; | |
using std::endl; | |
using std::fstream; |
This file contains 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
// ==UserScript== | |
// @name 自动翻译->字幕中文简体 | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description translate to Chinese automatically. | |
// @author qwertyuiop6 | |
// @match https://www.youtube.com/watch* | |
// @require https://cdn.bootcss.com/jquery/3.4.0/jquery.min.js | |
// @grant none | |
// ==/UserScript== |
This file contains 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
git config --global https.proxy http://127.0.0.1:1080 | |
git config --global https.proxy https://127.0.0.1:1080 | |
git config --global --unset http.proxy | |
git config --global --unset https.proxy | |
npm config delete proxy |
This file contains 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
worker_processes auto; #should be 1 for Windows, for it doesn't support Unix domain socket | |
worker_rlimit_nofile 100000; | |
error_log logs/error.log error; | |
#if the module is compiled as a dynamic module and features relevant | |
#to RTMP are needed, the command below MUST be specified and MUST be | |
#located before events directive, otherwise the module won't be loaded |
This file contains 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
<Stream status | |
Format status | |
</Stream> | |
<Redirect s> | |
URL status | |
</Redirect> | |
# <Redirect index.html> | |
# URL hubby.mjpg |
This file contains 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
#!/bin/sh | |
## you'll have to do a couple extra steps to get this running | |
## there are probably other ways to handle svncanboot, but this is from the linux forum | |
set -e | |
if | |
touch /etc/_testr_file | |
then |