Skip to content

Instantly share code, notes, and snippets.

View bfsong's full-sized avatar

baofeng.song bfsong

  • Beijing - China
View GitHub Profile
@bfsong
bfsong / 北京联通IPTV内网组播.m3u
Created August 11, 2019 14:11 — forked from riverscn/北京联通IPTV内网组播.m3u
北京联通IPTV内网组播地址节目表(239.2.1.1网段)
#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 March 12, 2017 14:48
Handlebars Helpers
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 December 26, 2016 01:58 — forked from mustafaturan/latest-ffmpeg-centos6.sh
Installs latest ffmpeg on Centos 6
# 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 September 12, 2016 02:07 — forked from fernandoaleman/Linux Static IP
How To Configure Static IP On CentOS 6
## 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