Skip to content

Instantly share code, notes, and snippets.

View imty42's full-sized avatar

Tianyu imty42

  • Beijing, China
View GitHub Profile
# 00. Install ffmpeg first
brew install ffmpeg
# 01. Download from m3u8 URL, and combine the ts file into one mp4
ffmpeg -user_agent "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/601.7.8 (KHTML, like Gecko) Version/9.1.3 Safari/537.86.7" -c copy video.mp4 -i [http://source.m3u8]
@imty42
imty42 / sougou4MacOS-imty42.plist
Created February 22, 2018 10:52
特殊地: ; = ing, v = v|ui, y = uai 请在【高级功能】右下角的【额外编码】中输入英文的分号并按回车。
<?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>Special</key>
<dict/>
<key>Yun</key>
<dict>
<key>;</key>
<string>ing</string>
@imty42
imty42 / exercise-渐近记号练习.md
Last active January 7, 2018 11:17
知识星球算法时空,练习题目解答

date:2017-11-07 title:渐近记号练习

题目

I. 写出下列式子的 ⍬ 记号

  • T1(n) = 4nlogn + 700n
@imty42
imty42 / how_to_make_weixin_article_to_rss.md
Created December 31, 2017 09:11
如何抓取一个公众号转成 RSS
// 将设置放入此文件中以覆盖默认设置
{
"files.eol": "\n",
"editor.wordWrap": "on",
"workbench.startupEditor": "newUntitledFile",
"git.autofetch": false,
"window.zoomLevel": 0,
"python.pythonPath": "python2"
}
@imty42
imty42 / aria2.conf
Last active January 6, 2020 13:59
aria2 config
## '#'开头为注释内容, 选项都有相应的注释说明, 根据需要修改 ##
## 被注释的选项填写的是默认值, 建议在需要修改时再取消注释 ##
## 初始化相关
# mkdir ~/.aria2
# touch ~/.aria2/aria2.session
# curl -O "https://gist.githubusercontent.com/hit1024/db49888f2dd198eee8c35dbbe3e00255/raw/f9f35caff9c59fc38eafda34cd189158301ec4c7/aria2.conf" ~/.aria2/aria2.conf
## 文件保存相关 ##
@imty42
imty42 / .vimrc
Created May 15, 2017 02:38
A short config for Vim.
set nonumber
set showcmd
set fencs=ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1
set expandtab
set tabstop=8
set shiftwidth=4
set softtabstop=4
set autoindent
@imty42
imty42 / sVimrc
Last active April 13, 2019 06:59
Config for sVim extension for Safari
"" See https://github.com/flipxfx/sVim
let fullpagescrollpercent = 90
let hintcharacters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
map "ctrl+f" scrollFullPageDown
map "ctrl+b" scrollFullPageUp
map "ctrl+d" scrollPageDown
map "ctrl+u" scrollPageUp
@imty42
imty42 / .tmux.conf
Last active October 30, 2016 06:23
My tmux config sharing.
unbind C-b
set -g prefix C-s
# bind a reload key
bind R source-file ~/.tmux.conf \; display-message "Config reloaded.."
# Use vim keybindings in copy mode
setw -g mode-keys vi
const constructor = function(a, b) {
this.a = a;
this.b = b;
};