<?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: qui</title>
    <description>The latest articles on DEV Community by qui (@qui).</description>
    <link>https://dev.to/qui</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%2F1638817%2F3d00d0ea-bec2-4a7c-be75-2644854d7820.png</url>
      <title>DEV Community: qui</title>
      <link>https://dev.to/qui</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/qui"/>
    <language>en</language>
    <item>
      <title>Markdown Code Blocks in HTML</title>
      <dc:creator>qui</dc:creator>
      <pubDate>Mon, 24 Jun 2024 07:18:52 +0000</pubDate>
      <link>https://dev.to/qui/markdown-code-blocks-in-html-555p</link>
      <guid>https://dev.to/qui/markdown-code-blocks-in-html-555p</guid>
      <description>&lt;p&gt;Hello! I love Markdown code blocks but in default, we don't have Markdown code blocks in HTML. We'll do it with CSS.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Adding CSS
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1.1. Using Another file for CSS
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Add this to your CSS: &lt;code&gt;&amp;lt;link rel="stylesheet" href="style.css"&amp;gt;&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;And put this code in style.css:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.code {
    width: auto;
    max-width: 80%;
    background-color: #2d2d2d;
    color: #ffffff;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 20px;
    margin: 0 auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-bottom: 15px;
}

.code pre {
    margin: 0;
}

.code code {
    display: block;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  1.2. Using &lt;code&gt;&amp;lt;style&amp;gt;&lt;/code&gt; tag
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Add this in the style tag:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.code {
    width: auto;
    max-width: 80%;
    background-color: #2d2d2d;
    color: #ffffff;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 20px;
    margin: 0 auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-bottom: 15px;
}

.code pre {
    margin: 0;
}

.code code {
    display: block;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  2. Using It
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;p class="code"&amp;gt;
   your text here
&amp;lt;/p&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For example, I used it in my website: &lt;a href="https://modvim.quitaxd.online/installation"&gt;https://modvim.quitaxd.online/installation&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If it isn't alive, I am giving a screenshot:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foih2bgs9553u7puo5g00.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foih2bgs9553u7puo5g00.png" alt="Screenshot" width="715" height="94"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I changed background color manually.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>html</category>
      <category>css</category>
    </item>
    <item>
      <title>Serving Static Page with Docker</title>
      <dc:creator>qui</dc:creator>
      <pubDate>Wed, 19 Jun 2024 08:50:57 +0000</pubDate>
      <link>https://dev.to/qui/serving-static-page-with-docker-24b1</link>
      <guid>https://dev.to/qui/serving-static-page-with-docker-24b1</guid>
      <description>&lt;p&gt;Hello, I am qui! Today, we'll serve a static page with Docker.&lt;/p&gt;

&lt;h2&gt;
  
  
  Installing Docker
&lt;/h2&gt;

&lt;p&gt;Install it with your package manager.&lt;/p&gt;

&lt;p&gt;Debian/Ubuntu/Mint: &lt;a href="https://docs.docker.com/engine/install/debian/#install-using-the-repository"&gt;https://docs.docker.com/engine/install/debian/#install-using-the-repository&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Arch: &lt;code&gt;sudo pacman -S docker docker-compose&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Creating Dockerfile
&lt;/h2&gt;

&lt;p&gt;Create Dockerfile. And enter to it.&lt;/p&gt;

&lt;p&gt;We'll use nginx image. Add this: &lt;code&gt;FROM nginx:alpine&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;We want to copy static site to /usr/share/nginx/html in container. Add this: &lt;code&gt;COPY . /usr/share/nginx/html&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Complete Dockerfile
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;FROM nginx:alpine
COPY . /usr/share/nginx/html
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Building Container
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker build -t &amp;lt;sitename&amp;gt;:latest .
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Run Container
&lt;/h2&gt;

&lt;p&gt;If you want to run site in background, run this command: &lt;code&gt;docker run -d -p 80:80 &amp;lt;sitename&amp;gt;:latest&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;If you don't want to run site in background, run this command: &lt;code&gt;docker run -p 80:80 &amp;lt;sitename&amp;gt;:latest&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;If you are getting port errors, change 80:80 with 8080:80.&lt;/p&gt;

&lt;h2&gt;
  
  
  Credits
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://medium.com/@tony.aloysius.77/deploying-your-static-website-with-ease-using-nginx-35cca659079f"&gt;https://medium.com/@tony.aloysius.77/deploying-your-static-website-with-ease-using-nginx-35cca659079f&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.docker.com/engine/install/debian/#install-using-the-repository"&gt;https://docs.docker.com/engine/install/debian/#install-using-the-repository&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>webdev</category>
      <category>docker</category>
      <category>html</category>
    </item>
    <item>
      <title>Why You Should Use Local AI Instead ChatGPT?</title>
      <dc:creator>qui</dc:creator>
      <pubDate>Tue, 18 Jun 2024 12:52:34 +0000</pubDate>
      <link>https://dev.to/qui/why-you-should-use-local-ai-instead-chatgpt-48md</link>
      <guid>https://dev.to/qui/why-you-should-use-local-ai-instead-chatgpt-48md</guid>
      <description>&lt;h2&gt;
  
  
  Privacy
&lt;/h2&gt;

&lt;p&gt;Privacy is very important. If you use ChatGPT, admins can see your conversations. But in local AI, they can't see because they aren't admin of your AI.&lt;/p&gt;

&lt;h2&gt;
  
  
  Freedom
&lt;/h2&gt;

&lt;p&gt;For example, you can't write RAT with ChatGPT, but in local AI, you can do it (AI model must uncencored). I said RAT, but we have a lot of examples for it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Security
&lt;/h2&gt;

&lt;p&gt;In ChatGPT your data can be leaked. But in local AI, it cannot.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Activating Windows 10/11</title>
      <dc:creator>qui</dc:creator>
      <pubDate>Tue, 18 Jun 2024 12:51:41 +0000</pubDate>
      <link>https://dev.to/qui/activating-windows-1011-fj2</link>
      <guid>https://dev.to/qui/activating-windows-1011-fj2</guid>
      <description>&lt;p&gt;Hello guys. This is qui. Today I will make a tutorial about activating Windows 10/11 for free. This tutorial isn't working with LTSC versions.&lt;/p&gt;

&lt;p&gt;First you should run script with this command in PowerShell (Administrator): &lt;code&gt;irm https://get.activated.win | iex&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;And select HWID. If it's not working, you can use KMS.&lt;/p&gt;

&lt;p&gt;Thank you for reading this post. Good bye!&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
