下载 bili-conv.js 到本地,需安装依赖xml2js
npm i xml2js
| #EXTM3U name="bj-unicom-iptv" | |
| #EXTINF:-1,CCTV1 | |
| rtp://239.3.1.1:8000 | |
| #EXTINF:-1,CCTV2 | |
| rtp://239.3.1.2:8004 | |
| #EXTINF:-1,CCTV4 | |
| rtp://239.3.1.4:8216 | |
| #EXTINF:-1,CCTV7 | |
| rtp://239.3.1.7:8024 | |
| #EXTINF:-1,CCTV9 |
| #!/bin/bash | |
| base_dir="/_ds3617xs/bilibili/" | |
| cd $base_dir | |
| youget="/usr/local/bin/you-get" | |
| rank_list=`curl -s $1 -L -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36' | egrep 'https://www\.bilibili\.com/video/av[0-9]*' -o | shuf` | |
| for b in $rank_list; do |
| #!/bin/bash | |
| main_list_file="$1" | |
| base_dir="$2" | |
| lock_file="$base_dir/live.lock" | |
| cd $base_dir | |
| dir='' | |
| function onExit() { |
| #!/bin/bash | |
| dir="/_ds3617xs/bilibili" | |
| file_list=`find $dir -name "*.flv" | shuf | head -n 30` | |
| list_file="$dir/live$1.list" | |
| echo > $list_file | |
| ass_file_list="" | |
| for file in $file_list; do |
| #!/bin/bash | |
| main_list_file="$1" | |
| base_dir="$2" | |
| cd $base_dir | |
| while : | |
| do | |
| dir=`shuf $main_list_file | head -1` | |
| echo 'dir: ' "$dir" |
| {"channels":[{"name":"CCTV-1综合高清","url":"http://ivi.bupt.edu.cn/hls/cctv1hd.m3u8"},{"name":"CCTV-3综艺高清","url":"http://ivi.bupt.edu.cn/hls/cctv3hd.m3u8"},{"name":"CCTV-5+体育赛事高清","url":"http://ivi.bupt.edu.cn/hls/cctv5phd.m3u8"},{"name":"CCTV-6电影高清","url":"http://ivi.bupt.edu.cn/hls/cctv6hd.m3u8"},{"name":"CCTV-8电视剧高清","url":"http://ivi.bupt.edu.cn/hls/cctv8hd.m3u8"},{"name":"CHC高清电影","url":"http://ivi.bupt.edu.cn/hls/chchd.m3u8"},{"name":"北京卫视高清","url":"http://ivi.bupt.edu.cn/hls/btv1hd.m3u8"},{"name":"北京文艺高清","url":"http://ivi.bupt.edu.cn/hls/btv2hd.m3u8"},{"name":"北京纪实高清","url":"http://ivi.bupt.edu.cn/hls/btv11hd.m3u8"},{"name":"湖南卫视高清","url":"http://ivi.bupt.edu.cn/hls/hunanhd.m3u8"},{"name":"浙江卫视高清","url":"http://ivi.bupt.edu.cn/hls/zjhd.m3u8"},{"name":"江苏卫视高清","url":"http://ivi.bupt.edu.cn/hls/jshd.m3u8"},{"name":"东方卫视高清","url":"http://ivi.bupt.edu.cn/hls/dfhd.m3u8"},{"name":"安徽卫视高清","url":"http://ivi.bupt.edu.cn/hls/ahhd.m3u8"},{"name":"黑龙江卫视高清","url":"http://ivi.bupt.edu.cn/hls/hljhd.m3u8"},{"name":"辽宁卫 |
| #!/sbin/openrc-run | |
| name=shadowsocksr | |
| cfgfile="/usr/local/shadowsocksr/user-config.json" | |
| command="/usr/local/shadowsocksr/shadowsocks/server.py" | |
| command_args="--pid-file /var/run/shadowsocksr.pid -c /usr/local/shadowsocksr/user-config.json" | |
| pidfile="/var/run/shadowsocksr.pid" | |
| start_stop_daemon_args="" | |
| command_background="yes" | |
| command_user="root" |
| // quu..__ | |
| // $$$b `---.__ | |
| // "$$b `--. ___.---uuudP | |
| // `$$b `.__.------.__ __.---' $$$$" . | |
| // "$b -' `-.-' $$$" .'| | |
| // ". d$" _.' | | |
| // `. / ..." .' | | |
| // `./ ..::-' _.' | | |
| // / .:::-' .-' .' | |
| // : ::''\ _.' | |
| sudo hdiutil create ~/Documents/case-sensitive.dmg -volname "case-sensitive" -size 10g -fs "Case-sensitive HFS+" | |
| sudo hdiutil mount ~/Documents/case-sensitive.dmg | |
| cd /Volumes/case-sensitive |