By admin, 16 十二月, 2022 Find ports in use on macOS sudo lsof -P -i TCP -s TCP:LISTEN 参考:https://www.micahsmith.com/blog/2019/09/find-ports-in-use-on-macos/ 标签 Mac
By admin, 16 十二月, 2022 Mac+HomeBrew+Nginx+PHP+MariaDB Nginx Docroot is: /usr/local/var/www The default port has been set in /usr/local/etc/nginx/nginx.conf to 8080 so that nginx can run without sudo. nginx will load all files in /usr/local/etc/nginx/servers/. To restart nginx after an upgrade: brew services restart nginx Or, if you don't want/need a background service you can just run: /usr/local/opt/nginx/bin/nginx -g daemon off; 标签 Web
By admin, 5 十二月, 2022 flite的使用 源码:https://github.com/festvox/flite 使用文档:http://www.festvox.org/flite/doc/flite_7.html#C-example 示例代码: #include "flite.h" cst_voice *register_cmu_us_kal(const char *voxdir); // 注意这一行和官方文档不同,官方文档的会报错。 int main(int argc, char **argv) { cst_voice *v; 标签 TTS
By admin, 30 十一月, 2022 全站置灰CSS(默哀模式) html { -webkit-filter: grayscale(100%) !important; -moz-filter: grayscale(100%) !important; -ms-filter: grayscale(100%) !important; -o-filter: grayscale(100%) !important; filter: grayscale(100%) !important; filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=1) !important; } 标签 CSS
By admin, 21 十一月, 2022 Odilia screen reader https://odilia.app/ Odilia is a new screen reader for the Linux desktop. It’s written in Rust, for maximum performance and stability.
By admin, 17 十一月, 2022 修复Error: Too many open files 命令行下ulimit -aS可查看最大打开文件数。 ulimit -n 65535可设置最大打开文件数。 下面步骤可调大Apache里php进程的最大打开文件数(默认可能是1024): 修改/usr/lib/systemd/system/httpd.service里的LimitNOFILE=65535, sudo systemctl daemon-reload sudo service httpd restart
By admin, 14 十一月, 2022 Ubuntu下设置vsftpd服务 安装vsftpd的命令如下: sudo apt install vsftpd 默认配置下,可以登录Ubuntu系统内用户 。 如果系统允许匿名下载,可以编辑/etc/vsftpd.conf修改如下配置: anonymous_enable=YES anon_root=/var/ftp 手动创建匿名用户根目录: sudo mkdir /var/ftp 去掉FTP匿名用户根目录写权限(不然不允许登录): sudo chmod a-w /var/ftp 放一个测试文件: sudo touch /var/ftp/test 重启服务: sudo service vsftpd restart 标签 Ubuntu
By admin, 31 十月, 2022 AI SUMMER https://theaisummer.com/ 一篇关于stable diffusion从文字生成图片的论文: https://theaisummer.com/diffusion-models/#:~:text=Diffusion%20models%20are%20a%20new,to%20train%20large%2Dscale%20models 标签 AI
最新评论