Dockerfile Docker 可以通过读取 Dockerfile 中的指令自动构建镜像。 Dockerfile 是一个文本文档,其中包含了用户创建镜像的所有命令和说明。 一、 变量变量用 $variable_name 或者 ${variable_name} 表示 ${variable:-word}表示如果variable设置,则结果将是该值。如果variable未设置,wo 2021-08-27 Dockerfile docker docker Dockerfile
Mac关闭浏览器手势 Mac上面关闭 双指左滑右滑,导致浏览器前进后退的现象 Chrome1defaults write com.google.Chrome AppleEnableSwipeNavigateWithScrolls -bool false Microsoft Edge1defaults write com.microsoft.edgemac AppleEnableSwipeNavigateWithScr 2021-08-17 计算机相关 Mac 计算机相关 Mac
composer安装依赖报错 使用composer安装composer.json文件中的依赖时,报错 Allowed memory size of 1610612736 bytes exhausted (tried to allocate 83886080 bytes),反正就是说内存超出限制了。实际是因为php.ini中 memory_limit的大小限制的。 修改php.inimac M1 通过homebrew安装的PHP 2021-07-22 PHP Composer PHP Composer
MySQL Explain 平常业务中,经常会出现一些查询的慢sql,有些一眼就可以看出来是什么问题,有些不太方便定位是什么条件导致查询变慢。这时候我们通过explain命令来查看mysql查询时的关键指标 查询示例1explain select * from orders where created_at > '2021-07-12 00:00:00' and created_at < 2021-07-20 数据库 MySQL 数据库 MySQL
Laravel - ide-helper 通过 ide-helper 自动生成Model上面的 属性 1php artisan ide-helper:models "App\\Models\\CustomizedSkuInfo" Model层最好指定一下表名,并且数据库中这张表已经存在 12345class CustomizedSkuInfo extends Model { use SoftDelet 2021-07-01 PHP Laravel PHP Laravel