<?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 Aviel Bitton on Medium]]></title>
        <description><![CDATA[Stories by Aviel Bitton on Medium]]></description>
        <link>https://medium.com/@avielbitton?source=rss-eb65ce9c2a16------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*iZXQz84LNYwjsNk38ZKshw.png</url>
            <title>Stories by Aviel Bitton on Medium</title>
            <link>https://medium.com/@avielbitton?source=rss-eb65ce9c2a16------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 11:08:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@avielbitton/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[0 CVE with 0 Effort — your fast-track guide to secure containers with Minimus  !]]></title>
            <link>https://medium.com/@avielbitton/0-cve-with-0-effort-your-fast-track-guide-to-secure-containers-with-minimus-b914405d6111?source=rss-eb65ce9c2a16------2</link>
            <guid isPermaLink="false">https://medium.com/p/b914405d6111</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[minimus]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Aviel Bitton]]></dc:creator>
            <pubDate>Mon, 05 May 2025 06:51:55 GMT</pubDate>
            <atom:updated>2025-05-24T11:25:52.041Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>0 CVE with 0 Effort — your fast-track guide to secure containers with Minimus 🟦 !</strong></h3><blockquote><strong><em>TL;DR</em></strong><em><br> Stop babysitting vulnerable base images. Minimus ships ultra‑small, ultra‑secure container images that usually start with </em><strong><em>zero CVEs</em></strong><em>.</em></blockquote><blockquote><strong><em>Copy</em></strong><em> a token, </em><strong><em>pull</em></strong><em> an image, </em><strong><em>enjoy the silence</em></strong><em> in your security scanner.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6sK4_tShBwO0m6HwoXl3_w.png" /></figure><h3>Why bother? (a.k.a. “bye‑bye, endless CVE alerts”)</h3><ul><li><strong>Less code → fewer holes</strong> — standard images (Ubuntu, Debian, even Alpine) carry shells, package managers, and libraries you’ll never use. Each extra file is a potential vulnerability.</li><li><strong>Daily rebuilds</strong> — Minimus rebuilds upstream sources daily and publishes patched versions minutes after a fix lands.</li><li><strong>Zero maintenance overhead</strong> — you don’t patch; Minimus patches for you. You just <strong>pull, run, and sleep tight</strong>.</li></ul><h3>What exactly is Minimus? 🟦</h3><p>Minimus is a private OCI‑compliant registry filled with <strong>distroless</strong> images: only the binaries and deps your app needs, nothing else. Most images launch with 0 CVEs; the rest have only a handful and pick up new ones <strong>much</strong> slower than their public equivalents.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ql0yUopOXBJGtRUc62owaw.png" /><figcaption><a href="https://images.minimus.io/gallery/images/nginx/risk-reduction">https://images.minimus.io/gallery/images/nginx/risk-reduction</a></figcaption></figure><h3><strong>Free vs. Organizational account</strong></h3><p>Here’s a quick comparison between personal and organizational accounts in Minimus:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RP1ZWVX5oMR1sbmOaQbeDA.png" /><figcaption>Free vs. Organizational account</figcaption></figure><h3>Hands‑on: three steps to your first zero‑CVE container</h3><ol><li><strong>Sign up</strong><br> Create an account at <a href="https://images.minimus.io/"><strong>minimus.io</strong></a> (GitHub / Google login works, no credit card).</li><li><strong>Grab your token</strong><br> Open <strong>Manage → API Tokens</strong>, press <strong>Copy</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tc8SBATyckPvw3zdih2k7g.png" /></figure><p>3. <strong>Pull and run</strong></p><pre># replace &lt;TOKEN&gt; with your real one <br>docker pull reg.mini.dev/&lt;TOKEN&gt;/busybox:latest  <br>docker run --rm reg.mini.dev/&lt;TOKEN&gt;/busybox:latest \<br>echo &quot;hello, minimus!&quot;</pre><p>Need Go instead? Swap the image:</p><pre>FROM reg.mini.dev/&lt;TOKEN&gt;/go:latest<br># your build steps …</pre><p><strong>That’s it — it’s really that simple!</strong> 🚀</p><h3>Extra goodies for orgs</h3><ul><li><strong>Real‑time threat intel</strong> — dashboard flags the <em>few</em> CVEs that still slip through and tells you if they’re under active exploit.</li><li><strong>SBOM &amp; provenance attestations</strong> — every artifact is signed; you can verify the build recipe end‑to‑end.</li><li><strong>Actions</strong> — webhook or Slack notifications when a new patch lands.</li></ul><h3>Ready to feel the silence?</h3><p>Spin one container, watch your scanner return <strong>0 vulnerabilities</strong>, and see how addictive a quiet security report can be. Give Minimus a try today — your future self (and your SOC team) will thank you.</p><p><em>Maximum security, minimum effort. Literally.</em></p><figure><img alt="minimus logo" src="https://cdn-images-1.medium.com/max/719/1*55JOf2-aQxRgxRUXcT4GoA.png" /></figure><p><strong>For more details and docs, check out:</strong></p><p>👉 <a href="https://www.minimus.io/">minimus.io</a> | 📘 <a href="https://docs.minimus.io/">docs.minimus.io</a></p><p>#containers #devops #docker #security #cicd #cloudnative #kubernetes #oci #zerocve #minimus #supplychainsecurity</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T6wbu8s9nC4cUsFat7nNWA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b914405d6111" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Boost Your React Performance with a Simple Adjustment]]></title>
            <link>https://medium.com/@avielbitton/boost-your-react-performance-with-a-simple-adjustment-a27e81ea4d2f?source=rss-eb65ce9c2a16------2</link>
            <guid isPermaLink="false">https://medium.com/p/a27e81ea4d2f</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[javascript-tips]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Aviel Bitton]]></dc:creator>
            <pubDate>Sun, 25 Aug 2024 09:08:09 GMT</pubDate>
            <atom:updated>2024-08-25T09:08:09.671Z</atom:updated>
            <content:encoded><![CDATA[<p>In React, ensuring that your application runs smoothly is crucial, especially when it comes to state management. One common mistake developers make is directly calling a function within the `useState` hook, which can lead to performance issues.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*JTZqr-Qwl3E-8oXb1vGkXw.jpeg" /></figure><h3><strong>The Issue: Unnecessary Function Calls</strong></h3><p>When you call a function directly in the `useState` hook, it triggers the function on every render. This behavior can slow down your app by blocking the Call Stack and re-executing the function unnecessarily. In essence, this is like setting a value on the first render, expecting it not to change until `setState` is invoked but with the added cost of running the function every time.</p><p>❌ Avoid this</p><pre>const [state, setState] = useState(getData());</pre><p><strong>The Solution: Use a Callback Function</strong></p><p>Instead, wrap the function call in a callback. This approach ensures that the function is only executed during the initial render, leading to better performance and a smoother user experience.</p><p>✅ Do this instead</p><pre>const [state, setState] = useState(() =&gt; getData());</pre><p>By making this small adjustment, you prevent unnecessary function executions, keeping your React application fast and responsive.</p><h3><strong>Why It Matters</strong></h3><p>Using a callback function with `useState` is a simple yet powerful optimization. It helps ensure that your component renders are as efficient as possible, reducing potential slowdowns and improving the overall performance of your app.</p><p>For more tips and interesting content, feel free to <a href="http://www.linkedin.com/in/avielbitton"><strong>connect with me on LinkedIn</strong>!</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*irddwLqYi6OYqv-45LX0BA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a27e81ea4d2f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Optimizing User Experience: Adapting Color Schemes Directly from Operating System Settings!]]></title>
            <link>https://blog.stackademic.com/optimizing-user-experience-adapting-color-schemes-directly-from-operating-system-settings-a9b654711201?source=rss-eb65ce9c2a16------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9b654711201</guid>
            <category><![CDATA[ui-design]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[user-experience]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Aviel Bitton]]></dc:creator>
            <pubDate>Tue, 27 Feb 2024 12:37:54 GMT</pubDate>
            <atom:updated>2024-02-29T01:24:30.394Z</atom:updated>
            <content:encoded><![CDATA[<p>Have you ever felt like websites impose color schemes on you, regardless of <strong>your preferences</strong>? It’s time to change that! With the matchMedia API, we can detect the user&#39;s <strong>preferred color scheme directly from their operating system settings</strong>, offering a more personalized browsing experience.</p><figure><img alt="Light Mode Dark Mode matchMedia API" src="https://cdn-images-1.medium.com/max/800/1*qexU2L8PcYu6v1AAmd2ilw.gif" /></figure><p><strong>Understanding the Issue:</strong></p><p>Traditionally, websites set a color mode based on their design choices, ignoring the user’s preferences. However, modern web development allows us to tailor the user experience to individual preferences, including their preferred color scheme.</p><p><strong>The Solution:</strong></p><p>Enter the matchMedia API. This powerful tool lets us detect the user&#39;s preferred color scheme, whether light or dark, directly from their operating system settings. By utilizing matchMedia we can adjust our website&#39;s color scheme dynamically to match the user&#39;s preference seamlessly.</p><p><strong>Understanding the Code:</strong></p><p>Let’s delve into the useColorMode hook:</p><pre>import { useState, useEffect } from &#39;react&#39;<br><br>type ColorMode = &#39;light&#39; | &#39;dark&#39;<br><br>const useColorMode = (localStorageItem: string): ColorMode =&gt; {<br>  const [colorMode, setColorMode] = useState&lt;ColorMode&gt;(&#39;light&#39;)<br><br>  useEffect(() =&gt; {<br>    const mediaQuery = window.matchMedia(&#39;(prefers-color-scheme: light)&#39;)<br>    const handleChange = (e: MediaQueryListEvent) =&gt; {<br>      const newColorMode = e.matches ? &#39;light&#39; : &#39;dark&#39;<br>      setColorMode(newColorMode)<br>      localStorage.setItem(localStorageItem, newColorMode)<br>    }<br><br>    mediaQuery.addEventListener(&#39;change&#39;, handleChange)<br>    return () =&gt; mediaQuery.removeEventListener(&#39;change&#39;, handleChange)<br>  }, [])<br><br>  return colorMode<br>}<br><br>export default useColorMode</pre><ul><li>The useColorMode hook detects the user&#39;s preferred color scheme using the matchMedia API and stores it in localStorage.</li><li>We use mediaQuery.addEventListener(&#39;change&#39;, handleChange) to add an event listener to the media query. This listener is triggered whenever the user&#39;s preferred color scheme changes.</li></ul><p><strong>Adding Chakra Implementation:</strong></p><p>Now, let’s integrate the useColorMode hook with the Chakra UI library:</p><pre>import React from &#39;react&#39;;<br>import ReactDOM from &#39;react-dom/client&#39;;<br>import { ChakraProvider, ColorModeScript, extendTheme } from &#39;@chakra-ui/react&#39;;<br>import App from &#39;./App&#39;;<br>import useColorMode from &#39;../src/hooks/use-color-mode&#39;;<br><br>const Root = () =&gt; {<br>  const colorMode = useColorMode(&#39;chakra-ui-color-mode&#39;); // Get the color mode using the custom hook<br><br>  return (<br>    &lt;React.StrictMode&gt;<br>      &lt;ChakraProvider theme={extendTheme({ config: { initialColorMode: colorMode } })}&gt;<br>        &lt;ColorModeScript initialColorMode={colorMode} /&gt;<br>        &lt;App /&gt;<br>      &lt;/ChakraProvider&gt;<br>    &lt;/React.StrictMode&gt;<br>  );<br>};<br><br>ReactDOM.createRoot(document.getElementById(&#39;root&#39;) as HTMLElement).render(&lt;Root /&gt;);</pre><p><strong>UI Implementation Demo</strong></p><figure><img alt="matchMedia API UI implemention" src="https://cdn-images-1.medium.com/max/600/1*tWQ2l2Dg7arDItWoNgptzQ.gif" /></figure><p><strong>Conclusion:</strong></p><p>By using the matchMedia API and the useColorMode we can create more user-friendly experiences by respecting the user&#39;s preferred color scheme. Let&#39;s stop imposing color modes and start embracing user-centric design practices.</p><p>For more information on the matchMedia API:</p><p><a href="https://developer.mozilla.org/en-US/docs/Web/API/Window/matchMedia">Window: matchMedia() method - Web APIs | MDN</a></p><h3>Stackademic 🎓</h3><p>Thank you for reading until the end. Before you go:</p><ul><li>Please consider <strong>clapping</strong> and <strong>following</strong> the writer! 👏</li><li>Follow us <a href="https://twitter.com/stackademichq"><strong>X</strong></a><strong> | </strong><a href="https://www.linkedin.com/company/stackademic"><strong>LinkedIn</strong></a><strong> | </strong><a href="https://www.youtube.com/c/stackademic"><strong>YouTube</strong></a><strong> | </strong><a href="https://discord.gg/in-plain-english-709094664682340443"><strong>Discord</strong></a></li><li>Visit our other platforms: <a href="https://plainenglish.io/"><strong>In Plain English</strong></a><strong> | </strong><a href="https://cofeed.app/"><strong>CoFeed</strong></a><strong> | </strong><a href="https://venturemagazine.net/"><strong>Venture</strong></a><strong> | </strong><a href="https://blog.cubed.run/"><strong>Cubed</strong></a></li><li>More content at <a href="https://stackademic.com/"><strong>Stackademic.com</strong></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9b654711201" width="1" height="1" alt=""><hr><p><a href="https://blog.stackademic.com/optimizing-user-experience-adapting-color-schemes-directly-from-operating-system-settings-a9b654711201">Optimizing User Experience: Adapting Color Schemes Directly from Operating System Settings!</a> was originally published in <a href="https://blog.stackademic.com/">Stackademic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>