python3学习手册串导入解析为字典数据 with open("data.json", "w", encoding="utf8") as fp: json.dump(dictx, fp, indent=4) # 将字典数据格 式化为json字符串后写入到文件中 with open("data.json", "r", encoding="utf8") as fp: data = json.load(fp) load(fp) # 读取文件中的json字符串 后生成字典数据(文件中只可有一个json对象) print(data) ★getpass模块 import getpass cusername = getpass.getuser() # 获取当前用户 名 passwd = getpass.getpass("请输入密码:") # 获取用户输入密 "application/json;charset=utf8" } mydata = "dddd" response = requests.post(myurl, headers=myheaders, data=mydata, verify=False) response.encoding = "utf-8" # 指定返回数据的文本编码 ★selenium(浏览器url操作) #0 码力 | 213 页 | 3.53 MB | 1 年前3
k8s操作手册 2.3docker # docker info ★配置docker服务使用systemd去管理(以及信任本地镜像仓库) # vi /etc/docker/daemon.json { "data-root": "/docker_data", "registry-mirrors": [ "h�ps://cof-lee.com:5443" ], "insecure-registries": [ "cof-lee /etc/docker/daemon.json <data-root": "/docker_data", "registry-mirrors": [ "h�ps://cof-lee.com:5443" ], "insecure-registries": [ "cof-lee #查看k8s其他组件的docker镜像名,默认用 k8s.gcr.io/的镜像源地址 k8s.gcr.io/kube-apiserver:v1.19.4 k8s.gcr.io/kube-controller-manager:v1.19.4 k8s.gcr.io/kube-scheduler:v1.19.4 k8s.gcr.io/kube-proxy:v1.19.4 k8s.gcr.io/pause:3.2 k8s 0 码力 | 126 页 | 4.33 MB | 1 年前3
A Seat at the Table - IT Leadership in the Age of Agilityrevenue, cost reduction, sustained competitive advantage, employee happiness, and innovation. Manager of Uncertainty: Agile and Lean thinking give IT powerful ways to manage uncertainty. By establishing stewarding three critical assets: the Enterprise Architecture asset, the IT people asset, and the data asset. These three assets represent the capabilities of the company and its ability to address the they will tend to know best how to accomplish the objectives they are given. The best thing that a manager can do is to help the team do what it knows how to do by removing impediments. Tell the team what0 码力 | 7 页 | 387.48 KB | 5 月前3
The DevOps Handbookproblem-solving. ii. Telemetry – An automated communications process by which measurements and other data are collected at remote points and are subsequently transmitted to receiving equipment for monitoring development. Operations don’t just monitor what’s up or down. ii. Modern Monitoring architecture 1. Data Collection at business logic, application, & environments layer a. Events, logs, & metrics b. Common 1. Authentication/authorization decisions 2. System and data access 3. System and application changes, especially privileged changes 4. Data changes (CRUD) 5. Invalid input, possible malicious injections0 码力 | 8 页 | 24.02 KB | 5 月前3
The DevOps Handbooksecuring systems and data vi. Release Managers – the people responsible for coordinating the production deployment processes vii. Technology executives or value stream manager – in Lean, someone who PLANNING HORIZONS SHORT i. Act like a startup, strive to generate measurable improvement or actionable data within weeks f. RESERVE 20% OF CYCLES FOR NON-FUNCTIONAL REQUIREMENTS AND REDUCING TECHNICAL DEBT0 码力 | 8 页 | 22.57 KB | 5 月前3
The Phoenix ProjectThe Phoenix Project - Book Review Plot Summary [1] Bill is an IT manager at Parts Unlimited. It's Tuesday morning and on his drive into the office, Bill gets a call from the CEO. The company's new0 码力 | 3 页 | 154.45 KB | 5 月前3
postgresql操作手册sql/13/ 现在想修改为/data_pg/ 目录 ★PG-13版本 # systemctl stop postgresql-13 #先停止服务 # mkdir /data_pg # chown postgres:postgres /data_pg # vi /var/lib/pgsql/13/data/postgresql.conf #pg-13版本,添加或修改以下配 置 data_directory = '/data_pg/data/' # mv /var/lib/pgsql/13/* /data_pg/ #将原数据目录下所有内容移动到新 数据目录下 # vi /usr/lib/systemd/system/postgresql-13.service #pg-13版本,修改systemd服 #pg-13版本,修改systemd服 务文件,指定数据目录 #修改这行:Environment=PGDATA=/var/lib/pgsql/13/data/ 改为新的路径,如 下: Environment=PGDATA=/data_pg/data/ # systemctl daemon-reload # systemctl restart postgresql-13 ★PG-10版本0 码力 | 17 页 | 445.84 KB | 1 年前3
git 操作手册'h�ps://gitlab.cof-lee.com' #设置数据存放路径,默认 /var/opt/gitlab/git-data/repositories git_data_dirs({ "default" => { "path" => "/git-data" } }) #设置备份存放路径及备份默认保存时间,默认 /var/opt/gitlab/backups/ gitlab cof-lee.com.crt" nginx['ssl_cer�ficate_key'] = "/etc/gitlab/gitlab.cof-lee.com.key" EOF # mkdir /git-data # mkdir /git-backup #将证书及密钥文件复制到/etc/gitlab目录下 # gitlab-ctl reconfigure #重0 码力 | 35 页 | 1.69 MB | 1 年前3
The DevOps HandbookOperations to improve outcomes 2. Ch. 9 – Create the Foundations of Our Deployment Pipeline a. Enterprise Data Warehouse program by Em Campbell-Pretty - $200M, All streams of work were significantly behind schedule Application code & dependencies 2. Environment scripts & creation tools 3. DB scripts and reference data 4. Containers 5. Automated tests 6. Project artifacts – documentation, procedures, etc. 7. Application Smoke testing our deployments – test connections to supporting services and systems, run sample data/transaction tests, fail deployment if needed 3. Ensure we maintain consistent environments – continually0 码力 | 8 页 | 23.08 KB | 5 月前3
The DevOps Handbookknown vulnerabilities and consolidate multiple versions of the same library iii. 2014 Verizon PCI Data Breach Investigation Report – studies over 85K cardholder breaches. 10 vulnerabilities accounted environments with infrastructure-as-code and auto- scaling. Must create alternatives methods of providing the data to show auditors controls are in place and operating. 1. Work closely to identify the evidence needed0 码力 | 9 页 | 25.13 KB | 5 月前3
共 12 条
- 1
- 2













