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.

这是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 = [];
}

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

很多时候我们在git库中,不小心把应该忽略的文件或目录提交远程库中,比如.idea.ivscode等。把远程删除,本地不发生变化,以下操作即可:

1.使用git rm 命令

git rm -r –cached 要删除的文件名或目录,如:

1
git rm -r --cached .idea #--cached 只删远程仓库的文件,不会删除本地的

2.提交操作记录描述

1
git commit -m '删除XX文件'

3.推送到远程仓库

1
git push -u origin <branch_name>