python3学习手册
Appearance → 选 中 Show whitespaces ★不进行拼写检查 File → Se�ngs → Editor → Inspec�ons → Proofreading → Type 取消勾选 ★设置项目的python解释器 File → Se�ngs → Project: xxx →Python Interpreter → 右 侧 选 择 目 标 python解释器 #a和b中不同时存在的元素 ★判断变量类型 type(x) #返回x的类型,如isinstance(x, int) #返回True或False type()不会 认为子类是父类的一种类型 isinstance(x,int)会认为子类是父类的一种类型 ★类型转换 map(type, listxx) 将字符串str型list转为int型list �tle() #将每单词首字母大写 strx.swapcase() #全部大小写翻转,互换 strx.replace("old", "new") #把strx中的old替换成new strx.rstrip() #过滤掉换行符及行尾的所有空白符 strx.lstrip() #过滤掉行首的所有空白符 0 码力 | 213 页 | 3.53 MB | 1 年前3The DevOps Handbook
reinforcing those that do3. local learnings are rapidly turned into global improvements, so that new techniques and practices can be used by the entire organization iii. ENABLING ORGANIZATIONAL LEARNING SYSTEMS OF RECORD AND SYSTEMS OF ENGAGEMENT i. Gartner Bi-modal IT 1. Type 1 – System of Record – “Doing it right” 2. Type 2 – System of Engagement – “Doing it fast” ii. DevOps helps reject the bi-modal transformation teams that are able to operate outside the rest of the organization 1. Enables the forming of new institutional learning 2. Enables experimentation with less impact d. AGREE ON A SHARED GOAL i.0 码力 | 8 页 | 22.57 KB | 5 月前3k8s操作手册 2.3
io/v1beta2 cer�ficatesDir: /etc/kubernetes/pki clusterName: kubernetes controllerManager: {} dns: type: CoreDNS etcd: local: dataDir: /var/lib/etcd imageRepository: cof-lee.com:5443/k8s kind: ClusterConfigura�on /etc/kubernetes/pki clusterName: kubernetes controlPlaneEndpoint: "10.99.1.54:6443" controllerManager: {} dns: type: CoreDNS etcd: local: dataDir: /var/lib/etcd imageRepository: cof-lee.com:5443/k8s kind: ClusterConfigura�on port/servce port转发到此node上的pod里) ExternalName 将服务映射到集群外部的某个资源,要求v1.7及以上版本 例: kind: Service spec: type: NodePort ports: - port: 443 # service ip 的port targetPort: 84430 码力 | 126 页 | 4.33 MB | 1 年前3The Phoenix Project
It's Tuesday morning and on his drive into the office, Bill gets a call from the CEO. The company's new IT initiative, code named Phoenix Project, is critical to the future of Parts Unlimited, but the project “What can displace planned work? Unplanned work. That’s why Erik called it the most destructive type of work. It’s not really work at all, like the others. The others are what you planned on doing, have what I need. It’s why I’ve stopped even putting in change requests.” “I have to manually type in hundreds of server names in one of the text boxes. Most of the time, there’s not enough room in0 码力 | 3 页 | 154.45 KB | 5 月前3The DevOps Handbook
built ii. Generate graphs with overlays of production changes iii. Tools – StatsD, JMX, codahale, New Relic, Prometheus, etc. f. CREATE SELF-SERVICE ACCESS TO TELEMETRY AND INFORMATION RADIATORS i. Director of Production Engineering) iii. Find the proper balance between fixing production issues and new features development – feature is only “done” when it’s performing as expected in production c. you have someone review your change? Do you know who the best person to ask is for changes of this type? Did you do everything you absolutely could to assure yourself that this change operates in production0 码力 | 8 页 | 24.02 KB | 5 月前3postgresql操作手册
为 pg_catalg 的 schema 下 的 pg_hba_file_rules表里: INSERT INTO "pg_hba_file_rules" ("line_number", "type", "database", "user_name", "address", "netmask", "auth_method", "options", "error") VALUES (94, 'host' # -d指定数据库,默认连接的数据库名同用户名 Password for user postgres: #输入密码 psql (13.13) Type "help" for help. postgres=# #提示符#前的postgres表示当前数据库名 postgres=# #查看表结构 Table "public.tablexx" Column | Type | Colla�on | Nullable | Default --------+-----------------------+-----------+----------+---------0 码力 | 17 页 | 445.84 KB | 1 年前3The DevOps Handbook
environments (Prod, pre-prod(s), dev, & new) iv. Immutable Infrastructure 1. Once created no changes are allowed 2. Changes must be put into version control and then new infrastructure is created 3. To add” 2. Ensure the tests pass – “Write the functional code until the test passes”3. “Refactor both new and old code to make it well structured” j. AUTOMATE AS MANY OF OUR MANUAL TESTS AS POSSIBLE i. Reduce the build in a green state ii. When a change causes the build or automated tests to fail: 1. No new work is allowed to enter the system until the problem is fixed. 2. Bring in whatever help is needed0 码力 | 8 页 | 23.08 KB | 5 月前3git 操作手册
master No commits yet Changes to be commi�ed: (use "git rm --cached..." to unstage) new file: main.py #暂存区有了一个新的文件:main.py # git commit -m "msgxxx" #将暂存区提交到仓库区(commit为提交操作),- #删除指定的tag # git push rmtRepo --delete v1.2 #删除远程tag # git tag new-tag old-tag #基于原有的old-tag创建新tag(可用于重命名,生 成新tag后,再删除旧的tag) ★git远程协作开发 远程协作的基本流程: ① 为/etc/gitlab/ini�al_root_password文件里的密码 h�ps://x.x.x.x/ 登录后,修改密码 ★关闭用户申请创建账号的功能 关闭“New naviga�on” 关闭后,左上角出现三道杠,右上角出现用户头像,点击左上角的三道杠 点击“Admin” 或者浏览器直接输入: h�ps://x.x.x.x/admin 取消勾选“Sign-up 0 码力 | 35 页 | 1.69 MB | 1 年前3DoD CIO Enterprise DevSecOps Reference Design - Summary
production: the average time it takes from when new software features are required until they are running in production. Average lead-time: how long it takes for a new requirement to be delivered and deployed deployed. Deployment speed: how fast a new version of the application can be deployed into the production environment. Deployment frequency: how often a new release can be deployed into the production environment0 码力 | 8 页 | 3.38 MB | 5 月前3A Seat at the Table - IT Leadership in the Age of Agility
incrementally modernize a legacy system as defined by Martin Fowler. Instead of building an entirely new system, we take a small piece of the legacy system and rebuild it in a way that lets it interoperate strangler pattern, we would develop a new system on the modernized architecture and then move the users over to it. The problem is that the users cannot begin using the new system until its capabilities at least match those of the legacy system. Because this usually takes a while, the first release of the new system doesn’t come for quite some time, which works against the Agile principle of delivering value0 码力 | 4 页 | 379.23 KB | 5 月前3
共 18 条
- 1
- 2