分类 Share 下的文章

Centos无图形化界面使用无线网络


1. 确认无线网卡首先,确认无线网卡的名称。可以使用以下命令查看网络接口:nmcli device找到状态为 “wifi” 的设备,通常名称类似于 wlan0 或 wlp2s0。[fmujie@fmujie-desktop Cloudreve]$ nmcli device DEVICE TYPE STATE CONNECTION wlp2s0 wifi 已连接 fmujie_desk_1 p2p-dev-wlp2s0 wifi-p2p 已断开 -- enp1s0 ethernet 不可用 -- lo loopback 未托管 -- 如果为不可用的状态:DEVICE TYPE ...

Git创建本地分支并推送至远程仓库建立关联


老是忘,记一下吧创建 git 仓库:mkdir xxx cd xxx git init touch README.md git add README.md git commit -m "first commit" git remote add origin https://gitee.com/fmujie/xxxx.git git push -u origin "master"已有仓库,只需与远程建立连接cd existing_git_repo git remote add origin https://gitee.com/fmujie/xxx.git git push -u origin "master"以下参考自:Git本地创建分支并推送到远程 - 简书 (jianshu.com)1. 创建本地...

WAMP&Laravel:cURL error 60: SSL certificate problem: unable to get local issuer certificate


WAMP&Laravel:cURL error 60: SSL certificate problem: unable to get local issuer certificate"message": "cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://api.weixin.qq.com/sns/jscode2session?appid=wxf8b9dbefc889bcaf&secret=3ed00514cbe0a52c6d708a76ba318acd&js_code=0e3zkmFa1Xrd2I0e6lIa...

Python"傻瓜式"处理PPT


业界有一句话,Python除了不能生孩子,其他的都能做。最近处理模型的热图,需要将有无损失函数的图片生成然后放到PPT里去对比,从百十个类别中挑图就很费时间了,调完还需要贴到PPT里,我开始是把每个类别中比较好的图片名记下来,应该当时直接复制到PPT里的,但想着统计一下嘛,后来还得根据类名+图片名从源文件夹中挑,当然,挑了一阵子我感觉不能这么干,还得写个脚本让它自己挑如下:import os import shutil txt_path = "./contrastive.txt" with open(txt_path, 'r', encoding='utf-8') as file: for line in file: print(line.strip()) split_list = line.st...

召唤看板娘