-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
727 lines (628 loc) · 14.9 KB
/
index.html
File metadata and controls
727 lines (628 loc) · 14.9 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
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Self-Learning Journey by 7vikfox</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Self-Learning Journey</h1>
<p>Tracking my progress in IT</p>
<hr>
<h3>Links</h3>
<li><a href="cybersecurity.html">🔐 Cybersecurity Notes</a></li>
<li><a href="cloud-devops.html"> ☁⚙ Cloud Computing & DevOps Notes</a></li>
<li><a href="DSA.html"> DSA Notes</a></li>
<li><a href="codes.html"> Codes Notes</a></li>
<li><a href="projects.html"> Projects Section</a></li>
<h2 id="sql">SQL Notes</h2>
<ul>
<li><strong>1. View all data</strong><br>
Used to display every record from a table.
<pre>
SELECT * FROM students;
</pre>
</li>
<li><strong>2. Insert data</strong><br>
Adds a new row into a table.
<pre>
INSERT INTO students (id, name, age, grade)
VALUES (1, 'Alex', 20, 'A');
</pre>
</li>
<li><strong>3. Update data</strong><br>
Modifies existing records in a table.
<pre>
UPDATE students
SET grade = 'B'
WHERE name = 'Alex';
</pre>
</li>
<li><strong>4. Delete data</strong><br>
Removes records from a table.
<pre>
DELETE FROM students
WHERE name = 'Alex';
</pre>
</li>
<li><strong>5. Filter records (WHERE)</strong><br>
Retrieves data based on conditions.
<pre>
SELECT * FROM students
WHERE age > 18;
</pre>
</li>
<li><strong>6. Sort records (ORDER BY)</strong><br>
Sorts results in ascending or descending order.
<pre>
SELECT * FROM students
ORDER BY age ASC;
</pre>
</li>
<li><strong>7. Count records</strong><br>
Returns the total number of rows.
<pre>
SELECT COUNT(*) AS total_students
FROM students;
</pre>
</li>
<li><strong>8. Average values</strong><br>
Calculates the average of a numeric column.
<pre>
SELECT AVG(age) AS average_age
FROM students;
</pre>
</li>
<li><strong>9. Group data</strong><br>
Groups records and applies aggregate functions.
<pre>
SELECT grade, COUNT(*) AS total_students
FROM students
GROUP BY grade;
</pre>
</li>
</ul>
<hr>
<h2 id="python">Python Notes</h2>
<ul>
<li>Python is a high-level programming language.</li>
<li>Supports procedural, object-oriented, and functional programming.</li>
<li>Basic syntax example:
<pre>
# This is a comment
print("Hello, World!")
x = 10
if x > 5:
print("x is greater than 5")
</pre>
</li>
<li><b>input()</b> is used to take user input as text (string):
<pre>
name = input("Enter your name: ")
print(name)
</pre>
</li>
<li><b>int()</b> converts a string into an integer:
<pre>
marks = int(input("Enter marks: "))
</pre>
</li>
<li><b>Basic arithmetic</b>: +, -, *, / can be used for calculations:
<pre>
total = math + science + english + hindi
percent = total / 4
</pre>
</li>
<li><b>f-strings</b> are used for formatted printing:
<pre>
print(f"Total: {total}")
print(f"Percentage: {percent}%")
</pre>
</li>
<li>Common data types: int, float, str, list, dict, tuple, set</li>
<li><b>Variables</b> are used to store data:
<pre>
name = "John"
age = 20
</pre>
</li>
<li><b>If-Else Condition</b> is used to check conditions:
<pre>
age = 18
if age >= 18:
print("Adult")
else:
print("Minor")
</pre>
</li>
<li><b>While Loop</b> repeats code until condition becomes false:
<pre>
while guess != number:
print("Try again")
</pre>
</li>
<li><b>Random Number</b> using random module:
<pre>
import random
number = random.randint(1, 10)
</pre>
</li>
<li><b>Programs Learned:</b>
<ul>
<li>Greeting Program</li>
<li>Number Guessing Game</li>
</ul>
</li>
<hr>
<h2 id="java">Java Basics Notes</h2>
<ul>
<li>
<b>Java</b> is a high-level, object-oriented programming language
designed to be platform-independent.
</li>
<li>
<b>Key Features of Java</b>
<ul>
<li>Object-Oriented</li>
<li>Platform Independent (Write Once, Run Anywhere)</li>
<li>Secure and Robust</li>
<li>Automatic Memory Management (Garbage Collection)</li>
</ul>
</li>
<li>
<b>Basic Java Program Structure</b>
<pre>
class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
</pre>
</li>
<li>
<b>Java Data Types</b>
<ul>
<li>Primitive: int, float, double, char, boolean</li>
<li>Non-Primitive: String, Array, Class, Interface</li>
</ul>
</li>
<li>
<b>Variables</b>
<pre>
int age = 20;
double price = 99.99;
char grade = 'A';
boolean isActive = true;
</pre>
</li>
<li>
<b>Conditional Statements</b>
<pre>
int marks = 75;
if (marks >= 50) {
System.out.println("Pass");
} else {
System.out.println("Fail");
}
</pre>
</li>
<li>
<b>Loops</b>
<ul>
<li>For Loop</li>
<li>While Loop</li>
<li>Do-While Loop</li>
</ul>
<pre>
for (int i = 1; i <= 5; i++) {
System.out.println(i);
}
</pre>
</li>
<li>
<b>Methods (Functions)</b>
<pre>
static void greet() {
System.out.println("Hello from Java");
}
</pre>
</li>
<li>
<b>Object-Oriented Concepts (Basics)</b>
<ul>
<li>Class</li>
<li>Object</li>
<li>Encapsulation</li>
<li>Inheritance</li>
<li>Polymorphism</li>
<li>Abstraction</li>
</ul>
</li>
</ul>
<p>
<b>Next Topics:</b>
Classes & Objects (deep), Constructors,
Inheritance, Interfaces, Exception Handling.
</p>
<hr>
<h2 id="html">HTML Notes</h2>
<ul>
<li>HTML stands for HyperText Markup Language.</li>
<li>Used to structure content on the web.</li>
<li>Basic elements:
<pre>
<h1>Heading</h1>
<p>Paragraph</p>
<a href="url">Link</a>
<ul><li>List Item</li></ul>
</pre>
</li>
<li>HTML elements have tags and attributes.</li>
</ul>
<hr>
<h2 id="css">CSS Notes</h2>
<ul>
<li>CSS stands for Cascading Style Sheets.</li>
<li>Used to style HTML content: colors, fonts, layout.</li>
<li>Basic example:
<pre>
<style>
body {
background-color: lightblue;
}
h1 {
color: navy;
}
</style>
</pre>
</li>
<li>Selectors target HTML elements to apply styles.</li>
</ul>
<hr>
<h2 id="operating-system">Operating System (OS) Notes</h2>
<ul>
<li><b>Operating System (OS)</b> is system software that manages hardware, software, and user interaction.</li>
<li><b>Main Functions of an OS</b>
<ul>
<li>Process management</li>
<li>Memory management</li>
<li>File system management</li>
<li>Device management</li>
<li>Security and access control</li>
</ul>
</li>
<li><b>Types of Operating Systems</b>
<ul>
<li>Batch Operating System</li>
<li>Time-Sharing Operating System</li>
<li>Distributed Operating System</li>
<li>Real-Time Operating System (RTOS)</li>
<li>Network Operating System</li>
</ul>
</li>
<li><b>Process Management</b>
<ul>
<li>A process is a program in execution</li>
<li>Process States:
<pre>
New → Ready → Running → Waiting → Terminated
</pre>
</li>
<li>Context Switching – Switching CPU between processes</li>
</ul>
</li>
<li><b>CPU Scheduling Algorithms</b>
<ul>
<li>FCFS – First Come First Serve</li>
<li>SJF – Shortest Job First</li>
<li>Round Robin</li>
<li>Priority Scheduling</li>
</ul>
</li>
<li><b>Memory Management</b>
<ul>
<li>RAM – Primary memory</li>
<li>Virtual Memory – Uses disk as extended RAM</li>
<li>Paging and Segmentation</li>
</ul>
</li>
<li><b>Deadlock</b>
<ul>
<li>Occurs when processes wait indefinitely</li>
<li>Deadlock Conditions:
<ul>
<li>Mutual Exclusion</li>
<li>Hold and Wait</li>
<li>No Preemption</li>
<li>Circular Wait</li>
</ul>
</li>
</ul>
</li>
<li><b>File System</b>
<ul>
<li>Manages data storage and retrieval</li>
<li>Common file systems:
<ul>
<li>NTFS (Windows)</li>
<li>EXT4 (Linux)</li>
<li>FAT32</li>
</ul>
</li>
</ul>
</li>
<li><b>Security in OS</b>
<ul>
<li>User authentication and authorization</li>
<li>Access control and permissions</li>
<li>Process isolation</li>
</ul>
</li>
</ul>
<p><b>Next Topics:</b> Linux commands, Windows internals, system calls, virtualization, containers.</p>
<hr>
<h2 id="js-ts">JavaScript & TypeScript Notes (Smart Comparison)</h2>
<p>
<b>JavaScript (JS)</b> and <b>TypeScript (TS)</b> are closely related.
TypeScript is a <b>superset of JavaScript</b>, meaning:
<br>
<i>All JavaScript code is valid TypeScript code.</i>
</p>
<ul>
<li>
<b>Main Difference</b>
<ul>
<li>JavaScript → Dynamic typing</li>
<li>TypeScript → Static typing + JavaScript features</li>
</ul>
</li>
<li>
<b>Basic Variable Declaration</b>
<pre>
JavaScript:
let age = 25;
TypeScript:
let age: number = 25;
</pre>
</li>
<li>
<b>Data Types</b>
<pre>
JavaScript:
let name = "Alex";
let isActive = true;
TypeScript:
let name: string = "Alex";
let isActive: boolean = true;
</pre>
</li>
<li>
<b>Functions</b>
<pre>
JavaScript:
function add(a, b) {
return a + b;
}
TypeScript:
function add(a: number, b: number): number {
return a + b;
}
</pre>
</li>
<li>
<b>Arrays</b>
<pre>
JavaScript:
let numbers = [1, 2, 3];
TypeScript:
let numbers: number[] = [1, 2, 3];
</pre>
</li>
<li>
<b>Objects</b>
<pre>
JavaScript:
let user = {
name: "Sam",
age: 22
};
TypeScript:
let user: {
name: string;
age: number;
} = {
name: "Sam",
age: 22
};
</pre>
</li>
<li>
<b>Why TypeScript Exists</b>
<ul>
<li>Catches errors at compile time</li>
<li>Better code readability</li>
<li>Great for large applications</li>
<li>Excellent IDE support</li>
</ul>
</li>
<li>
<b>Compilation Flow</b>
<pre>
TypeScript (.ts)
↓
Compiled to JavaScript (.js)
↓
Runs in Browser / Node.js
</pre>
</li>
<li>
<b>Where They Are Used</b>
<ul>
<li>JavaScript → Browsers, Node.js, web apps</li>
<li>TypeScript → Angular, React, enterprise apps</li>
</ul>
</li>
</ul>
<p>
<b>Learning Strategy:</b>
Learn JavaScript fundamentals first, then
move to TypeScript for safer and scalable code.
</p>
<hr>
<h2 id="networking">Networking Notes</h2>
<ul>
<li><b>Networking</b> is the practice of connecting computers and devices to share data and resources.</li>
<li><b>Types of Networks</b>
<ul>
<li>LAN (Local Area Network) – Small area like home, office</li>
<li>MAN (Metropolitan Area Network) – City-wide network</li>
<li>WAN (Wide Area Network) – Large area like the Internet</li>
</ul>
</li>
<li><b>Basic Networking Devices</b>
<ul>
<li>Router – Connects different networks</li>
<li>Switch – Connects devices within a network</li>
<li>Modem – Connects network to ISP</li>
<li>Firewall – Protects network from threats</li>
</ul>
</li>
<li><b>IP Address</b>
<ul>
<li>Unique identifier for a device on a network</li>
<li>IPv4 example:
<pre>
192.168.1.1
</pre>
</li>
<li>IPv6 example:
<pre>
2001:0db8:85a3::8a2e:0370:7334
</pre>
</li>
</ul>
</li>
<li><b>Common Network Protocols</b>
<ul>
<li>HTTP / HTTPS – Web communication</li>
<li>FTP – File transfer</li>
<li>SMTP – Sending emails</li>
<li>IMAP / POP3 – Receiving emails</li>
<li>DNS – Converts domain names to IP addresses</li>
</ul>
</li>
<li><b>Ports</b>
<pre>
HTTP : 80
HTTPS : 443
FTP : 21
SMTP : 25
SSH : 22
</pre>
</li>
<li><b>OSI Model (7 Layers)</b>
<pre>
7. Application
6. Presentation
5. Session
4. Transport
3. Network
2. Data Link
1. Physical
</pre>
</li>
<li><b>TCP vs UDP</b>
<ul>
<li>TCP – Reliable, connection-oriented</li>
<li>UDP – Faster, connectionless</li>
</ul>
</li>
</ul>
<hr>
<h2 id="network-security">Network Security Notes</h2>
<ul>
<li><b>Network Security</b> refers to protecting networks, devices, and data from unauthorized access, attacks, and misuse.</li>
<li><b>Goals of Network Security (CIA Triad)</b>
<ul>
<li>Confidentiality – Data is accessible only to authorized users</li>
<li>Integrity – Data is not altered without permission</li>
<li>Availability – Systems and data are accessible when needed</li>
</ul>
</li>
<li><b>Common Network Threats</b>
<ul>
<li>Malware – Viruses, worms, trojans</li>
<li>Phishing – Fake messages to steal credentials</li>
<li>Man-in-the-Middle (MITM) – Intercepting communication</li>
<li>Denial of Service (DoS / DDoS) – Overloading a system</li>
<li>Packet Sniffing – Capturing network traffic</li>
</ul>
</li>
<li><b>Firewalls</b>
<ul>
<li>Filter incoming and outgoing network traffic</li>
<li>Types:
<ul>
<li>Packet-filtering firewall</li>
<li>Stateful firewall</li>
<li>Application-level firewall</li>
<li>Next-Generation Firewall (NGFW)</li>
</ul>
</li>
</ul>
</li>
<li><b>Encryption</b>
<ul>
<li>Protects data during transmission</li>
<li>Symmetric Encryption – Same key for encryption & decryption</li>
<li>Asymmetric Encryption – Public key & private key</li>
<li>Examples:
<pre>
HTTPS → TLS/SSL
SSH → Secure remote access
</pre>
</li>
</ul>
</li>
<li><b>Authentication Methods</b>
<ul>
<li>Password-based authentication</li>
<li>Multi-Factor Authentication (MFA)</li>
<li>Biometric authentication</li>
<li>Certificate-based authentication</li>
</ul>
</li>
<li><b>IDS & IPS</b>
<ul>
<li>IDS (Intrusion Detection System) – Detects attacks</li>
<li>IPS (Intrusion Prevention System) – Detects and blocks attacks</li>
</ul>
</li>
<li><b>Secure Network Practices</b>
<ul>
<li>Use strong passwords and MFA</li>
<li>Keep systems and software updated</li>
<li>Segment networks (VLANs)</li>
<li>Disable unused ports and services</li>
<li>Monitor logs and traffic</li>
</ul>
</li>
<li><b>Common Secure Ports</b>
<pre>
HTTPS : 443
SSH : 22
FTPS : 990
SFTP : 22
</pre>
</li>
</ul>
<hr>
<h2>Next Steps</h2>
<p>Gradually add more notes, code examples, and learning resources for each field.</p>
<h3>Links</h3>
<li><a href="cybersecurity.html">🔐 Cybersecurity Notes</a></li>
<li><a href="cloud-devops.html"> ☁⚙ Cloud Computing & DevOps Notes</a></li>
<p id="js-test">JS Status: OFF</p>
<script src="script.js"></script>
</body>
</html>