Skip to content

Instantly share code, notes, and snippets.

#!/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
<Stream status
Format status
</Stream>
<Redirect s>
URL status
</Redirect>
# <Redirect index.html>
# URL hubby.mjpg
@mehome
mehome / nginx.conf
Created February 13, 2019 09:40 — forked from tuan3w/nginx.conf
Experiment with nginx-http-flv-module
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
@mehome
mehome / rtmp.md
Created February 19, 2019 07:25 — forked from Akagi201/rtmp.md
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
@mehome
mehome / TranslateToChineseOnYouTube.user.js
Created June 27, 2019 06:15 — forked from qwertyuiop6/TranslateToChineseOnYouTube.user.js
Translate to Chinese automatically. youtube自动翻译中文简体
// ==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==
@mehome
mehome / server.cpp
Created March 14, 2020 09:57 — forked from ptitfred/server.cpp
C++ HTTP server
#include "server.hpp"
#include <iostream>
#include <fstream>
#include <sstream>
using std::cout;
using std::cerr;
using std::cin;
using std::endl;
using std::fstream;
@mehome
mehome / Android.mk
Created July 9, 2020 11:37 — forked from wendal/Android.mk
使用NDK编译live555所需要的Android.mk文件
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
# NDK 7d支持硬浮点的直接编译
#APP_ABI := armeabi-v7a-hard
LOCAL_MODULE := liblive555
LOCAL_ARM_MODE := arm