<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.9.5">Jekyll</generator><link href="https://trujordan.com/feed.xml" rel="self" type="application/atom+xml" /><link href="https://trujordan.com/" rel="alternate" type="text/html" /><updated>2025-08-10T09:42:07+00:00</updated><id>https://trujordan.com/feed.xml</id><title type="html">Jordan Trujillo</title><subtitle>Senior DevOps Engineer, Photography hobbyist, Musician, and all around Tech Enthusiast. Explore my portfolio, blog posts about automation, and technology insights.</subtitle><author><name>Jordan Trujillo</name></author><entry><title type="html">Post Format: GitHub Actions</title><link href="https://trujordan.com/post-format-github-actions/" rel="alternate" type="text/html" title="Post Format: GitHub Actions" /><published>2024-04-11T00:59:47+00:00</published><updated>2024-04-11T00:59:47+00:00</updated><id>https://trujordan.com/post-format-github-actions</id><content type="html" xml:base="https://trujordan.com/post-format-github-actions/"><![CDATA[<p>I wanted to format my python, markdown and yml files in a GitHub repository without having to do it before merge or push. I decided to use <a href="https://docs.astral.sh/ruff/formatter/">Ruff</a> for python and <a href="https://prettier.io/">Prettier</a> for markdown and yml files. I created a GitHub Actions workflow to format the files on every PR and push to the master branch.</p>

<p>The workflow checks out the code, installs Ruff and Prettier, formats the files, commits the changes and pushes them back to the repository. The workflow uses a private SSH key to clone the repository and push the changes back. I created a new SSH key pair and added the private key to the repository secrets. The public key was added to the repository deploy keys. The workflow uses the private key to clone the repository and push the changes back to the repository.</p>

<p>The key to having this workflow format post-merge/push is the use of <code class="language-plaintext highlighter-rouge">stefanzweifel/git-auto-commit-action</code> action. This action commits the changes and pushes them back to the repository. You can find more information about this action <a href="https://github.com/stefanzweifel/git-auto-commit-action">here</a>.</p>

<h2 id="example-workflow">Example workflow:</h2>

<div class="notice">
<p>Warning: There are some invisible characters in the workflow file. Make sure to remove them before using the workflow. Had to add them to avoid an issue with how the page renders variables surrounded by curly braces. They are located between the first two curly braces in each variable. You can easily see them in an IDE like VSCode.</p>
</div>

<h3 id="formatyml">format.yml:</h3>

<div class="language-yml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="na">name</span><span class="pi">:</span> <span class="s">Format with Ruff and Prettier</span>
<span class="na">on</span><span class="pi">:</span>
  <span class="na">pull_request</span><span class="pi">:</span>
    <span class="na">branches</span><span class="pi">:</span> <span class="pi">[</span><span class="nv">master</span><span class="pi">]</span>
  <span class="na">push</span><span class="pi">:</span>
    <span class="na">branches</span><span class="pi">:</span> <span class="pi">[</span><span class="nv">master</span><span class="pi">]</span>
