凉城旧巷
Python从入门到自闭,Java从自闭到放弃,数据库从删库到跑路,Linux从rm -rf到完犊子!!!
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 32 下一页
摘要: Git问题:Git clone 时遇到fatal: protocol 'https' is not supported问题解决方案 复现 widows中Git Bash 里执行 clone命令报错protocol ''https'' is not supported 原因 在粘贴地址时使用了 CTR 阅读全文
posted @ 2021-05-12 14:09 凉城旧巷 阅读(4514) 评论(1) 推荐(2) 编辑
摘要: Git CI/CD 一、什么Gitlab CI GitLab CI 是 GitLab 为了提升其在软件开发工程中作用,完善 DevOPS 理念所加入的 CI/CD 基础功能。可以便捷的融入软件开发环节中。通过 GitLab CI 可以定义完善的 CI/CD Pipeline。 优势 GitLab C 阅读全文
posted @ 2021-04-27 10:47 凉城旧巷 阅读(1021) 评论(0) 推荐(1) 编辑
摘要: Golang build失败 使用go mod管理依赖时,build出现问题 复现 $ go build test.go 出现以下错误: test.go:9:8: no required module provides package github.com/Unknwon/goconfig: wor 阅读全文
posted @ 2021-04-16 17:18 凉城旧巷 阅读(6531) 评论(0) 推荐(0) 编辑
摘要: docker启动容器时挂载没有权限问题 复现 centos 7系统 docker run ...... 出现一下错误: docker chown: changing ownership of '/var/lib/XXX': Permission denied 原因 Centos7安全Selinux禁 阅读全文
posted @ 2021-04-13 19:52 凉城旧巷 阅读(1352) 评论(0) 推荐(0) 编辑
摘要: 调用钉钉API发消息 一、自动获取access_token #!/usr/bin/env python # -*- coding: utf-8 -*- # 2017-8-20 钉钉API发送消息 import urllib, urllib2 import requests import json i 阅读全文
posted @ 2021-04-09 11:39 凉城旧巷 阅读(647) 评论(0) 推荐(0) 编辑
摘要: git tag修复bug 1、环境搭建 cd test_tag git init git remote git add a.txt git commit -m "first commit" # 打tag git tag -a v1.0 -m "v1.0版本发布" # 或 git tag v1.0 # 阅读全文
posted @ 2021-04-01 14:08 凉城旧巷 阅读(1129) 评论(0) 推荐(0) 编辑
摘要: linux无法挂载NTFS格式的U盘 Linux和Mac OS X因为某些原因本身不支持读写NTFS文件系统,大多数人平时也不需要与NTFS做数据文件的交互,只是有时候Windows用户应急状态下需要使用大容量移动硬盘拷贝数据,必须实现Linux下挂载NTFS,而Tuxera恰好为Linux和Mac 阅读全文
posted @ 2021-02-07 16:59 凉城旧巷 阅读(919) 评论(0) 推荐(0) 编辑
摘要: subprocess模块 一、python执行命令方法 1、os.system() os.system()的返回值是脚本的退出状态码,0表示成功; 其他均为失败 执行命令出错,并不会影响主进程执行 res = os.system('ls') print(res) # 0 res = os.syste 阅读全文
posted @ 2021-02-05 18:10 凉城旧巷 阅读(893) 评论(0) 推荐(0) 编辑
摘要: linux下读取U盘 一、背景 对于linux server版中,插上U盘,无法直接读数据,需要对U盘进行挂载 二、方案 1、查看是否识别U盘 方式一 sudo fdisk -l 方式二 sudo lsblk -ip # 会列出所有的目录挂载情况 2、挂载U盘 # 在Ubuntu中可以将U盘挂载到/ 阅读全文
posted @ 2021-01-15 15:33 凉城旧巷 阅读(2030) 评论(0) 推荐(0) 编辑
摘要: 解决docker每次都需要输入sudo的权限问题 每次在使用docker命令的时候,都要添加sudo权限,否则就会报 1、输入 $ sudo groupadd docker 回显示`groupadd: group 'docker' already exists 2、将docker账户给与权限 sud 阅读全文
posted @ 2021-01-15 15:05 凉城旧巷 阅读(390) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 32 下一页