ffmpeg -i *.mp4 -vf subtitles=*.srt output.mp4
ffmpeg -i audio.aac -i ch2.h264 -acodec copy -vcodec copy -f mpegts out.ts
ffmpeg -rtsp_transport tcp -i rtsp://fuck.com/fuck/fuck -c copy -f flv rtmp://shit.com/shit/shit
| var data = "do shash'owania"; | |
| var crypto = require('crypto'); | |
| crypto.createHash('md5').update(data).digest("hex"); |
| <?php | |
| class Container | |
| { | |
| protected $setings = array(); | |
| public function set($abstract, $concrete = null) | |
| { | |
| if ($concrete === null) { | |
| $concrete = $abstract; |
| Hyper-V 默认创建 **.vhdx** 格式的虚拟磁盘。 | |
| 根据SuperUser上的这个问题: | |
| http://superuser.com/questions/723381/how-to-open-vhdx-files-in-virtualbox | |
| 尽管第三个答案指出, | |
| > VirtualBox since 4.2 changelog says support added for VHDX "Storage: added readonly support for VHDX images". | |
| 但这种格式在VirtualBox中是不支持的,要使用它建立新的镜像,会出现错误。具体信息为: |
| # Backup DB | |
| docker run \ | |
| --rm \ | |
| --link running_mongo:mongo \ | |
| -v /data/mongo/backup:/backup \ | |
| mongo \ | |
| bash -c ‘mongodump --out /backup --host $MONGO_PORT_27017_TCP_ADDR’ | |
| # Download the dump | |
| scp -r USER@REMOTE:/data/mongo/backup ./backup | |
AmbientCapabilities support (usually kernel >= linux4.3) [Unit]
Description=FRP Server Daemon
| // This is a temporary fix until Jimp implements support for webp | |
| // https://github.com/oliver-moran/jimp/issues/144 | |
| // const img = await webpToJimp('https://test.com/img.webp', './tmp') | |
| import fs from 'fs' | |
| import axios from 'axios' | |
| import jimp from 'jimp' | |
| import webp from 'webp-converter' |
| 'use strict' | |
| const web3 = require('@solana/web3.js') | |
| const splToken = require('@solana/spl-token') | |
| const bs = require('bs58') | |
| const connection = new web3.Connection( | |
| web3.clusterApiUrl('devnet'), | |
| 'confirmed', | |
| ) |