Skip to content

Instantly share code, notes, and snippets.

@piaoyun
piaoyun / OfficeAccount.py
Created June 11, 2020 01:17 — forked from nickfox-taterli/OfficeAccount.py
O365翻车查找
import json
import os
import time
import yaml
from requests_oauthlib import OAuth2Session
# Azure SDK 必须这么做,因为Azure服务器可能不按顺序返回参数.
os.environ['OAUTHLIB_RELAX_TOKEN_SCOPE'] = '1'
os.environ['OAUTHLIB_IGNORE_SCOPE_CHANGE'] = '1'
@piaoyun
piaoyun / config.yml
Created April 9, 2020 02:19 — forked from anonymous/config.yml
flexget config
#使用前请将注释删除以免出问题。#后面带汉字的就是注释
#如果不想启用 Web-UI 则删除本段代码
web_server:
bind: 0.0.0.0
port: 50001 #web-ui的监听端口
# ssl_certificate: '/etc/ssl/private/myCert.pem' #SSL证书位置,启用https的话,把前面的#号删除
# ssl_private_key: '/etc/ssl/private/myKey.key' #SSL证书位置,启用https的话,把前面的#号删除
web_ui: yes #启用web-ui
base_url: /flex #网址后缀
run_v2: yes #启动 V2 版本
@piaoyun
piaoyun / ffmpeg.md
Created April 4, 2020 06:00 — 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"