Skip to content

Instantly share code, notes, and snippets.

Avatar

baofeng.song bfsong

View GitHub Profile
@bfsong
bfsong / 北京联通IPTV内网组播.m3u
Created Aug 11, 2019 — forked from riverscn/北京联通IPTV内网组播.m3u
北京联通IPTV内网组播地址节目表(239.2.1.1网段)
View 北京联通IPTV内网组播.m3u
#EXTM3U name="北京联通IPTV(RTP)”
#EXTINF:-1,CCTV-1高清(1)
rtp://239.2.1.129:8000
#EXTINF:-1,CCTV-2高清(2)
rtp://239.2.1.60:8084
#EXTINF:-1,CCTV-4高清(4)
rtp://239.2.1.105:8092
#EXTINF:-1,CCTV-7高清(7)
rtp://239.2.1.61:8104
#EXTINF:-1,CCTV-9高清(9)
@bfsong
bfsong / handlebars-helper.js
Last active Mar 12, 2017
Handlebars Helpers
View handlebars-helper.js
Handlebars.registerHelper('ifgt', function (val1, val2, options) {
if (val1 > val2) {
return options.fn(this);
}
return options.inverse(this);
});
Handlebars.registerHelper('iflt', function (val1, val2, options) {
if (val1 < val2) {
return options.fn(this);
@bfsong
bfsong / latest-ffmpeg-centos6.sh
Last active Dec 26, 2016 — forked from mustafaturan/latest-ffmpeg-centos6.sh
Installs latest ffmpeg on Centos 6
View latest-ffmpeg-centos6.sh
# source: https://trac.ffmpeg.org/wiki/CentosCompilationGuide
yum install autoconf automake gcc gcc-c++ git libtool make nasm pkgconfig zlib-devel
mkdir ~/ffmpeg_sources
cd ~/ffmpeg_sources
curl -O http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
tar xzvf yasm-1.2.0.tar.gz
cd yasm-1.2.0
@bfsong
bfsong / Linux Static IP
Created Sep 12, 2016 — forked from fernandoaleman/Linux Static IP
How To Configure Static IP On CentOS 6
View Linux Static IP
## Configure eth0
#
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
NM_CONTROLLED="yes"
ONBOOT=yes
HWADDR=A4:BA:DB:37:F1:04
TYPE=Ethernet
BOOTPROTO=static