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
| git init # 初始化本地git仓库(创建新仓库) | |
| git config --global user.name "xxx" # 配置用户名 | |
| git config --global user.email "[email protected]" # 配置邮件 | |
| git config --global color.ui true # git status等命令自动着色 | |
| git config --global color.status auto | |
| git config --global color.diff auto | |
| git config --global color.branch auto | |
| git config --global color.interactive auto | |
| git config --global --unset http.proxy # remove proxy configuration on git | |
| git clone git+ssh://[email protected]/VT.git # clone远程仓库 |
| #!/bin/bash | |
| # install CUDA Toolkit v8.0 | |
| # instructions from https://developer.nvidia.com/cuda-downloads (linux -> x86_64 -> Ubuntu -> 16.04 -> deb (network)) | |
| CUDA_REPO_PKG="cuda-repo-ubuntu1604_8.0.61-1_amd64.deb" | |
| wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/${CUDA_REPO_PKG} | |
| sudo dpkg -i ${CUDA_REPO_PKG} | |
| sudo apt-get update | |
| sudo apt-get -y install cuda |
| from keras.layers.merge import Concatenate | |
| from keras.layers.core import Lambda | |
| from keras.models import Model | |
| import tensorflow as tf | |
| def make_parallel(model, gpu_count): | |
| def get_slice(data, idx, parts): | |
| shape = tf.shape(data) | |
| size = tf.concat([ shape[:1] // parts, shape[1:] ],axis=0) |
| rpm -Uvh https://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
| rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm | |
| rpm -Uvh http://dev.mysql.com/get/mysql57-community-release-el6-8.noarch.rpm | |
| yum -y install make zlib zlib-devel gcc-c++ libtool openssl openssl-devel libxml2 libxml2-devel openssl openssl-devel curl-devel libjpeg-devel libpng-devel freetype-devel libmcrypt-devel mysql-community-server | |
| service mysqld start | |
| chkconfig mysqld on | |
| yum -y install php70w php70w-cli php70w-common php70w-gd php70w-ldap php70w-mbstring php70w-mcrypt php70w-mysql php70w-pdo php70w-pecl-imagick php70w-pecl-redis php70w-opcache php70w-fpm | |
| service php-fpm start | |
| chkconfig php-fpm on | |
| yum -y install redis nginx |
| <?php | |
| /** | |
| * 生成mysql数据字典 | |
| */ | |
| // 配置数据库 | |
| $database = array(); | |
| $database['DB_HOST'] = '127.0.0.1'; | |
| $database['DB_NAME'] = 'test'; | |
| $database['DB_USER'] = 'testuser'; | |
| $database['DB_PWD'] = '123456'; |
| #!/usr/bin/env python3 | |
| # -*- utf8 -*- | |
| # [email protected] | |
| # create=20160425 | |
| import requests | |
| import gevent.pool | |
| import gevent.monkey | |
| import sys | |
| MAX_TRY_COUNT = 3 | |
| THREADS = 30 |
| package pw.davex; | |
| /** | |
| * @author Dong Fang | |
| */ | |
| public class HashTable <V> { | |
| private int mTableSize; | |
| private int mElementNum; | |
| private int mAttemptTime; | |
| private HashEntry[] mTable; |
| package davex; | |
| import java.util.Objects; | |
| /** | |
| * The MATRIX Class for storing and operating weighted undirected grid | |
| * @author Dong Fang | |
| */ | |
| public class Matrix { | |
| private int mSize; |
| #!/usr/bin/python | |
| # Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford ([email protected]) | |
| # The author disclaims copyright to this source code. | |
| import sys | |
| import struct | |
| import socket | |
| import time | |
| import select |