ffmpeg

CentOS中yum安装ffmpeg

1.升级系统

sudo yum install epel-release -y sudo yum update -y sudo shutdown -r now

2.安装Nux Dextop Yum 源

由于CentOS没有官方FFmpeg rpm软件包。但是,我们可以使用第三方YUM源(Nux Dextop)完成此工作。

  1. CentOS 7

sudo rpm …

阅读更多

firewalld

firewalld is masked报错

删除 /etc/systemd/system/firewalld.service.

systemctl unmask firwalld

systemctl start firewalld

阅读更多

gii生成代码

生成表model

./yii gii/model –tableName=dw_house_broker_sale –modelClass=HouseBrokerSale

生成controller和view

./yii gii/crud …

阅读更多

Git 如何保存用户名和密码

使用credential helper保存用户名和密码

Git提供了credential helper的功能,可以在本地保存用户名和密码,以便在每次Git命令执行时,不需要重新输入认证信息。

Git支持多种credential helper,包括cache、store、或者其他第三方提供的credential helper。其中,cache credential helper是Git默认的方式,可 …

阅读更多

gitbash配置

修改 /etc/profile.d/git-prompt.sh

MSYS2_PS1

git config --global color.status auto
git config --global color.diff auto
git config --global color.branch auto
git config --global color.interactive auto …

阅读更多