去掉片头广告
ffmpeg -ss 00:00:00 -i input.mp4 -vcode copy -acodec copy output.mp4
| #!/bin/bash | |
| # /usr/bin/blurlock | |
| # take screenshot | |
| # import -silent -window root /tmp/screenshot.png | |
| scrot -z /tmp/screenshot.png | |
| # blur it | |
| # convert /tmp/screenshot.png -brightness-contrast -20x20 -colorspace LinearGray -blur 0x5 -average /tmp/screenshotblur.png |
去掉片头广告
ffmpeg -ss 00:00:00 -i input.mp4 -vcode copy -acodec copy output.mp4
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| zh-CN: | |
| admin: | |
| js: | |
| true: True | |
| false: False | |
| is_present: "存在" | |
| is_blank: "为空" | |
| date: "日期 ..." | |
| between_and_: "在 ... 和 ... 之间" | |
| today: "今天" |
| touch /Applications/App.app | |
| touch /Applications/App.app/Contents/Info.plist | |
| killall Dock |
| # http://guides.rubyonrails.org/configuring.html#configuring-generators | |
| Rails.application.config.generators do |g| | |
| g.assets = false # no assets | |
| g.helper = false # no helper | |
| end |
| case $1 in | |
| start) | |
| sh $CATALINE_HOME/bin/startup.sh | |
| ;; | |
| stop) | |
| sh $CATALINE_HOME/bin/shutdown.sh | |
| ;; | |
| restart) | |
| sh $CATALINE_HOME/bin/startup.sh | |
| sh $CATALINE_HOME/bin/shutdown.sh |
| mysql>select concat('KILL ',id,';') from information_schema.processlist into outfile '/tmp/a.txt'; | |
| mysql>source /tmp/a.txt; |
| -XX:MaxPermSize=256m | |
| -Xms1024m | |
| -Xmx1024m | |
| -XX:+PrintGCTimeStamps | |
| -XX:+PrintGCDetails | |
| -verbose:gc | |
| -Xloggc:LOG/eclipse-gc.log | |
| -XX:+DisableExplicitGC |
| source "http://ruby.taobao.org/" | |
| gem "sinatra" |