<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Victor Menyuah</title>
    <description>The latest articles on DEV Community by Victor Menyuah (@ghostkrypt).</description>
    <link>https://dev.to/ghostkrypt</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2899402%2F7483e9ab-19ad-4e23-9531-d76ddbd3d621.png</url>
      <title>DEV Community: Victor Menyuah</title>
      <link>https://dev.to/ghostkrypt</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ghostkrypt"/>
    <language>en</language>
    <item>
      <title>How I Built a Modular Bash-Based System Admin Dashboard (Day 30/30)</title>
      <dc:creator>Victor Menyuah</dc:creator>
      <pubDate>Wed, 30 Apr 2025 13:40:46 +0000</pubDate>
      <link>https://dev.to/ghostkrypt/how-i-built-a-modular-bash-based-system-admin-dashboard-day-3030-2b98</link>
      <guid>https://dev.to/ghostkrypt/how-i-built-a-modular-bash-based-system-admin-dashboard-day-3030-2b98</guid>
      <description>&lt;p&gt;After 30 days of consistent Bash scripting practice, I wrapped up with a bang: building a fully functional &lt;strong&gt;System Admin Dashboard&lt;/strong&gt; using only Bash. This dashboard brings together common sysadmin tasks into one modular, menu-driven terminal interface. Here's how I planned, built, and refined it step-by-step.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why I Built This
&lt;/h2&gt;

&lt;p&gt;I wanted a way to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Consolidate routine Linux sysadmin tasks.&lt;/li&gt;
&lt;li&gt;Practice everything I'd learned over the past month.&lt;/li&gt;
&lt;li&gt;Build something real, modular, and extendable.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Plus, I wanted a project I could confidently show in interviews or demos—something that wasn't just a collection of scripts, but an actual &lt;em&gt;tool&lt;/em&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  Project Structure
&lt;/h2&gt;

&lt;p&gt;I created a clean and modular folder structure:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;admin_dashboard/
├── main.sh
├── logs/
│   └── actions.log
├── functions/
    ├── sys_info.sh
    ├── user_mgmt.sh
    ├── network.sh
    ├── processes.sh
    ├── services.sh
    ├── logs.sh
    ├── backup_restore.sh
    ├── updates.sh
    ├── cron.sh
    └── intrusion.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each &lt;code&gt;.sh&lt;/code&gt; file in &lt;code&gt;functions/&lt;/code&gt; handles a specific task, keeping the code clean and DRY.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Main Menu
&lt;/h2&gt;

&lt;p&gt;The &lt;code&gt;main.sh&lt;/code&gt; script provides a simple menu-based interface using a &lt;code&gt;case&lt;/code&gt; statement:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="k"&gt;case&lt;/span&gt; &lt;span class="nv"&gt;$choice&lt;/span&gt; &lt;span class="k"&gt;in
  &lt;/span&gt;1&lt;span class="p"&gt;)&lt;/span&gt; system_info &lt;span class="p"&gt;;;&lt;/span&gt;
  2&lt;span class="p"&gt;)&lt;/span&gt; user_management &lt;span class="p"&gt;;;&lt;/span&gt;
  ...
  0&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Exiting..."&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nb"&gt;exit &lt;/span&gt;0 &lt;span class="p"&gt;;;&lt;/span&gt;
  &lt;span class="k"&gt;*&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Invalid choice!"&lt;/span&gt; &lt;span class="p"&gt;;;&lt;/span&gt;
&lt;span class="k"&gt;esac&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It also logs each action to &lt;code&gt;logs/actions.log&lt;/code&gt; like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;&lt;span class="nb"&gt;date&lt;/span&gt;&lt;span class="si"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;: Viewed system info"&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&amp;gt;&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$LOG_FILE&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Key Functions
&lt;/h2&gt;

