Wake Me Up When September Ends.

A wanderer capable of grasping the beauty of the grass, with a heart full of ancient charm, and a fondness for playful wit. Those who understand my words are knowledgeable individuals; those who decipher my code truly comprehend the essence. I am a wandering code swordsman, carrying my skills and riding freely through the digital world.

在日常开发feature之后会在自己开发的分支上留下许多提交记录,想在最后发版本提交
将多个提交合并成一个提交记录,显得规整一些。

查询相关资料之后,发现使用 git rebase 和 git squash 命令配合完成上述需求。

阅读全文 »

这是2023年自己一些简单总结,每个人的认知不一样,无乎对与否。

2023

再见2023! 很平凡的一年,明白不多,看淡许多!

工作&学习

裁员降薪危机

这一年媒体上报导“裁员”信息太多了有jd,拼多多,字节跳动,蔚来,百度,脉脉等。其实公司“裁员”是一个很正常事情,如今每次裁员都会成为社会热点?裁员危机背后的“35岁危机”该如面对?

阅读全文 »

比较新的linux服务器,常常用systemctl 管理服务,一些比较老的服务器会使用service来管理服务,比如一台安装centos 6.5 数据库服务器,那么servicesystemctl有哪区别?

service 命令

service 命令是传统的SysV init 系统的服务管理工具。它提供了一种简单的方法来启动、停止、重启和查询系统服务的状态。它通过读取位于 /etc/init.d/ 目录下的服务脚本来管理服务。使用 service 命令可以使用服务脚本的名称来操作服务,例如:

阅读全文 »

PHP 8.3已经如期发布,看一下新版特带来哪些特性!

常量类型化(Typed class constants)

定义常量目前可以标识类型了!

8.3 之前

1
2
3
4
5
6
7
8
9
interface I {
// 过往历史长河中总是认为PHP常量总是一个字符串
const PHP = 'PHP 8.2';
}

class Foo implements I {
// 但是实现类可能会将其定义为数组。
const PHP = [];
}

8.3 之后

1
2
3
4
5
6
7
8
9
interface I {
const string PHP = 'PHP 8.3';
}

class Foo implements I {
const string PHP = [];
}

//代码会发生致命错误:无法将数组用作类常量的值
阅读全文 »