- 博客(13)
- 收藏
- 关注
原创 Drone plugin开发
Drone plugin1. 简介Drone plugin 是特殊的Docker容器,其中封装了执行特定任务的一段程序,可以使用来自Drone环境变量和.drone.yaml中的配置参数。Environment VariablesWrite a plugin in BashWrite a plugin in Go在.drone.yaml中配置传递给容器的参数,这些参数作为环境变量传...
2020-01-14 17:08:11
1198
原创 Drone的一些使用
Drone的一些使用文章目录Drone的一些使用1. CLI Reference1.1 Configuration2. secret2.1 可以在repo界面添加2.2 通过CLI工具加密2.3 通过CLI工具添加到repo2.4 用于SSH Pipeline中的server配置2.5用于environment中的变量3. docker-in-docker4. 跳过CI构建1. CLI Ref...
2020-01-14 17:05:05
2125
原创 Git自定义子命令
Git subcommands are standalone executables that live in the Git exec path, normally /usr/lib/git-core. The git executable itself is a thin wrapper that knows where the subcommands live, and runs the...
2020-01-13 20:00:25
389
原创 关于命令行参数中的引号会被bash去掉的问题
最初的想法是接受命令行参数,稍作处理后交由其他程序处理,但是bash会将命令行参数中的引号去掉:问题描述:shell解析命令行参数后(去掉引号)再传递给CLI程序见:有关 Python 获取命令行参数中单引号的问题比如:git config --global filter.lfs.smudge "git-lfs smudge -- %f"# 程序收到的:git config -...
2020-01-13 19:51:10
3542
原创 Python CLI开发
click组嵌套和分割参考: [How can I split my Click commands, each with a set of sub-commands, into multiple files?](https://stackoverflow.com/questions/34643620/how-can-i-split-my-click-commands-each-with-a-s...
2020-01-13 11:56:22
508
原创 【Gitea】Git LFS push中断的问题(issue摘录)
由于Git服务器发送的token会在一定时间内过期,但并没有向Git LFS说明这一点:根据:git lfs authentication fails with error 401 after 30 minutes of inactivity when uploading very big file #3012”……GitLab is sending you an authenticatio...
2020-01-13 11:05:24
2584
原创 Git LFS笔记(文档、博客、issue摘录)
Git LFS文章目录Git LFS1. What is Git LFS?1.1 Creating a new Git LFS repository1.2 Cloning an existing Git LFS repository1.3 Speeding up clones1.4 Pulling and checking out1.5 Speeding up pulls1.6 Tracking...
2020-01-03 17:14:25
4289
原创 CI搭建:MySQL、registry、Jenkins、gogs、gitea、Drone
CI搭建:MySQL、registry、Jenkins、gogs、gitea、Drone文章目录CI搭建:MySQL、registry、Jenkins、gogs、gitea、DroneMySQL私有仓库jenkinsgogsgiteaDrone参考MySQL以下参考:docker安装mysql创建网络:docker create network backend为什么要创建网...
2020-01-03 11:40:40
846
原创 docker-compose搭建Gitea+Drone
生成secret用于Drone runners和server的通信:openssl rand -hex 164af3a6ee506d2a06273f3583224983e0docker-compose.yml:version: "3.7"services: registry: image: registry:latest ...
2020-01-03 11:37:29
1837
原创 环境搭建:docker + nvidia-docker 深度学习框架(GPU)
docker + nvidia-docker 深度学习框架(GPU)文章目录docker + nvidia-docker 深度学习框架(GPU)1. Docker CE2. nvidia-docker1.1 CUDA Toolkit (非必须,可只安装nvidia driver)2.2 nvidia driver2.3 nvidia-docker v22.4 nvidia-container-r...
2019-10-13 17:50:48
1863
原创 python3 爬虫新手笔记(三):资讯类网页爬取
文章目录python3 爬虫新手笔记(三):资讯类网页爬取一. dapp.tech网站举例python3 爬虫新手笔记(三):资讯类网页爬取一. dapp.tech网站举例新闻资讯类的网页内存在文本和图片(超链接),爬取其中标题、文本、图片、类别等信息。文本和图片可以分别提取和存储。出于一种瞎折腾的想法,在不下载和存储图片本身的前提下,我打算一起提取文本和图片,使图片的描述和超链接依然镶嵌在...
2019-03-13 12:54:42
414
原创 python3 爬虫新手笔记(二):PRAW、API爬取Reddit
文章目录python3 爬虫新手笔记(二):PRAW、API爬取Reddit一. Reddit1. 前期准备2. 表结构3. 实现3.1 API包装器PRAW3.2 直接通过API(仅测试)参考python3 爬虫新手笔记(二):PRAW、API爬取Reddit一. Reddit1. 前期准备API · Reddit 阅读说明OAuth2 · Reddit create a ...
2019-03-13 09:44:25
7801
10
原创 python3 爬虫新手笔记(一):Beautiful Soup、Scrapy尝试
文章目录python3 爬虫新手笔记(一):Beautiful Soup、Scrapy尝试一. python爬虫架构二. Beautiful Soup 介绍三. Scrapy 介绍1. 编写Spider2. Selectors选择器3. 将数据保存到MySQL4. Scrapy中的去重5. 遇到的问题参考python3 爬虫新手笔记(一):Beautiful Soup、Scrap...
2019-03-08 10:37:02
3570
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人