在 DLNA SERVER直接相连的路由器运行
iptables -t mangle -I PREROUTING -d 239.255.255.250/32 -j TEE --gateway 192.168.0.101
192.168.0.101是 DLNA 播放设备的 IP
至于在192.168.0.0/24网段广播,可能需要两个路由器都对 DLNA 通告特殊处理
| #Giant dictonary to hold key name and VK value | |
| VK_CODE = {'backspace':0x08, | |
| 'tab':0x09, | |
| 'clear':0x0C, | |
| 'enter':0x0D, | |
| 'shift':0x10, | |
| 'ctrl':0x11, | |
| 'alt':0x12, | |
| 'pause':0x13, | |
| 'caps_lock':0x14, |
在 DLNA SERVER直接相连的路由器运行
iptables -t mangle -I PREROUTING -d 239.255.255.250/32 -j TEE --gateway 192.168.0.101
192.168.0.101是 DLNA 播放设备的 IP
至于在192.168.0.0/24网段广播,可能需要两个路由器都对 DLNA 通告特殊处理
| 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 |
| Python Cheatsheet | |
| ================= | |
| ################################ Input & Output ############################### | |
| name = input('please enter your name: ') | |
| print('hello,', name) | |
| ageStr = input('please enter your age: ') | |
| age = int(ageStr) | |
| #!/bin/bash | |
| #requires: socat | |
| #author: fangpsh | |
| #关于采集的Haproxy指标和报警阈值设置请参考:https://github.com/iask/haproxymon | |
| set -eu | |
| STATS_SOCKET="/var/lib/haproxy/stats" | |
| HOST=`cat /etc/hostname` | |
| DATE=`date +%s` | |
| tmp_info="/tmp/haproxy_info" |
| Port: 1080 | |
| 1. Create a file /YOUR PATH/gitproxy.sh with content: | |
| #!/bin/sh | |
| nc -X 5 -x 127.0.0.1:1080 "$@" | |
| 2. Edit your ~/.gitconfig | |
| # For git:// |
| #!/bin/bash | |
| # installation jetbrains | |
| j_url="https://data.services.jetbrains.com/products/download" | |
| tmp_dir="$HOME/tmp_jb" | |
| install_dir="/opt" | |
| if [ "$(whoami)" != "root" ] | |
| then | |
| echo "Sorry, you are not root." | |
| exit 1 | |
| fi |
| from http://zqdevres.qiniucdn.com/data/20170907091103/index.html | |
| - download ngingx with RTPM module http://nginx-win.ecsds.eu/download/ *nginx 1.7.12.1 Lizard.zip | |
| - unzip | |
| - create start.bat script | |
| @echo off | |
| title Start Stream | |
| cd /d "C:\nginx" | |
| start nginx | |
| exit |
How to configure your Mac to use DNS over TLS in five easy steps:
Install Stubby with Homebrew (https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Daemon+-+Stubby):
brew install stubby
Edit the configuration file:
| #EXTINF:-1,北京卫视4K | |
| rtp://239.3.1.22:8001 | |
| #EXTINF:-1,云南卫视 | |
| rtp://239.3.1.26:8108 | |
| #EXTINF:-1,四川卫视 | |
| rtp://239.3.1.29:8288 | |
| #EXTINF:-1,广西卫视 |