&lt;p&gt;Here are some highlights:&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;code&gt;sys_info.sh&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;Displays:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Uptime&lt;/li&gt;
&lt;li&gt;OS version&lt;/li&gt;
&lt;li&gt;CPU info&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  &lt;code&gt;user_mgmt.sh&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;Allows:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Listing users&lt;/li&gt;
&lt;li&gt;Adding/deleting users&lt;/li&gt;
&lt;li&gt;Changing passwords&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  &lt;code&gt;services.sh&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;Manage services using &lt;code&gt;systemctl&lt;/code&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Start/stop/restart&lt;/li&gt;
&lt;li&gt;List services&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  &lt;code&gt;logs.sh&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;View latest logs or search by keyword. Logged with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;&lt;span class="nb"&gt;date&lt;/span&gt;&lt;span class="si"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;: Searched logs for keyword '&lt;/span&gt;&lt;span class="nv"&gt;$keyword&lt;/span&gt;&lt;span class="s2"&gt;'"&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&amp;gt;&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$LOG_FILE&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  &lt;code&gt;intrusion.sh&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;Runs &lt;code&gt;chkrootkit&lt;/code&gt; to check for rootkits. Installs it if missing.&lt;/p&gt;




&lt;h2&gt;
  
  
  Logging Actions
&lt;/h2&gt;

&lt;p&gt;Every major action logs to &lt;code&gt;logs/actions.log&lt;/code&gt;. This makes it easier to track usage and debug issues.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;&lt;span class="nb"&gt;date&lt;/span&gt;&lt;span class="si"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;: Backup created for &lt;/span&gt;&lt;span class="nv"&gt;$dir&lt;/span&gt;&lt;span class="s2"&gt; as &lt;/span&gt;&lt;span class="nv"&gt;$name&lt;/span&gt;&lt;span class="s2"&gt;.tar.gz"&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&amp;gt;&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$LOG_FILE&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Lessons Learned
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Functions make Bash maintainable.&lt;/strong&gt; Keeping scripts modular saved me from spaghetti code.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Logging matters.&lt;/strong&gt; It's not just for syslogs. Tracking user actions is essential.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Git + GitHub saves the day.&lt;/strong&gt; Versioning this project helped me learn Git in context.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  What’s Next?
&lt;/h2&gt;

&lt;p&gt;I'll be upgrading this dashboard to &lt;strong&gt;Version 2&lt;/strong&gt;, adding:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Color-coded UI with &lt;code&gt;tput&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;User authentication&lt;/li&gt;
&lt;li&gt;Real-time monitoring with &lt;code&gt;htop&lt;/code&gt; or similar tools&lt;/li&gt;
&lt;li&gt;Web-based interface (maybe with Python Flask or Node.js)&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;This dashboard was the perfect final project to consolidate everything from my Bash journey. Whether you're learning Linux or want a real project to showcase, I recommend building your own version.&lt;/p&gt;

