python3学习手册
匹配除了换行符\n之外的所有字 符,加上s修饰后,.点号包含换行符 re.S re.search() 匹配整个字符串,直到找到一个匹配,只返回匹配上的第 一个匹配对象 import re str = "net Net fldskajfl jfsd lfjasd lfj asdkfl sl x" ret = re.search(r"et", str, flags=re.I) #在str里搜索 et,返 点号匹 配换行符 ret.span() 为一个tuple,匹配的起始字符index及终止字符index,含起 始,不含终止 ret.group() 为匹配的一个群,一个匹配内容字符串 也可用ret.start()和ret.end()方法获取匹配到的起始位置及结束位置(含 起始,不含结束) re.findall(正则表达式, 要搜索的字符串, flags=修饰符) #返回所有的匹 配字符串- ,元素为匹配的字符串 run_pending() time.sleep(1) # 启动调度器线程 thread = threading.Thread(target=scheduler_thread) thread.start() schedule.run_all() # 立即运行所有作业 schedule.run_all(delay_seconds=10) # 立即运行所有作业,每次 作业间隔10秒 all_jobs
0 码力 | 213 页 | 3.53 MB | 1 年前3postgresql操作手册
版本的软件包 # postgresql-setup --initdb --unit postgresql # systemctl enable postgresql # systemctl start postgresql 如果想安装其他版本,可到官网查询安装方法 h�ps://www.postgresql.org/download/linux/redhat/ 本文档选择PG-13版本 postgresql-13 # systemctl start postgresql-13 ★第2章、设置数据存储路径 PostgreSQL 初始化数据库之后, 10版本的默认的数据目录是/var/lib/pgsql/ 13版本的默认的数据目录是/var/lib/pgsql/13/ 现在想修改为/data_pg/ 目录 ★PG-13版本 # systemctl stop postgresql-13 pg/data/ # systemctl daemon-reload # systemctl restart postgresql-13 ★PG-10版本 # systemctl stop postgresql #先停止服务 # mkdir /data_pg # chown postgres:postgres /data_pg # vi0 码力 | 17 页 | 445.84 KB | 1 年前3Velocity Conference 2015
Service Workers: The Practical Bits by Patrick Meenan (Google) @patmeenan http://www.slideshare.net/patrickmeenan/service-workers-for-performance They are effectively a man in the middle for your Practices Together to Create the Perfect SPA by Chris Love (Love2Dev) @ChrisLove http://www.slideshare.net/docluv/putting-performance-best-practices-together-for-a-spa "We have created the web in our own the heck do you start?) by Tammy Everts & Cliff Crocker (SOASTA) @tameverts @cliffcrocker http://www.slideshare.net/CloudTest/metrics-metrics-everywhere-but-where-the-heck-do-you-start The myth of the0 码力 | 4 页 | 176.79 KB | 5 月前3k8s操作手册 2.3
⑥NTP服务需要开启,使用集群内的ntp server,确保集群时间的一致性 # yum install chrony -y # systemctl enable chronyd # systemctl start chronyd # cat > /etc/chrony.conf <> /etc/sysctl.conf < net.bridge.bridge-nf-call-ip6tables = 1 net.bridge.bridge-nf-call-iptables = 1 net.bridge.bridge-nf-call-arptables = 1 net.ipv4.ip_forward = 1 EOF #前3行表示bridge设备 containerd.io -y #k8s v1.23支持的docker 最新版本为20.10.x # systemctl enable docker # systemctl start docker # docker info ★配置docker服务使用systemd去管理(以及信任本地镜像仓库) # vi /etc/docker/daemon.json { "data-root": 0 码力 | 126 页 | 4.33 MB | 1 年前3git 操作手册
5.0 ★首先gitlab服务器要安装ntp时间服务 # yum install chrony -y # systemctl enable chronyd # systemctl start chronyd # vi /etc/chrony.conf server 10.99.1.1 iburst prefer #配置集群可访问的ntp服务器 ng= # gitlab-ctl status #查看gitlab状态 # gitlab-ctl start #启动 # gitlab-ctl stop #停止 # gitlab-ctl restart #重启0 码力 | 35 页 | 1.69 MB | 1 年前3The DevOps Handbook
value stream is a working application, not just working people iv. Later stages may not necessarily stop all new work as long as responsibility for immediately resolving the issue is addressed v. Changing0 码力 | 8 页 | 23.08 KB | 5 月前3The DevOps Handbook
What is your expected outcome? h. When can we check? 6. PART II—WHERE TO START 47 7. Ch. 5 Selecting Which Value Stream to Start With 51 a. GREENFIELD vs BROWNFIELD SERVICES i. DevOps is not just for Engagement – “Doing it fast” ii. DevOps helps reject the bi-modal IT model and lets you do both c. START WITH THE MOST SYMPATHETIC AND INNOVATION GROUPS i. Chrossing the Chasm ii. Find the innovators and courage, especially in corporate envrionments where people are scared and fight you. But if you start small, you really have nothing to fear. Any Leader needs to be brave enough to allocate teams to0 码力 | 8 页 | 22.57 KB | 5 月前3The DevOps Handbook
allow fear of punishment or retribution creep in due to words or behaviors – find a facilitator to start 3. Explicitly disallow the phrases “would have” or “could have” a. These are counterfactual statements products to measure themselves against 2. Provide Test Certified Mentors and Test Mercenaries to kick start testing efforts – Part 6: The Technical Practices of Integrating Information Security, Change Management0 码力 | 9 页 | 25.13 KB | 5 月前3Government Excerpt
we encourage transparency, priori- ties, and accountability? You know the answer: Scrum. Let’s start a few thousand miles west of Washington, D.C., in the Washington state capital, Olympia. There,0 码力 | 3 页 | 414.99 KB | 5 月前3DevOps Meetup
define a primary purpose and measure it. Do process map. Do focus on Quality first. Do start a book club. Book List Scaling Lean & Agile Development: Thinking & Organizational Tools for0 码力 | 2 页 | 246.04 KB | 5 月前3
共 15 条
- 1
- 2