2023年1月23日

终端设置代理

摘要: cmd set http_proxy=http://127.0.0.1:10811 set https_proxy=http://127.0.0.1:10811 bash function on_proxy() { export no_proxy="localhost,127.0.0.1,local 阅读全文

posted @ 2023-01-23 15:49 lxxd 阅读(134) 评论(0) 推荐(0)

npm mirror

摘要: 1. 腾讯 npm config set registry http://mirrors.cloud.tencent.com/npm/ 2. 华为 npm config set registry https://mirrors.huaweicloud.com/repository/npm/ 3. 默 阅读全文

posted @ 2023-01-23 15:49 lxxd 阅读(140) 评论(0) 推荐(0)

2022年12月9日

一键安装cuda

摘要: https://developer.nvidia.com/cuda-downloads 阅读全文

posted @ 2022-12-09 13:27 lxxd 阅读(42) 评论(0) 推荐(0)

2022年10月18日

nohup后台运行

摘要: nohup xxxxx > run.log 2>&1 & 阅读全文

posted @ 2022-10-18 16:36 lxxd 阅读(20) 评论(0) 推荐(0)

2022年10月5日

Centos 7,8 更换源

摘要: cd /etc/yum.repos.d/# 对于 CentOS 7 sudo sed -e 's|^mirrorlist=|#mirrorlist=|g' \ -e 's|^#baseurl=http://mirror.centos.org|baseurl=https://mirrors.tuna. 阅读全文

posted @ 2022-10-05 17:02 lxxd 阅读(113) 评论(0) 推荐(0)

ssh反向代理

摘要: ssh -L 8080:127.0.0.1:8080 root@x.x.x.x将x.x.x.x的8080映射到本地 ssh -CNfL a_port:c_ip:c_port b_user@b_ip 阅读全文

posted @ 2022-10-05 16:57 lxxd 阅读(85) 评论(0) 推荐(0)

2022年9月28日

git 代理

摘要: http代理 git config --global https.proxy http://127.0.0.1:10800 git config --global https.proxy https://127.0.0.1:10800 socks5代理 git config --global htt 阅读全文

posted @ 2022-09-28 08:49 lxxd 阅读(28) 评论(0) 推荐(0)

2022年9月3日

Python环境安装及配置

摘要: 下载miniconda https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/ 配置pip 升级pip: python -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -- 阅读全文

posted @ 2022-09-03 11:27 lxxd 阅读(55) 评论(0) 推荐(0)

2018年8月26日

leetcode-445. 两数相加 II

摘要: 给定两个非空链表来代表两个非负整数。数字最高位位于链表开始位置。它们的每个节点只存储单个数字。将这两数相加会返回一个新的链表。 你可以假设除了数字 0 之外,这两个数字都不会以零开头。 进阶: 如果输入链表不能修改该如何处理?换句话说,你不能对列表中的节点进行翻转。 示例: 输入: (7 -> 2 阅读全文

posted @ 2018-08-26 17:11 lxxd 阅读(372) 评论(0) 推荐(0)

leetcode-2. 两数相加

摘要: 给定两个非空链表来表示两个非负整数。位数按照逆序方式存储,它们的每个节点只存储单个数字。将两数相加返回一个新的链表。 你可以假设除了数字 0 之外,这两个数字都不会以零开头。 示例: 输入:(2 -> 4 -> 3) + (5 -> 6 -> 4) 输出:7 -> 0 -> 8 原因:342 + 4 阅读全文

posted @ 2018-08-26 17:06 lxxd 阅读(107) 评论(0) 推荐(0)

导航