Skip to content

Instantly share code, notes, and snippets.

View ravikant-pal's full-sized avatar
🎯
Focusing

Ravikant Pal ravikant-pal

🎯
Focusing
View GitHub Profile
@ravikant-pal
ravikant-pal / create_sample_logs.sh
Last active July 13, 2025 12:33
Create Sample Logs
#!/bin/sh
mkdir -p logs
cat > logs/service1.log << EOF
2025-07-13 12:00:00 INFO Starting service
2025-07-13 12:01:15 INFO Checking database connection
2025-07-13 12:02:30 WARN Connection slow, retrying
2025-07-13 12:05:00 ERROR Failed to connect to DB
2025-07-13 12:06:00 INFO Retrying connection
Spider-Man
Iron Man
Thor
Captain America
Black Widow
Hulk
Black Panther
Doctor Strange
Scarlet Witch
Vision
Timestamp Name Department Activity Status
2025-07-01 10:00 Aryan Singh Computer Science Submitted Assignment Completed
2025-07-01 11:15 Neha Sharma Electronics Attended Lab Completed
2025-07-01 12:30 Raj Patel Mechanical Joined Lecture Present
2025-07-01 14:00 Priya Verma Civil Missed Lecture Absent
2025-07-01 15:45 Ankit Rao Computer Science Gave Presentation Excellent
@ravikant-pal
ravikant-pal / app.log
Created July 13, 2025 11:59
App Logs
2025-07-13 10:12:05 INFO Starting application...
2025-07-13 10:12:06 DEBUG Initializing configuration
2025-07-13 10:12:07 INFO Configuration loaded successfully
2025-07-13 10:12:09 WARN Cache system slow to respond
2025-07-13 10:12:10 ERROR Failed to connect to database
2025-07-13 10:12:11 DEBUG Retrying database connection
2025-07-13 10:12:13 INFO Connected to database after retry
2025-07-13 10:12:15 INFO Handling request /api/user/123
2025-07-13 10:12:16 ERROR Timeout while querying user data
2025-07-13 10:12:18 INFO Response sent to client: 504 Gateway Timeout
@ravikant-pal
ravikant-pal / telegram-notification.md
Last active July 15, 2025 13:48
Telegram Notification β€” System Alerting Exercise

πŸ“£ Telegram Notification β€” System Alerting Exercise

⏱ Duration: 45 minutes

πŸ‘¨β€πŸ’» Mode: Individual Hands-on

🧰 Tools: Bash, curl, Telegram Bot API

πŸ“‘ Real-World Application: System Monitoring + Automation

@ravikant-pal
ravikant-pal / mock-pay.md
Created July 12, 2025 10:26
Simulated UPI Payment Interface

Mock Pay β€” Simulated UPI Payment in Bash

⏱ Duration: 30 minutes

πŸ§ͺ Concepts: Functions, Arrays, CLI Arguments, Input Validation, Shell UX


🎯 Objective

@ravikant-pal
ravikant-pal / number-guessing-game.md
Created July 12, 2025 09:58
🎲 Number Guessing Game β€” Bash Scripting Activity

🎲 Number Guessing Game β€” Bash Scripting Activity

⏱ Duration: 40 minutes

🧰 Tools: Bash, if, while, case, $RANDOM, I/O operations


🎯 Objective

@ravikant-pal
ravikant-pal / weather-notifier.md
Last active July 15, 2025 12:07
Weather Notifier β€” Real-Time Shell Scripting Exercise

🌀️ Weather Notifier β€” Real-Time Shell Scripting Exercise

⏱ Duration: 30 minutes

πŸ“ Location: Pune

πŸ§ͺ Tools: Bash, curl, awk, cron, Open Source API (wttr.in)


@ravikant-pal
ravikant-pal / log-master-challenge.md
Last active July 15, 2025 07:02
Log Master Challenge

πŸ“‚ Log Master β€” The Ultimate Shell Text Processing Challenge 🧠πŸ’₯

⏱ Duration: 25 minutes


🎯 Objective

Become the Log Master by:

@ravikant-pal
ravikant-pal / kill-zombie-challenge.md
Created July 12, 2025 08:55
Kill Zombie Challenge

πŸ§Ÿβ€β™‚οΈ Kill the Zombie β€” Linux Process Challenge

Welcome to your 20-minute Linux shell mini-challenge!

🎯 Goal

Learn to:

  • Launch background jobs (fake zombie-like processes)
  • Identify and monitor running processes