-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscripts.html
More file actions
437 lines (413 loc) · 16.8 KB
/
scripts.html
File metadata and controls
437 lines (413 loc) · 16.8 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
<!DOCTYPE html>
<html lang="tr">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="description"
content="Production ortamlarında kullandığım shell script'leri, konfigürasyon dosyaları ve otomasyon araçları koleksiyonu."
/>
<title>Script'ler & Konfigürasyonlar - Sistem Yönetimi Araçları</title>
<!-- Open Graph meta tags -->
<meta
property="og:title"
content="Script'ler & Konfigürasyonlar - Sistem Yönetimi Araçları"
/>
<meta
property="og:description"
content="Production ortamlarında kullandığım shell script'leri, konfigürasyon dosyaları ve otomasyon araçları koleksiyonu."
/>
<meta property="og:type" content="website" />
<meta property="og:url" content="https://yourdomain.com/scripts.html" />
<meta
property="og:image"
content="https://yourdomain.com/assets/og-image-scripts.png"
/>
<meta name="twitter:card" content="summary_large_image" />
<meta
name="twitter:title"
content="Script'ler & Konfigürasyonlar - Sistem Yönetimi Araçları"
/>
<meta
name="twitter:description"
content="Production ortamlarında kullandığım shell script'leri ve konfigürasyon dosyaları."
/>
<meta
name="twitter:image"
content="https://yourdomain.com/assets/og-image-scripts.png"
/>
<link rel="stylesheet" href="assets/css/main.css" />
</head>
<body>
<header class="header">
<nav class="nav">
<div class="nav-brand">
<a href="index.html">Blog</a>
</div>
<ul class="nav-links">
<li><a href="blog/index.html">Yazılar</a></li>
<li><a href="projects.html">Projeler</a></li>
<li><a href="glossary.html">Sözlük</a></li>
<li><a href="scripts.html" class="active">Script'ler</a></li>
<li><a href="about.html">Hakkımda</a></li>
<li><a href="contact.html">İletişim</a></li>
</ul>
<button
class="theme-toggle"
id="themeToggle"
aria-label="Tema değiştir"
>
<svg
class="sun-icon"
width="20"
height="20"
viewBox="0 0 20 20"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<circle
cx="10"
cy="10"
r="4"
stroke="currentColor"
stroke-width="1.5"
/>
<path
d="M10 2V4M10 16V18M18 10H16M4 10H2M15.657 4.343L14.243 5.757M5.757 14.243L4.343 15.657M15.657 15.657L14.243 14.243M5.757 5.757L4.343 4.343"
stroke="currentColor"
stroke-width="1.5"
stroke-linecap="round"
/>
</svg>
<svg
class="moon-icon"
width="20"
height="20"
viewBox="0 0 20 20"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z"
stroke="currentColor"
stroke-width="1.5"
stroke-linecap="round"
stroke-linejoin="round"
/>
</svg>
</button>
</nav>
</header>
<main class="main">
<section class="page-header">
<h1 class="page-title">Script'ler & Konfigürasyonlar</h1>
<p class="page-description">
Production ortamlarında kullandığım shell script'leri, konfigürasyon
dosyaları ve otomasyon araçları koleksiyonu. Gerçek production
senaryolarında test edilmiş ve optimize edilmiş çözümler.
</p>
</section>
<!-- Quick Access Categories -->
<section class="scripts-categories">
<h2 class="section-title">Kategoriler</h2>
<div class="category-tags">
<a href="#system-admin" class="category-tag">Sistem Yönetimi</a>
<a href="#backup" class="category-tag">Yedekleme</a>
<a href="#monitoring" class="category-tag">Monitoring</a>
<a href="#security" class="category-tag">Güvenlik</a>
<a href="#automation" class="category-tag">Otomasyon</a>
</div>
</section>
<!-- Scripts Collection -->
<section class="scripts-collection">
<div id="system-admin" class="script-category">
<h2 class="category-title">Sistem Yönetimi</h2>
<div class="script-item">
<div class="script-header">
<h3 class="script-title">Linux Server Hardening Script</h3>
<div class="script-meta">
<span class="script-language badge">Bash</span>
<span class="script-difficulty badge">Intermediate</span>
</div>
</div>
<p class="script-description">
Production Linux sunucuları için otomatik güvenlik hardening
script'i. SSH yapılandırması, firewall kuralları, kernel
parametreleri ve güvenlik denetimlerini otomatikleştirir.
</p>
<div class="script-links">
<a
href="https://gist.github.com/yourusername/linux-hardening-script"
target="_blank"
rel="noopener noreferrer"
class="script-link"
>
GitHub Gist'te Görüntüle →
</a>
<a
href="blog/linux-server-hardening.html"
class="script-link secondary"
>
İlgili Blog Yazısı →
</a>
</div>
<div class="script-preview">
<pre><code>#!/bin/bash
# Linux Server Hardening Script
# Production ortamlar için optimize edilmiş
echo "Starting Linux server hardening..."
# SSH hardening
sed -i 's/#Port 22/Port 2222/' /etc/ssh/sshd_config
sed -i 's/PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config
# Firewall setup
ufw --force enable
ufw allow 2222
echo "Hardening completed successfully!"</code></pre>
</div>
</div>
<div class="script-item">
<div class="script-header">
<h3 class="script-title">LVM Disk Management Script</h3>
<div class="script-meta">
<span class="script-language badge">Bash</span>
<span class="script-difficulty badge">Advanced</span>
</div>
</div>
<p class="script-description">
LVM volume'larını otomatik olarak genişletmek ve yönetmek için
script. XFS ve ext4 dosya sistemleri için optimize edilmiş,
production ortamlarda test edilmiş.
</p>
<div class="script-links">
<a
href="https://gist.github.com/yourusername/lvm-management"
target="_blank"
rel="noopener noreferrer"
class="script-link"
>
GitHub Gist'te Görüntüle →
</a>
<a href="blog/lvm-extend-xfs.html" class="script-link secondary">
İlgili Blog Yazısı →
</a>
</div>
</div>
</div>
<div id="backup" class="script-category">
<h2 class="category-title">Yedekleme</h2>
<div class="script-item">
<div class="script-header">
<h3 class="script-title">VMware VM Backup Script</h3>
<div class="script-meta">
<span class="script-language badge">PowerShell</span>
<span class="script-difficulty badge">Advanced</span>
</div>
</div>
<p class="script-description">
VMware vSphere ortamında VM'leri otomatik olarak yedeklemek için
PowerShell script'i. Snapshot yönetimi, retention policy ve email
notification özellikleri içerir.
</p>
<div class="script-links">
<a
href="https://gist.github.com/yourusername/vmware-backup"
target="_blank"
rel="noopener noreferrer"
class="script-link"
>
GitHub Gist'te Görüntüle →
</a>
</div>
</div>
</div>
<div id="monitoring" class="script-category">
<h2 class="category-title">Monitoring</h2>
<div class="script-item">
<div class="script-header">
<h3 class="script-title">System Health Check Script</h3>
<div class="script-meta">
<span class="script-language badge">Bash</span>
<span class="script-difficulty badge">Beginner</span>
</div>
</div>
<p class="script-description">
Linux sunucuların sistem sağlığını kontrol eden basit script. CPU,
memory, disk kullanımı ve network durumunu raporlar.
</p>
<div class="script-links">
<a
href="https://gist.github.com/yourusername/system-health"
target="_blank"
rel="noopener noreferrer"
class="script-link"
>
GitHub Gist'te Görüntüle →
</a>
</div>
<div class="script-preview">
<pre><code>#!/bin/bash
# System Health Check Script
echo "=== System Health Check ==="
echo "CPU Usage: $(top -bn1 | grep "Cpu(s)" | awk '{print $2}')%"
echo "Memory Usage: $(free -h | grep Mem | awk '{print $3"/"$2}')"
echo "Disk Usage:"
df -h | grep -v tmpfs
echo "Uptime: $(uptime -p)"</code></pre>
</div>
</div>
</div>
<div id="security" class="script-category">
<h2 class="category-title">Güvenlik</h2>
<div class="script-item">
<div class="script-header">
<h3 class="script-title">Fail2Ban Configuration Template</h3>
<div class="script-meta">
<span class="script-language badge">Config</span>
<span class="script-difficulty badge">Intermediate</span>
</div>
</div>
<p class="script-description">
Production ortamlar için optimize edilmiş Fail2Ban konfigürasyon
dosyası. SSH, web sunucu ve database brute-force saldırılarına
karşı koruma sağlar.
</p>
<div class="script-links">
<a
href="https://gist.github.com/yourusername/fail2ban-config"
target="_blank"
rel="noopener noreferrer"
class="script-link"
>
GitHub Gist'te Görüntüle →
</a>
</div>
</div>
</div>
<div id="automation" class="script-category">
<h2 class="category-title">Otomasyon</h2>
<div class="script-item">
<div class="script-header">
<h3 class="script-title">Docker Cleanup Script</h3>
<div class="script-meta">
<span class="script-language badge">Bash</span>
<span class="script-difficulty badge">Beginner</span>
</div>
</div>
<p class="script-description">
Docker ortamını temizlemek için kullanışlı script. Kullanılmayan
container'ları, image'ları, volume'ları ve network'leri temizler.
</p>
<div class="script-links">
<a
href="https://gist.github.com/yourusername/docker-cleanup"
target="_blank"
rel="noopener noreferrer"
class="script-link"
>
GitHub Gist'te Görüntüle →
</a>
</div>
</div>
</div>
</section>
<!-- Guest Posting Section -->
<section class="guest-posting-section">
<h2 class="section-title">Konuk Yazılar & İş Birlikleri</h2>
<p class="section-description">
Teknik içeriklerimizi daha geniş kitlelere ulaştırmak için diğer
platformlarda konuk yazılar yayınlıyoruz. Aşağıdaki platformlarda
yayınlanan yazılarımıza göz atın:
</p>
<div class="guest-links">
<a
href="https://dev.to/yourusername/linux-server-hardening-guide"
target="_blank"
rel="noopener noreferrer"
class="guest-link"
>
<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor">
<path
d="M7.42 10.05c-.18-.16-.46-.23-.84-.23H6l.02 2.44.04 2.45.56-.02c.41 0 .63-.07.83-.26.24-.24.26-.36.26-2.2 0-1.91-.02-1.96-.29-2.18zM0 4.94v14.12h24V4.94H0zM8.56 15.3c-.44.58-1.06.77-2.53.77H4.71V8.53h1.4c1.67 0 2.16.18 2.6.9.27.43.29.6.32 2.57.05 2.23-.02 2.73-.47 3.3zm5.09-5.47h-2.47v1.77h1.52v1.28l-.72.04-.75.03v1.77l1.22.03 1.2.04v1.28h-1.6c-1.53 0-1.6-.01-1.87-.3l-.3-.28v-3.16c0-3.02.01-3.18.25-3.48.23-.31.25-.31 1.88-.31h1.64v1.3zm4.68 5.45c-.17.43-.64.79-1 .79-.18 0-.45-.15-.67-.39-.32-.32-.33-.58-.33-3.15 0-2.6.01-2.84.33-3.15.32-.32.58-.33 3.15-.33 2.6 0 2.84.01 3.15.33.32.32.33.58.33 3.15 0 2.6-.01 2.84-.33 3.15-.32.32-.58.33-3.15.33h-2.84z"
/>
</svg>
Dev.to - Linux Server Hardening
</a>
<a
href="https://medium.com/@yourusername/docker-security-best-practices"
target="_blank"
rel="noopener noreferrer"
class="guest-link"
>
<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor">
<path
d="M13.54 12a6.8 6.8 0 01-6.77 6.82A6.8 6.8 0 010 12a6.8 6.8 0 016.77-6.82A6.8 6.8 0 0113.54 12zM20.96 12c0 3.54-1.51 6.42-3.38 6.42-1.87 0-3.39-2.88-3.39-6.42s1.52-6.42 3.39-6.42 3.38 2.88 3.38 6.42M24 12c0 3.17-.53 5.75-1.19 5.75-1.18 0-1.18-1.34-1.18-5.75s0-5.75 1.18-5.75C23.47 6.25 24 8.83 24 12z"
/>
</svg>
Medium - Docker Security Best Practices
</a>
</div>
</section>
</main>
<footer class="footer">
<div class="footer-content">
<div class="footer-left">
<p class="footer-text">© 2025 [İsim]</p>
<p class="footer-license">
Aksi belirtilmedikçe tüm içerik kişisel teknik nottur. Ticari
kullanım izne tabidir.
</p>
</div>
<div class="footer-center">
<p class="footer-source">
Kaynak kod:
<a
href="https://github.com/yourusername/blog"
target="_blank"
rel="noopener noreferrer"
>GitHub</a
>
</p>
</div>
<div class="footer-right">
<div class="footer-links">
<a
href="https://github.com/yourusername"
target="_blank"
rel="noopener noreferrer"
aria-label="GitHub"
>
<svg
width="20"
height="20"
viewBox="0 0 24 24"
fill="currentColor"
>
<path
d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"
/>
</svg>
</a>
<a
href="https://linkedin.com/in/yourusername"
target="_blank"
rel="noopener noreferrer"
aria-label="LinkedIn"
>
<svg
width="20"
height="20"
viewBox="0 0 24 24"
fill="currentColor"
>
<path
d="M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z"
/>
</svg>
</a>
</div>
</div>
</div>
</footer>
<script src="assets/js/theme.js"></script>
</body>
</html>