去除 __FILE__ 宏定义中的路径信息 发表于 2025-02-15 分类于 daily 通过编译选项去除路径信息:makefile可以增加以下编译选项:123-U__FILE__ -D__FILE__='"$(notdir $<)"' -Wno-builtin-macro-redefined或者-U__FILE__ -D__FILE__='"$(subst ($dir $<),,$<)"' -Wno-builtin-macro-redefined 阅读全文 »
DB2导出表数据 发表于 2024-05-11 分类于 daily DB2导出表数据使用DB2命令行导出打开命令行界面,登录DB2数据库1db2 connect to <database> 阅读全文 »
Google Chrome缓存路径修改 发表于 2024-05-04 分类于 google , chrome Chrome浏览器的默认缓存路径一般是:C:\Users\用户名\AppData\Local\Google\Chrome\User Data\Default\Cache 阅读全文 »
python的operator模块 发表于 2024-04-20 分类于 python , note 模块简介operator提供了和算术运算符一样高效的方法。PS:该模块存粹是为了写C语言这种纯函数编程的代码,实用性仅仅在与map(),sorted()这些函数里面。实际没什么用 阅读全文 »
python中return和yield 发表于 2022-10-17 分类于 python , note return语句在函数中,return语句就意味着整个函数的终止并返回一个值,返回之后函数就不继续往下执行了 yield语句而在函数中,如果是通过yield语句返回,那么yield会返回一个值,返回之后函数还可以继续往下执行 阅读全文 »
certbot免费https证书 发表于 2022-05-20 分类于 daily 安装certbot(ubuntu 22.04 LTS)1sudo apt install certbot 获取证书12345sudo certbot certonly --standalone -d example.com --agree-tos --email youremail@example.com# -d example.com(需加密域名) 可多个-d参数# --email youremail@example.com(可用邮箱)# --agree-tos 同意服务协议 阅读全文 »
git上传拉取大文件 发表于 2022-05-19 分类于 daily 安装 git-lfs123#linux(Windows下载对应软件安装即可)sudo apt-get install git-lfsgit lfs install 阅读全文 »
公私钥免密连接git仓库 发表于 2022-05-19 分类于 daily ssh-keyLinux生成公私钥: 12345ssh-keygen -t rsa -C 'youremail@example.com' -f ~/.ssh/github_id_rsa一直回车生成ssh-key'youremail@example.com' 改为自己的邮箱地址-f 指定文件名路径 #可以省略,默认生成文件名 ~/.ssh/id_rsa 阅读全文 »