代码编程 第6页

ffmpeg过滤视频,剔除音频的操作

ffmpeg过滤视频,剔除音频的操作-熊大百宝箱
ffprobe -v quiet -print_format json -show_format -show_streams 1.mp4 {     'streams': [         {             'index': 0,             '...
ForDream的头像-熊大百宝箱ForDream4年前
05400

redis rdb数据库恢复

redis rdb数据库恢复-熊大百宝箱
redis  恢复     如果appendonly 是关闭的 不使用aof  所以只有前面5个步骤 1.编辑 vim etc/redis.conf 2. 搜索appendonly 改成 no   redis关闭aof 3.把rdb文件上传到redis目录 4.pkill ...
ForDream的头像-熊大百宝箱ForDream4年前
05330

ThinkPHP5 mysql 抛异常

ThinkPHP5 mysql 抛异常-熊大百宝箱
try{ Db::commit(); return json(['code' => 1,'msg'=>'恭喜您成功领取礼品券!', 'data' => $return_data]) ; }catch (\think\Exception\DbException $exception){ Db::rollback(); r...
ForDream的头像-熊大百宝箱ForDream4年前
05320

微信公众号配置一键导航

微信公众号配置一键导航-熊大百宝箱
http://apis.map.qq.com/tools/poimarker?type=0&marker=coord:38.878254,115.536479;title:替换里面的汉字;addr:,“替换里面的汉字”&key=OB4BZ-D4W3U-B7VVO-4PJWW-6TKDJ-WPB77&re...
ForDream的头像-熊大百宝箱ForDream3年前
05130

shell 命令

shell 命令-熊大百宝箱
#定义变量赋值时等号两边不能有空格,否则会报命令不存在 # 运行shell脚本两种方式 # 1、作为解释参数 /bin/sh sh test.sh ;   ;  2、作为可执行文件 chmod +x ./ ./test.sh blo blog_url='l...
ForDream的头像-熊大百宝箱ForDream4年前
05130

VIM常用命令

VIM常用命令-熊大百宝箱
VIM常用命令 :set number 行数 :100跳转到100行 dd删除当前这行 u撤销
ForDream的头像-熊大百宝箱ForDream4年前
05100

仅需一行 CSS即可 实现 10 种主流布局

仅需一行 CSS即可 实现 10 种主流布局-熊大百宝箱
超级居中:place-items: center 对于第一个“单行”布局,让我们解决所有 CSS 领域中最大的谜团:居中。我想让您知道,使用 place-items: center 会让此操作比您想象的容易。 首先指定 grid 作...
ForDream的头像-熊大百宝箱ForDream3年前
05080

swoole socket 使用

swoole socket 使用-熊大百宝箱
<?php //创建websocket服务器对象,监听0.0.0.0:9502端口 $ws = new swoole_websocket_server('0.0.0.0', 9502); //监听WebSocket连接打开事件 /** * 客户端想服务器发送信息是调用函数 * $w...
ForDream的头像-熊大百宝箱ForDream4年前
05050

阿里云短信服务API类

阿里云短信服务API类-熊大百宝箱
<?php /**  *  ==================================================================  *        文 件 名: DySms.php  *        概    要: 阿里云短信服务API...
ForDream的头像-熊大百宝箱ForDream4年前
05040

centos 6.5 下安装ffmpeg,并实现自动化转换 (亲测)

centos 6.5 下安装ffmpeg,并实现自动化转换 (亲测)-熊大百宝箱
yasm是一个完全重写的NASM汇编。目前,它支持x86和AMD64指令集。接受NASM和GNU汇编器(gas)语法,产出二进制,ELF32,ELF64,COFF,Mach-O的(32和64),RDOFF2,的Win32和Win64对象的格式,并...
ForDream的头像-熊大百宝箱ForDream4年前
04890