&lt;p&gt;Feel free to fork mine:&lt;br&gt;
[&lt;a href="https://github.com/TechKrypt/System-Admin-Dashboard" rel="noopener noreferrer"&gt;https://github.com/TechKrypt/System-Admin-Dashboard&lt;/a&gt;]&lt;/p&gt;




&lt;h1&gt;
  
  
  linux #bash #devops #sysadmin #portfolio
&lt;/h1&gt;

</description>
    </item>
    <item>
      <title>Understanding CamelCase, PascalCase, and snake_case in Python Variables</title>
      <dc:creator>Victor Menyuah</dc:creator>
      <pubDate>Wed, 19 Mar 2025 15:02:39 +0000</pubDate>
      <link>https://dev.to/ghostkrypt/understanding-camelcase-pascalcase-and-snakecase-in-python-variables-2ae6</link>
      <guid>https://dev.to/ghostkrypt/understanding-camelcase-pascalcase-and-snakecase-in-python-variables-2ae6</guid>
      <description>&lt;p&gt;When writing Python code, choosing the right naming convention for variables is crucial for readability and maintainability. This article will explore three common naming styles: CamelCase, PascalCase, and snake_case. We'll also discuss Python’s preferred convention and best practices.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;CamelCase&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;CamelCase (or lower camel case) is a naming convention where the first word starts with a lowercase letter, and each subsequent word starts with an uppercase letter.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;myVariableName = "Camel case example"
userLoginData = "Another example"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;While CamelCase is common in other programming languages like Java and JavaScript for variable names, it is not the preferred style in Python.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;PascalCase&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;PascalCase (or upper camel case) is similar to CamelCase, but the first word is also capitalized.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;MyVariableName = "Pascal case example"
UserLoginData = "Another example"

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;PascalCase is commonly used in Python for class names.&lt;/p&gt;

&lt;p&gt;Example in Python classes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;class MyClass:
    pass

class UserProfile:
    pass
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;snake_case&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;snake_case is a convention where all letters are lowercase, and words are separated by underscores (_).&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;my_variable_name = "Snake case example"
user_login_data = "Another example"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In Python, snake_case is the recommended naming convention for variables and function names according to the PEP 8 style guide.&lt;/p&gt;

&lt;p&gt;Example in function names:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;def calculate_area(radius):
    return 3.14 * radius ** 2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Which One Should You Use in Python?&lt;/p&gt;

&lt;p&gt;Python follows the PEP 8 guidelines, which recommend using:&lt;/p&gt;

&lt;p&gt;snake_case for variables and function names&lt;/p&gt;

&lt;p&gt;PascalCase for class names&lt;/p&gt;

&lt;p&gt;Avoid CamelCase for variable and function names&lt;/p&gt;

&lt;p&gt;Example Code Following Python Best Practices:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;class EmployeeDetails:
    def __init__(self, first_name, last_name):
        self.first_name = first_name  # snake_case for variables
        self.last_name = last_name

    def get_full_name(self):  # snake_case for function names
        return f"{self.first_name} {self.last_name}"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Conclusion&lt;/p&gt;

&lt;p&gt;Understanding and using the right naming convention is essential for writing clean, readable, and Python code. Stick to snake_case for variables and function names, and use PascalCase for class names. By following these best practices, you'll ensure consistency and readability in your Python projects.&lt;/p&gt;

</description>
      <category>programming</category>
      <category>python</category>
      <category>beginners</category>
    </item>
    <item>
      <title>[Boost]</title>
      <dc:creator>Victor Menyuah</dc:creator>
      <pubDate>Thu, 06 Mar 2025 23:10:33 +0000</pubDate>
      <link>https://dev.to/ghostkrypt/-26dl</link>
      <guid>https://dev.to/ghostkrypt/-26dl</guid>
      <description>&lt;div class="ltag__link"&gt;
  &lt;a href="/prodevopsguytech" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__org__pic"&gt;
      &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Forganization%2Fprofile_image%2F9174%2F7d9306b9-b8e6-41d7-93df-e9f3ca7746ac.png" alt="ProDevOpsGuy Tech Community" width="800" height="800"&gt;
      &lt;div class="ltag__link__user__pic"&gt;
        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1246529%2Fec587f47-1b66-435f-a9e7-78861469204a.png" alt="" width="210" height="210"&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/a&gt;
  &lt;a href="https://dev.to/prodevopsguytech/python-for-devops-a-comprehensive-guide-from-beginner-to-advanced-2pmm" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__content"&gt;
      &lt;h2&gt;Python for DevOps: A Comprehensive Guide from Beginner to Advanced&lt;/h2&gt;
      &lt;h3&gt;H A R S H H A A for ProDevOpsGuy Tech Community ・ Nov 6 '24&lt;/h3&gt;
      &lt;div class="ltag__link__taglist"&gt;
        &lt;span class="ltag__link__tag"&gt;#python&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#devops&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#beginners&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#programming&lt;/span&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/a&gt;
&lt;/div&gt;


</description>
      <category>python</category>
      <category>devops</category>
      <category>beginners</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
