字符串扩展 字符串的三种定义试式: 单引号定义法,双引号定义法,三引号定义法 # 单引号定义法 name = 'tang' print(type(name), name) # 双引号定义法 nam […]
标识符 用户编写代码时,对变量、类、方法等编写的名字,叫做标识符 标识符 必须区分大小写,不能是关键字,不能以数字开头,不能包含空格、制表符、数学符号、中划线、箭头等 推荐命名:见名知意,全部小写,单词之间用下划线_ […]
注释及变量 单行注释: 以#开头,#右边的所有文字当作说明,而不是真正要执行的程序,起辅助说明作用 # 我是单行注释 注意:#号和注释内容一般建议以一个空格隔开 多行注释: 以一对三个双引号 引起来("&q […]
Vs Code 快捷方式 如何进入多光标的批量操作模式 Alt + 鼠标左键(手动添加多个光标) 按住 Alt 键后,在哪里点击鼠标左键就会增加一个光标,在原本就有光标的位置点击鼠标左键,是取消当前这个光标 Ctrl […]
RGB对照表: https://tool.oschina.net/commons?type=3 HTTP Content-type: https://tool.oschina.net/commons HTML转义字符 […]
helm repo add gitlab-jh https://charts.gitlab.cn 或 helm repo add gitlab https://charts.gitlab.io helm search […]
# https://docs.gitlab.com/ee/development/cicd/templates.html # https://gitlab.com/gitlab-org/gitlab/-/blob/m […]
jenkins helm repo add jenkins https://charts.jenkins.io helm install jenkins jenkins/jenkins -f values.yaml […]
NGINX Ingress Controller helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx helm pull in […]
# values 试例 cat > istio-values.yaml << EOF prometheus: enabled: true # enabled: true # tolerations: […]
Ansible ldap_entry 模块 # ansible-vault简介 # ansible vault是 ansible的组件,可以加密解密 ansible使用的数据。 # 编辑配置文件 vim /etc/a […]
Ansible常用命令及操作 一、安装 yum install -y ansible 二、命令补全 ansible 2.9版本以上 # yum -y install python-argcomplete #或者任何系 […]
ldapsearch -x -H ldap://127.0.0.1:1389 -b dc=vimll,dc=com -D "cn=admin,dc=vimll,dc=com" -w Tang@12 […]
# helm repo add helm-openldap https://jp-gouin.github.io/helm-openldap/ # helm install my-release helm-openl […]
yum install -y install openldap-clients sssd sssd-client sssd-ldap sssd-tools authconfig nss-pam-ldapd oddjo […]