Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>items</key>
<array>
<dict>
<key>assets</key>
<array>
<dict>
@ThinkZ
ThinkZ / gist:0a5f258f4c42f2e3ed7fca3649066124
Created April 2, 2021 13:05 — forked from faleev/gist:3435377
Compile FFmpeg on Ubuntu

Compile FFmpeg on Ubuntu

This guide supports Ubuntu Precise Pangolin 12.04, Ubuntu Oneiric Ocelot 11.10, Ubuntu Natty Narwhal 11.04, and Ubuntu Maverick Meerkat 10.10. Separate guides are available for Ubuntu Lucid Lynx 10.04 and Ubuntu Hardy Heron 8.04. This guide will enable several external encoding and decoding libraries: libfaac (AAC encoder), libfdk-aac (AAC encoder), libmp3lame (MP3 encoder), libopencore-amr (AMR encoder/decoder), librtmp (for additional RTMP protocols), libtheora (Theora encoder), libvorbis (Vorbis encoder), libvpx (VP8 encoder/decoder), and libx264 (H.264 encoder). These are optional and may be omitted if desired. This guide will also install many filters (see the filter list in the [Filtering Guide](https://ffmpeg.org/trac/ffmpeg/wiki/Fi

FFmpeg Minimal Build for RTMP Streaming

This tutorial will work you through steps of configuring an FFmpeg build tailored for RTMP streaming on macOS. At first I think of making it support general live streaming, with additional protocols like HLS, but to keep things simple let's stick with RTMP for now. (Anyway, I do include HLS in the protocol list as well as some related bitstream filters but it's untested.)

Goal

The built FFmpeg executable should

# GLiNet MT300N-V2 安装 SSR plus 插件
GLiNet 是一家 生产 便携路由的国内厂商 好像外销为主。
最主要的是他家 路由系统采用的是开源 OpenWrt 系统 并在github 上开源 并提供sdk 和 很多插件
但是国内政策的关系 国内买到的路由器固件内 并没有提供直接安装 SS SSR V2ray 的方法。
经过在 恩三论坛 学习了下(www.right.com.cn) 已经成功把lean 开源的(https://github.com/coolsnowwolf/lede.git) SSR plus 插件 成功的安装到了 MT300N-V2 固件中,下面记录一些安装步骤。
@ThinkZ
ThinkZ / curl ifconfig...
Created November 29, 2018 10:39
what is my ip address
curl icanhazip.com
curl ifconfig.me
curl ifconfig.io
curl ifconfig.co
curl ipinfo.io/ip
curl curlmyip.com
curl ip.appspot.com
curl ipecho.net/plain
curl www.trackip.net/ip
@ThinkZ
ThinkZ / openwrt
Created July 11, 2018 09:05
linux public ip check
wget -q -O - http://checkip.dyndns.org
wget -q -O - http://icanhazip.com
wget -q -O - http://ifconfig.io/ip
wget -q -O - http://ip.appspot.com
wget -q -O - http://ipecho.net/plain
wget -q -O - http://ipinfo.io/ip
wget -q -O - http://myip.ipip.net
wget -q -O - http://www.trackip.net/ip
wget -q -O - http://curlmyip.com
@ThinkZ
ThinkZ / ffmpeg.md
Created September 17, 2017 03:48 — forked from v5tech/ffmpeg.md
ffmpeg视频合并、格式转换、截图

使用ffmpeg合并MP4文件

ffmpeg -i "Apache Sqoop Tutorial Part 1.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate1.ts
ffmpeg -i "Apache Sqoop Tutorial Part 2.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate2.ts
ffmpeg -i "Apache Sqoop Tutorial Part 3.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate3.ts
ffmpeg -i "Apache Sqoop Tutorial Part 4.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate4.ts
ffmpeg -i "concat:intermediate1.ts|intermediate2.ts|intermediate3.ts|intermediate4.ts" -c copy -bsf:a aac_adtstoasc "Apache Sqoop Tutorial.mp4"
@ThinkZ
ThinkZ / gist:26a5b51dadb3d95d5f32af5f09ca4771
Created August 28, 2017 08:00
git clone 所有远程分支
git clone 所有远程分支
git clone只能clone远程库的master分支,无法clone所有分支,解决办法如下:
1. 找一个干净目录,假设是git_work
2. cd git_work
3. git clone http://github.xxx.com/project/.git ,这样在git_work目录下得到一个project子目录
4. cd project
5. git branch -a,列出所有分支名称如下:
remotes
@ThinkZ
ThinkZ / gist:55432ba2857e2ad44191e1c5d4a2b130
Last active August 5, 2017 16:23
SQL Server SHRINKFILE
Select name from data.sys.database_files where type=1;
DUMP TRANSACTION data with NO_LOG;
Backup LOG data with NO_LOG;
DBCC SHRINKFILE('Data_log');
1. nginx
安装
sudo apt-get install nginx
启动、停止和重启
sudo /etc/init.d/nginx start
sudo /etc/init.d/nginx stop
sudo /etc/init.d/nginx restart
或者
sudo service nginx start