Repository navigation
Expand file tree
/
Copy pathdevops_code_cheatsheet.html
More file actions
39 lines (34 loc) · 2.24 KB
/
Copy pathdevops_code_cheatsheet.html
File metadata and controls
39 lines (34 loc) · 2.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DevOps Interview — Python & Bash Cheat Sheet</title>
<link rel="stylesheet" href="assets/css/cheatsheet.css">
</head>
<body>
<a class="home-link" href="index.html">← All guides</a>
<h1>🚀 DevOps Interview — Python & Bash Kit</h1>
<p class="subtitle">7 patterns that cover 90% of DevOps coding questions. Click each to expand. Memorize the orange line.</p>
<div id="sections"></div>
<div class="tips">
<h2>🛡️ Screen-Share Tips</h2>
<div class="tip"><span class="tip-icon">🗣️</span><span>Talk while you code. Say "I'll start by reading the file line by line..." — silence kills you.</span></div>
<div class="tip"><span class="tip-icon">🧪</span><span>Start with the simplest approach. A working ugly solution beats an incomplete elegant one.</span></div>
<div class="tip"><span class="tip-icon">❓</span><span>Ask clarifying questions first: "How large is this file?" "What format is the log?"</span></div>
<div class="tip"><span class="tip-icon">🐍</span><span>Use Python's power: Counter, defaultdict, pathlib, f-strings — it shows you know the language.</span></div>
<div class="tip"><span class="tip-icon">🔄</span><span>Pattern: Read input → Process (loop/filter/count) → Output result. Every DevOps script follows this.</span></div>
<div class="tip"><span class="tip-icon">📝</span><span>If you forget syntax, say "I usually look this up but the approach is..." — they understand.</span></div>
</div>
<!-- Section data (one file per pattern) -->
<script src="assets/js/data/devops-cheatsheet/01-file-io.js"></script>
<script src="assets/js/data/devops-cheatsheet/02-json-yaml.js"></script>
<script src="assets/js/data/devops-cheatsheet/03-api-health.js"></script>
<script src="assets/js/data/devops-cheatsheet/04-shell-commands.js"></script>
<script src="assets/js/data/devops-cheatsheet/05-regex-strings.js"></script>
<script src="assets/js/data/devops-cheatsheet/06-files-dirs.js"></script>
<script src="assets/js/data/devops-cheatsheet/07-dict-list-tricks.js"></script>
<!-- Renderer (must load last) -->
<script src="assets/js/cheatsheet-renderer.js"></script>
</body>
</html>