gitlab+jenkins

Read More

如何通过代理让Docker拉取国外镜像

第一步:建立 SSH SOCKS5 代理隧道ssh -f -N -D 1080 your_username@your-server-ip -f:后台运行-N:不执行远程命令-D 1080:本地开启 SOCKS5 代理 验证: curl --socks5-hostname 127.0.0.1:1080 https://ifconfig.me 应返回 xxx.x...

Read More

node-saas

gyp: Undefined variable standalone_static_library in binding.gyp while trying to load binding.gypgyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1gyp ER...

Read More

vim 操作集锦

选中多行移动 选中多行按tab移动 ctrl + v 上下方向键(或者j & k )移动选中多行shift + > & < 移动

Read More

使用cloud-init初始化云主机密码

一句话简述过程:生成随机密码文件(user-data),利用genisoimage合成iso文件,把iso作为cdrom挂载到虚拟机(修改虚拟机配置文件) 在基座镜像里面安装yum install cloud-init && systemctl enable cloud-init cloud-init clean 清除cloud-init...

Read More

wps-ppt 表格插入斜线

Read More

基于cgofuse的跨平台文件系统

本文选取go库cgofuse举例,cgofuse是golang 对fuse以及windows 底层文件系统的封装,跨windows 、linux、ios很多开源的 云平台对象存储 挂载客户端 也是基于此库把元数据放在内里面就是基于内存的文件系统把元数据放在数据库里面,则可以打造一个对象存储 & 文件系统的系统文件系统挂载对象 type FileSys...

Read More

服务器安全

最近hw, 一些关于安全的限制 iptables -A OUTPUT -p tcp --dport 22 -j REJECT 这样可以限制跳转 登陆其他机器 myname:x:1000:1000::/home/myname:x:/sbin/nologin 限制 其他用户 ssh登陆 把PasswordAuthentication yes改为Pass...

Read More

域名解析并替换dns服务器

在namesilo(https://www.namesilo.com/),namesilo主打便宜 免备案,国内需要备案上购买域名后, 点击域名管理进入这个页面 修改域名解析服务器,在这里修改为cloudflare,cloudflare提供免费的namerserver,域名解析,cdn 注册cloudflare,找到nameserver

Read More

大模型微调

from datasets import load_dataset, DatasetDictimport osos.environ["CUDA_VISIBLE_DEVICES"] = "5, 7"ds_train = load_dataset("/home/ysman/dataset/codeparrot-d...

Read More