A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
ffmpeg -i in.mkv -f srt -i in.srt -map 0:0 -map 0:1 -map 1:0 -c:v copy -c:a copy -c:s srt out.mkv |
We want to upload file to a server with POST HTTP request. We will use curl functions.
// data fields for POST request
$fields = array("f1"=>"value1", "another_field2"=>"anothervalue");
// files to upload
$filenames = array("/tmp/1.jpg", "/tmp/2.png");
利用 Docker 一键部署 Disqus 反向代理到服务器,请看 https://github.com/Ben02/disqus-lite 。
注意:服务器需有 nginx 和 php 环境。
注意:因为 proxy_pass
里包含变量,所以要到 nginx.conf
里增加一条配置:
http{
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
; #Warn ; Enable warnings to assist with detecting common errors. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
LCtrl & Tab:: AltTab | |
!Tab:: Send ^{Tab} | |
!+Tab:: Send ^+{Tab} | |
^Space:: Send ^{Esc} |
var data = new FormData() | |
// Add data/files to formdata var | |
jQuery.ajax({ | |
url: wpApiSettings.root + 'routehere/v1/subroute/save', | |
type: 'POST', | |
beforeSend: function(xhr) { | |
xhr.setRequestHeader( 'X-WP-Nonce', wpApiSettings.nonce ); | |
}, |
#coding=utf-8 | |
import requests | |
import json | |
import mimetypes | |
from PIL import ImageGrab | |
import datetime | |
def upload(files): | |
APIKey = "YOUR API KEY" | |
format = "json" |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Sine Wave</title> | |
<script type="text/javascript"> | |
function showAxes(ctx,axes) { | |
var width = ctx.canvas.width; | |
var height = ctx.canvas.height; | |
var xMin = 0; |
/* | |
* by zhangxinxu | |
* http://www.zhangxinxu.com/wordpress/2011/05/css%E5%AE%9E%E7%8E%B0%E5%90%84%E4%B8%AA%E6%B5%8F%E8%A7%88%E5%99%A8%E5%85%BC%E5%AE%B9%E7%9A%84%E5%9E%82%E7%9B%B4%E7%BF%BB%E8%BD%AC%E6%B0%B4%E5%B9%B3%E7%BF%BB%E8%BD%AC%E6%95%88%E6%9E%9C/ | |
*/ | |
/*水平翻转*/ | |
.flipx { | |
-moz-transform:scaleX(-1); | |
-webkit-transform:scaleX(-1); | |
-o-transform:scaleX(-1); | |
transform:scaleX(-1); |