transpose参数说明 (1)=90CpimterClockwise and Vertical Flip(default),逆时针旋转90°后垂直翻转。 (2)1=90Clockwise,顺时针旋转90° (3)2=90CounterClockwise,逆时针旋转90° (4)3=90Clockwise,顺时针旋转90°后垂直翻转。 ffmpeg –help filter=transpose ffmpeg -i IMG_0001.jpg -vf “transpose=1,transpose=1” \ -f image2 IMG_0001_0-r180.jpg && exit
post
The phone after restarting
Password is required after restarting 重启后需要密码 To protect data security, you need to unlock the phone to access all functions. 为保护数据安全,你需要去解锁手机去访问所有功能.
php修改上传文件大小
在PHP中,可以通过修改配置文件或使用ini_set()函数来修改上传文件大小限制。 通过修改php.ini文件 找到php.ini文件,通常位于服务器的php安装目录下。 打开php.ini文件,找到”upload_max_filesize”和”post_max_size”两个配置项。 修改它们的值,例如将它们都设为”10M”,表示最大上传文件大小为10MB。 保存php.ini文件并重启服务器,使配置生效。 vim /usr/local/php/lib/php.ini ; Maximum allowed size for uploaded files. upload_max_filesize = 500M ; Maximum size of POST data that PHP will accept. post_max_size = 500M systemctl restart rc-local.service
mysql 远程端口3307
vim /etc/my.cnf [client] #password = your_password port = 3307 socket = /tmp/mysql.sock systemctl restart rc-local.service vim frpc.ini [mysql] type = tcp local_ip = 10.168.1.115 local_port = 3306 remote_port = 3307 custom_domains = 39.100.102.12 systemctl restart frpc.service root135@root135:~/Desktop$ mysql -u root -p -h 39.100.102.12 -P 3307 Enter password: Welcome to the MariaDB monitor. Commands end with… Continue reading mysql 远程端口3307
mysql update delete
mysql> update user set password=password(‘123456′) where user=’root’ and host=’root’ or host=’localhost’; Query OK, 2 rows affected (0.00 sec) Rows matched: 2 Changed: 2 Warnings: 0 mysql> flush privileges; Query OK, 0 rows affected (0.00 sec) mysql> update mysql.user set host=’10.168.1.115′ where user=’root’ and host=’localhost’; Query OK, 0 rows affected (0.00 sec) Rows matched: 0 Changed:… Continue reading mysql update delete