<span class="na">jobs</span><span class="pi">:</span>
  <span class="na">format</span><span class="pi">:</span>
    <span class="na">runs-on</span><span class="pi">:</span> <span class="s">ubuntu-latest</span>
    <span class="na">steps</span><span class="pi">:</span>
      <span class="pi">-</span> <span class="na">uses</span><span class="pi">:</span> <span class="s">actions/checkout@v4</span>
        <span class="na">with</span><span class="pi">:</span>
          <span class="na">ref</span><span class="pi">:</span> <span class="s">${‎{ github.head_ref }}</span>
          <span class="na">ssh-key</span><span class="pi">:</span> <span class="s">${‎{ secrets.SSH_PRIVATE_KEY }}</span>
      <span class="pi">-</span> <span class="na">uses</span><span class="pi">:</span> <span class="s">actions/setup-python@v5</span>
        <span class="na">with</span><span class="pi">:</span>
          <span class="na">python-version</span><span class="pi">:</span> <span class="s2">"</span><span class="s">3.12"</span>
      <span class="pi">-</span> <span class="na">run</span><span class="pi">:</span> <span class="s">pip install ruff</span>
      <span class="pi">-</span> <span class="na">run</span><span class="pi">:</span> <span class="s">ruff format</span>
      <span class="pi">-</span> <span class="na">uses</span><span class="pi">:</span> <span class="s">actions/setup-node@v4</span>
        <span class="na">with</span><span class="pi">:</span>
          <span class="na">node-version</span><span class="pi">:</span> <span class="s2">"</span><span class="s">20.x"</span>
      <span class="pi">-</span> <span class="na">run</span><span class="pi">:</span> <span class="s">npm ci</span>
      <span class="pi">-</span> <span class="na">run</span><span class="pi">:</span> <span class="s">npm run format</span>
      <span class="pi">-</span> <span class="na">name</span><span class="pi">:</span> <span class="s">Commit changes</span>
        <span class="na">uses</span><span class="pi">:</span> <span class="s">stefanzweifel/git-auto-commit-action@v5</span>
        <span class="na">with</span><span class="pi">:</span>
          <span class="na">commit_message</span><span class="pi">:</span> <span class="s">Apply formatting changes</span>
          <span class="na">branch</span><span class="pi">:</span> <span class="s">${‎{ github.head_ref }}</span>
</code></pre></div></div>

<h2 id="conclusion">Conclusion</h2>

<p><img src="../assets/images/format-commits.png" alt="alt text" /></p>

<p>Notice the second commit in this list, “Apply formatting changes” and the co-author of the commit. In this example you can see that the workflow formatted the files and pushed the changes back to the repository.</p>

<p>The action will run again on the push event but will not make any changes because the files are already formatted. You can avoid this if you only run the action on the pull_request and remove the on push event.</p>]]></content><author><name>Jordan Trujillo</name></author><category term="github" /><category term="github-actions" /><category term="format" /><category term="python" /><category term="node" /><category term="ruff" /><category term="prettier" /><category term="automation" /><summary type="html"><![CDATA[Learn how to automatically format Python, Markdown, and YAML files using GitHub Actions with Ruff and Prettier. Complete workflow example with SSH deployment keys.]]></summary></entry><entry><title type="html">New Theme</title><link href="https://trujordan.com/new_theme/" rel="alternate" type="text/html" title="New Theme" /><published>2024-03-24T15:00:00+00:00</published><updated>2024-03-24T15:00:00+00:00</updated><id>https://trujordan.com/new_theme</id><content type="html" xml:base="https://trujordan.com/new_theme/"><![CDATA[<p>The old theme was the default jekyll theme. I wanted to change it to something more modern and clean.</p>

<p>I chose the <a href="https://mmistakes.github.io/minimal-mistakes/">Minimal Mistakes</a> theme.</p>

<p>I like the clean look, I’m happy with the new theme and I think it gives the blog a fresh new look.</p>]]></content><author><name>Jordan Trujillo</name></author><category term="jekyll" /><category term="design" /><category term="theme" /><category term="website" /><category term="minimal-mistakes" /><summary type="html"><![CDATA[Jordan Trujillo switches from default Jekyll theme to Minimal Mistakes for a modern, clean blog design. Learn about the migration and design choices.]]></summary></entry><entry><title type="html">Running Windows Legacy Programs On a Modern OS</title><link href="https://trujordan.com/running-old-programs/" rel="alternate" type="text/html" title="Running Windows Legacy Programs On a Modern OS" /><published>2022-09-17T15:00:00+00:00</published><updated>2022-09-17T15:00:00+00:00</updated><id>https://trujordan.com/running-old-programs</id><content type="html" xml:base="https://trujordan.com/running-old-programs/"><![CDATA[<p>I’ll go over how to run legacy programs ranging from MSDOS to 16-bit Windows applications.</p>

