<?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>Forem: fadzwaan</title>
    <description>The latest articles on Forem by fadzwaan (@fadzwaan).</description>
    <link>https://forem.com/fadzwaan</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%2F3810048%2F2772ad0c-6945-4170-a47c-9ad77475814e.png</url>
      <title>Forem: fadzwaan</title>
      <link>https://forem.com/fadzwaan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/fadzwaan"/>
    <language>en</language>
    <item>
      <title>wipe clean your bootable usb</title>
      <dc:creator>fadzwaan</dc:creator>
      <pubDate>Sat, 04 Apr 2026 00:21:19 +0000</pubDate>
      <link>https://forem.com/fadzwaan/wipe-clean-your-bootable-usb-6ma</link>
      <guid>https://forem.com/fadzwaan/wipe-clean-your-bootable-usb-6ma</guid>
      <description>&lt;p&gt;Ever thought about reusing your usb back. Sure if you want to make another bootable usb with different operating system you can always burn another iso images , even with windows you can, but cases differ if you relies on media creation tools or surface IT toolkit that needs the usb have storage instead of full with bootable files.&lt;/p&gt;

&lt;p&gt;The thing is you can restore your usb and treat it like a normal disk where you can clear its content and turn it back into normal storage device &lt;/p&gt;

&lt;p&gt;Method 1: Use DiskPart (works 100%)&lt;/p&gt;

&lt;p&gt;⚠️ This will erase EVERYTHING on the USB.&lt;/p&gt;

&lt;p&gt;Plug in your USB&lt;br&gt;
Open Command Prompt as Administrator&lt;br&gt;
Type:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight batchfile"&gt;&lt;code&gt;&lt;span class="nb"&gt;diskpart&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;List disks:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight batchfile"&gt;&lt;code&gt;&lt;span class="kd"&gt;list&lt;/span&gt; &lt;span class="kd"&gt;disk&lt;/span&gt;

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

&lt;/div&gt;



&lt;p&gt;👉 Identify your USB (by size!)&lt;/p&gt;

&lt;p&gt;Select it (example: Disk 2):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight batchfile"&gt;&lt;code&gt;&lt;span class="kd"&gt;select&lt;/span&gt; &lt;span class="kd"&gt;disk&lt;/span&gt; &lt;span class="m"&gt;2&lt;/span&gt;

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

&lt;/div&gt;



&lt;p&gt;Wipe it completely:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight batchfile"&gt;&lt;code&gt;&lt;span class="kd"&gt;clean&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Create new partition:&lt;/p&gt;

&lt;p&gt;create partition primary&lt;br&gt;
Format it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight batchfile"&gt;&lt;code&gt;&lt;span class="nb"&gt;format&lt;/span&gt; &lt;span class="kd"&gt;fs&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kd"&gt;fat32&lt;/span&gt; &lt;span class="kd"&gt;quick&lt;/span&gt;

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

&lt;/div&gt;



&lt;p&gt;Assign drive letter:&lt;br&gt;
assign&lt;/p&gt;

&lt;p&gt;Exit:&lt;br&gt;
exit&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>cli</category>
      <category>microsoft</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Could not read package.json</title>
      <dc:creator>fadzwaan</dc:creator>
      <pubDate>Sun, 22 Mar 2026 16:17:31 +0000</pubDate>
      <link>https://forem.com/fadzwaan/could-not-read-packagejson-525h</link>
      <guid>https://forem.com/fadzwaan/could-not-read-packagejson-525h</guid>
      <description>&lt;p&gt;If you dont have package.json and wanted to rebuild it.&lt;/p&gt;

&lt;p&gt;Simply and rebuild your package.json with any llm. Don't waste your token and have it read all the code just to get the import . You can just read only the import statements.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-rh&lt;/span&gt; &lt;span class="s2"&gt;"from '"&lt;/span&gt; &lt;span class="nb"&gt;.&lt;/span&gt; &lt;span class="nt"&gt;--include&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"*.ts"&lt;/span&gt; &lt;span class="nt"&gt;--include&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"*.tsx"&lt;/span&gt; &lt;span class="nt"&gt;--include&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"*.js"&lt;/span&gt; | &lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-oP&lt;/span&gt; &lt;span class="s2"&gt;"from '[^./][^']*'"&lt;/span&gt; | &lt;span class="nb"&gt;sort&lt;/span&gt; &lt;span class="nt"&gt;-u&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>cli</category>
      <category>javascript</category>
      <category>node</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
