Skip to content

Instantly share code, notes, and snippets.

100003|音乐之声|China Music Radio|1|1|http://cdnmms.cnr.cn/cnr003|0|5314528|32|40|2001
100001|中国之声|Voice Of China|7|1|http://cdnmms.cnr.cn/cnr001|0|2962873|44|48|2001
100069|CRI怀旧金曲|CRI Oldies|1|1|http://live.cri.cn/oldies|0|2485249|48|128|2001
100415|香港叱咤|Hongkong Chiza 903|4|34|rtsp://202.153.106.13/cr2|0|2127111|22|16|2034
100664|美国CNN广播|U.S. CNN Radio|7|36|http://a466.l3760630465.c37606.n.lm.akamaistream.net/D/466/37606/v0001/reflector:30465|0|1958134|44|32|2072
100043|北京音乐广播|Beijing Music|1|2|rtsp://alive.rbc.cn/fm974|0|1945285|32|32|2002
100027|天津相声广播|Tianjin Crosstalk Radio|6|4|mms://218.69.250.8/live9|0|1721208|22|20|2004
100414|香港雷霆|Hongkong Leiting 881|5|34|mms://202.153.106.13/cr1|0|1553881|22|16|2034
100417|香港电台二台|Hongkong Radio 2|4|34|http://202.177.192.111/radio2|0|1465850|22|20|2034
100416|香港电台一台|Hongkong Radio 1|4|34|http://202.177.192.111/radio1|0|1190255|22|20|2034
see: https://github.com/woodongwong/tvfix
@hcm82
hcm82 / nginx.conf
Created March 2, 2022 11:45 — forked from mikelikespie/nginx.conf
using nginx as a websocket reverse proxy
location / {
chunked_transfer_encoding off;
proxy_http_version 1.1;
proxy_pass http://localhost:9001;
proxy_buffering off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host:9001;
proxy_set_header Connection "Upgrade";
proxy_set_header Upgrade websocket;
}
@hcm82
hcm82 / nginx-websocket-proxy.conf
Created March 2, 2022 11:34 — forked from uorat/nginx-websocket-proxy.conf
Nginx Reverse Proxy for WebSocket
upstream websocket {
server localhost:3000;
}
server {
listen 80;
server_name localhost;
access_log /var/log/nginx/websocket.access.log main;
@hcm82
hcm82 / clean.bat
Created December 23, 2021 02:36 — forked from bonede/clean.bat
clean.bat
rem clean.bat
rem from: http://www.chedong.com/blog/archives/001362.html
@echo off
echo 清空IE临时文件目录...
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
echo 正在清除系统临时文件 *.tmp *._tmp *.log *.chk *.old ,请稍等...
del /f /s /q %systemdrive%\*.tmp
@hcm82
hcm82 / tik: Hurricane Electric dDNS Update
Created December 22, 2021 22:52 — forked from pbrooko/tik: Hurricane Electric dDNS Update
RouterOS (v5+) script to update Hurricane Electric Dynamic DNS address
# Update Hurricane Electric DDNS IPv4 address
# This script will work on RouterOS v5+
# Customize the following variables:
:local ddnshost "<DDNS HOST NAME>"
:local key "<PASSWORD>"
:local WANinterface "<INTERFACE>"
:local updatehost "dyn.dns.he.net"
:local outputfile ("HE_DDNS" . ".txt")

####polipo 是一个轻量级的跨平台代理服务器。可以实现HTTP和SOCKS代理 polipo 配置文件在 etc/config/polipo 会按照上面的文件修改/var/etc.polipo.conf

不要在 openwrt 网页控制界面修改 polipo 的设置(socks5代理无法设置) ####以下示例中

  • socksParentProxy是上级代理ip,端口
  • socksProxyType是上级代理类型
  • proxyAddress是监听的ip
  • allowedClients是允许ip范围
@hcm82
hcm82 / SSTP-Setup-on-Linux.md
Created December 16, 2021 22:50 — forked from kaypeter87/SSTP-Setup-on-Linux.md
SSTP Setup on Linux using Network Manager

SSTP Setup on Linux using Network Manager

These are valid for Arch Linux distribution but may work with any other distribution:

Pre-requisite:

  1. networkmanager-sstp - NetworkManager VPN plugin for SSTP
  2. sstp-client - SSTP VPN implementation that allows remote access to Microsoft Windows 2008 Server

Optional:

  • network-manager-applet - Applet frontend for managing network connections
@hcm82
hcm82 / openwrt_squid.md
Created December 15, 2021 08:00 — forked from gmeeker/openwrt_squid.md
OpenWRT squid proxy with authentication

OpenWRT installation of HTTP proxy with authentication

Based on OpenWRT: 18.06.1

(Note: using tinyproxy might accomplish this with less work, but only 1.10 supports authentication. As of December 2018, OpenWRT does not include that version. However, squid also supports other authentication methods so this guide may remain useful.)

I wanted to turn an ordinary WiFi router into an HTTP proxy, but it turns out that the guides I found are for transparent proxies, and worse, OpenWRT doesn't compile authentication into squid!

Official OpenWRT guide to Squid (don't follow these steps blindly, as its only purpose is HTTP caching):

@hcm82
hcm82 / README.MD
Created April 22, 2021 11:39 — forked from ihciah/README.MD
V2ray MTProto through Shadowsocks

V2ray MTProto through Shadowsocks

Why use it

The MTProto is easy to block; shadowsocks is hard to identify but cannot work without a client.

You can deylop this docker image to run a relay inside the firewall (China/Russia etc.), it provide a MTProto and all the packets will be sent through shadowsocks protocol.

How to run