Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am huxuan on github.
  • I am huxuan (https://keybase.io/huxuan) on keybase.
  • I have a public key ASCJT2SfELRBejY7_Hj0HS1l4wq6AgbRYzw7K7xxIRTRlAo

To claim this, I am signing this object:

#EXTM3U
#EXTINF:-1 ,北京IPTV 4K超清 [4K]
rtp://239.3.1.249:8001
#EXTINF:-1 ,爱上4K [4K]
rtp://239.3.1.236:2000
#EXTINF:-1 tvg-logo="http://epg.51zmt.top:8000/tb1/CCTV/CCTV1.png" tvg-id="1" tvg-name="CCTV1" group-title="央视",CCTV-1综合 [1080p]
rtp://239.3.1.129:8008
#EXTINF:-1 tvg-logo="http://epg.51zmt.top:8000/tb1/CCTV/CCTV2.png" tvg-id="2" tvg-name="CCTV2" group-title="央视",CCTV-2财经 [1080p]
rtp://239.3.1.60:8084
#EXTINF:-1 tvg-logo="http://epg.51zmt.top:8000/tb1/CCTV/CCTV3.png" tvg-id="3" tvg-name="CCTV3" group-title="央视",CCTV-3综艺 [1080p]
@huxuan
huxuan / subprocess_reproduce.py
Last active November 28, 2019 00:47
Subprocess failed to kill child process when using with statement.
from urllib.request import urlopen
import subprocess
import time
url = 'https://iptv-org.github.io/iptv/index.m3u'
with urlopen(url) as response:
for line in response.read().decode('utf-8').splitlines():
if line.startswith('http'):
start_time = time.time()
@huxuan
huxuan / Makefile
Last active February 26, 2023 17:33
Hello World for LuaJIT FFI/C++ binding.
all: lib run
lib:
g++ -shared -fPIC -o libhello.so libhello.cpp hello.cpp
run:
luajit main.lua
clean:
rm *.so