<p>With each new version of Windows, more features are either removed or replaced by more modern ones. As a result, many of your older legacy programs will no longer function. For a time, Microsoft would continue to support these old programs by allowing libraries to run within a “compatibility layer.” To run these programs nowadays, you will need to use third-party tools. Many businesses continue to rely on legacy programs to run their operations and, as a result, refuse to upgrade critical machines from Windows XP or Windows 7, leaving them vulnerable to a variety of cyber attacks. Some IT teams will rely on containers or virtualization to continue support and prevent internet access to these installations, but wouldn’t it be preferable to run your legacy apps without having to do any of that?</p>

<p>Here are some methods for running these programs without having to install older versions of Windows.</p>

<p><strong>Disclaimer:</strong> I will avoid providing information from 32Bit versions of Windows 10 because they will soon be deprecated, though they can still be used by activating the NTVDM Windows Feature. Because most machines today run 64-bit operating systems, I chose not to include it.
I will also not include anything that may be illegal, such as stolen Microsoft code. The WINE project for Linux, OSX, and BSD also works, but according to their documentation FAQ, 16-bit apps require OS modifications that will result in security holes. For that reason I have also not included WINE.</p>

<h1 id="all-oss">All OSs</h1>

<h2 id="dosbox">DOSBOX</h2>

<p>DOSBOX is an emulator that allows you to run all of your MSDOS software.
It is easily customizable to ensure that those programs, including clock speeds, work properly.
Your performance will vary here, and you will most likely need to conduct your own research to figure out how to get your specific program to work. One issue you may encounter is getting the output to appear anywhere on your machine.
It is up to you to configure mounts and mappings of specific folders that are configurable.</p>

<p>DOSBOX is available for all major operating systems.</p>

<ul>
  <li><a href="https://www.dosbox.com/download.php?main=1">Download and install DOSBOX</a></li>
</ul>

<h1 id="windows">Windows</h1>

<h2 id="winevdm">WINEVDM</h2>
<p>WINEVDM is a compatibility layer for WIN16bit applications, it will run within 64Bit versions of Windows. It is an open source project, so your mileage may vary, but I have been able to run programs dating back to Windows 1.0 so far.</p>
<ul>
  <li><a href="https://github.com/otya128/winevdm">Github: WINEVDM</a></li>
</ul>

<h1 id="other">Other</h1>

<h2 id="installing-32-bit-programs-with-16-bit-setup-launchers">Installing 32-bit Programs With 16-bit Setup Launchers</h2>

<p>Some old programs from about 1995 to 1998 were using generic 16-bit InstallShield launchers to install 32-bit programs. As you can imagine, these programs are still compatible with modern Windows, but won’t install because of these generic InstallShield packages. You can simply download the 32-bit generic executable (usually named SETUP.EXE) and replace the 16-bit version of the executable file. You can read more <a href="https://reactos.org/forum/viewtopic.php?p=90351">here in this forum post.</a></p>]]></content><author><name>Jordan Trujillo</name></author><category term="retro" /><category term="windows" /><category term="dos" /><category term="16bit" /><category term="legacy" /><category term="software" /><category term="emulation" /><category term="dosbox" /><category term="winevdm" /><category term="installshield" /><summary type="html"><![CDATA[Complete guide to running legacy DOS and 16-bit Windows programs on modern 64-bit operating systems using DOSBOX, WINEVDM, and other compatibility solutions.]]></summary></entry><entry><title type="html">Website Goals</title><link href="https://trujordan.com/welcome/" rel="alternate" type="text/html" title="Website Goals" /><published>2022-08-14T15:00:00+00:00</published><updated>2022-08-14T15:00:00+00:00</updated><id>https://trujordan.com/welcome</id><content type="html" xml:base="https://trujordan.com/welcome/"><![CDATA[<p>Even though I am a busy person, I always try to strive to hit my goals. 
This very site has been a goal of mine. I hope to continue building upon it and creating content that useful for others within the field of Information Technology.
I will be using this site to update my portfolio and document personal projects in the future.</p>

<p>Feel free to subscribe, if that is something that is of interest to you.</p>]]></content><author><name>Jordan Trujillo</name></author><category term="goals" /><category term="portfolio" /><category term="website" /><summary type="html"><![CDATA[Jordan Trujillo shares his website goals and commitment to building useful IT content, portfolio updates, and personal project documentation.]]></summary></entry></feed>