Skip to content

Instantly share code, notes, and snippets.

@phha
phha / gist:d47854d82a61727b95607c788bb3c52c
Created December 3, 2020 08:19
Zenburn colorscheme for Guacamole
background: rgb:3f/3f/3f;
foreground: rgb:dc/dc/cc;
color0: rgb:4d/4d/4d;
color1: rgb:70/50/50;
color2: rgb:60/b4/8a;
color3: rgb:f0/df/af;
color4: rgb:50/60/70;
color5: rgb:dc/8c/c3;
color6: rgb:8c/d0/d3;
color7: rgb:dc/dc/cc;
@phha
phha / module.yaml
Created May 5, 2020 07:31 — forked from oxan/README.md
Stream server (serial-to-wifi bridge) for ESPHome
esphome:
# ...
includes:
- stream_server.h
- stream_server.cpp
uart:
id: uart_bus
# ...
#EXTM3U
#EXTINF:-1, CCTV-1 综合 FHD
http://live-wcloud-cdn.ysp.cctv.cn/tlivecloud-cdn.ysp.cctv.cn/001/2000210103.m3u8
#EXTINF:-1, CCTV-2 财经 FHD
http://live-wcloud-cdn.ysp.cctv.cn/tlivecloud-cdn.ysp.cctv.cn/001/2000203603.m3u8
#EXTINF:-1, CCTV-3 综艺 FHD
http://live-wcloud-cdn.ysp.cctv.cn/tlivecloud-cdn.ysp.cctv.cn/001/2000203803.m3u8
#EXTM3U
#EXTINF:-1,CCTV1
http://171.117.241.238:9981/stream/channelid/1969235436
#EXTINF:-1,CCTV2
http://171.117.241.238:9981/stream/channelid/591873111
#EXTINF:-1,CCTV3
http://171.117.241.238:9981/stream/channelid/493920233
#EXTINF:-1,CCTV4
http://171.117.241.238:9981/stream/channelid/1536370375
#EXTINF:-1,CCTV5
@phha
phha / cn-hd.m3u
Last active April 15, 2022 19:51
#EXTM3U
#EXTINF:-1 tvg-id="cctv1" tvg-logo="http://www.peterealty.com/tv_logos/cctv1.jpg" group-title="China",CCTV-1
http://223.110.242.130:6610/gitv/live1/G_CCTV-1-HQ/1.m3u8
#EXTINF:-1 tvg-id="cctv2" tvg-logo="http://www.peterealty.com/tv_logos/cctv2.jpg" group-title="China",CCTV-2
http://112.50.243.10/PLTV/88888888/224/3221225800/1.m3u8
#EXTINF:-1 tvg-id="cctv3" tvg-logo="http://www.peterealty.com/tv_logos/cctv3.jpg" group-title="China",CCTV-3
http://183.207.249.14/PLTV/3/224/3221225588/index.m3u8
#EXTINF:-1 tvg-id="cctv4" tvg-logo="http://www.peterealty.com/tv_logos/cctv4.jpg" group-title="China",CCTV-4
http://223.110.242.130:6610/gitv/live1/G_CCTV-4-HQ/1.m3u8
#EXTINF:-1 tvg-id="cctv5" tvg-logo="http://www.peterealty.com/tv_logos/cctv5.jpg" group-title="China",CCTV-5
@phha
phha / cctv-sd.m3u
Last active August 17, 2019 07:48
CCTV SD
#EXTM3U
#EXTINF:-1 tvg-id="cctv1" tvg-logo="http://www.peterealty.com/tv_logos/cctv1.jpg" group-title="China",CCTV-1综合
http://cctvcnch5c.v.wscdns.com/live/cctv1_2/index.m3u8
#EXTINF:-1 tvg-id="cctv2" tvg-logo="http://www.peterealty.com/tv_logos/cctv2.jpg" group-title="China",CCTV-2财经
http://cctvcnch5c.v.wscdns.com/live/cctv2_2/index.m3u8
#EXTINF:-1 tvg-id="cctv3" tvg-logo="http://www.peterealty.com/tv_logos/cctv3.jpg" group-title="China",CCTV-3综艺
http://cctvcnch5c.v.wscdns.com/live/cctv3_2/index.m3u8
#EXTINF:-1 tvg-id="cctv4" tvg-logo="http://www.peterealty.com/tv_logos/cctv4.jpg" group-title="China",CCTV-4中文国际
http://cctvcnch5c.v.wscdns.com/live/cctv4_2/index.m3u8
#EXTINF:-1 tvg-id="cctv5" tvg-logo="http://www.peterealty.com/tv_logos/cctv5.jpg" group-title="China",CCTV-5体育
@phha
phha / gi
Created August 10, 2017 17:30
Interactively greate a gitignore file from gitignore.io
#!/bin/sh
# Create useful gitignore files
# Usage: gi [param]
# param is a comma separated list of ignore profiles.
# If param is ommited choose interactively.
function __gi() {
curl -L -s https://www.gitignore.io/api/"$@"
}
{
"mysite/*/urls.py": {
"type": "urls",
"alternate": [ "mysite/{}/views.py", "mysite/{}/models.py", "mysite/{}/tests.py" ]
},
"mysite/urls.py": {
"type": "urls"
},