Cane

Cane

【Docker】Compose 安装 gogs 并设置 nginx 反向代理

前言 Gogs Github Page Introduce 步骤 Gogs gogs.yaml version: "3.5" services: gogs: image: gogs/gogs container_name: gogs restart: always

【Linux】Ubuntu安装OpenResty

前言 安装环境: Ubuntu 18.04.3 LTS 参考文献:各Linux发行版OpenResty安装介绍 安装 # 安装导入 GPG 公钥时所需的几个依赖包(整个安装过程完成后可以随时删除它们): sudo apt-get -y install --no-install-recommends

【Linux】Cron表达式

介绍 Cron 表达式是一个具有时间含义的字符串,格式为 「秒数」 「分钟」 「小时」 「日期」 「月份」 「星期」 「年份」(可为空) 中间以空格分个,最后一个代表年份的域非必须,可省略。 语法

【Mac】iTerm2 + ohmyzsh 打造完美终端

下载 item2:下载地址 ohmyzsh: 下载地址 zsh-autosuggestions: 下载地址 zsh-syntax-highlighting:

【Linux】Elasticsearch数据迁移

## 方法一:通过 NPM 安装 下载 && 安装 wget https://nodejs.org/dist/v10.15.0/node-v10.15.0-linux-x64.tar.xz tar -xf node-v10.15.0-linux-x64.tar.xz 配置环境变量 vim /etc/

【Linux】Elasticsearch删除索引

1. 删除单条索引 curl curl -XDELETE http://localhost:9200/index_name python import requests requests.delete('http://localhost:9200/index_name') 2. 删除所有索引 cu

【Problem】Git报错,解决 Unable to negotiate with **** port 22: no matching host key type found.

问题描述 Git SSH 已经添加密钥,仓库地址无误,但是 Push 的时候报错 提示 Unable to negotiate with **** port 22: no matching host key type found. Their offer: ssh-rsa 截图 ... 解决方案 在

【Python】搭建私有pypi仓库

一、介绍 利用 pypi-server 搭建私有的 pypi 仓库 Github 地址 DockerHub 地址 二、搭建 1. 拉取镜像 docker pull pypiserver/pypiserver

【Python】打包发布流程

一、目录结构 . ├── myapp │ └── __init__.py └── setup.py 注: myapp 里面是存放源码的文件夹,里面必须有一个 __init__.py 文件 二、setup.py from setuptools import setup setup( name

【PyCharm】将Teminal设置为cmder

1. 在系统属性里面配置环境变量,将cmder.exe所在文件路径添加至path里 2. 新建一个 CMDER_ROOT 变量,值为 cmder 目录 3. 将 %CMDER_ROOT% 加到系统 path 中