.bat file to remove unused drivers files and more

This is the code for the .bat file to clean DriverStore folder in Windows

@echo off
for /L %%A in (1,1,300) do (
echo Deleting OEM%%A.INF
pnputil /d OEM%%A.INF

Clean the WinSxS folder, run these command in cmd (Admin)

Dism.exe /online /Cleanup-Image /StartComponentCleanup
Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase
Dism.exe /online /Cleanup-Image /SPSuperseded

Node: set ENV and execute command (Windows)

Pay attention: NO SPACE before &&

set NODE_ENV=local&& webpack-dev-server


set NODE_ENV=local && webpack-dev-server

Raspberry turn off usb ports

download this

You can control the power on a port using the following command. (I installed it in user bin directory)

sudo $HOME/bin/hub-ctrl -h 1 -P 2 -p 1

That says to control hub 3 (-h 3) port 1 (-P 1) and to turn the power off (-p 0). You can also use ”-p 1” to turn the power back on.

Raspberry: upload Arduino sketch from CLI

install these packages

sudo apt-get install arduino-core arduino-mk

Then add yourself to the dialout group to allow you to upload code to the Arduino board

sudo usermod -a -G dialout pi (Change pi to be your username if different)

Create Makefile

ARDUINO_DIR = /usr/share/arduino
include /usr/share/arduino/

to build


to upload

make upload

Lineage OS

Folder for downloaded updates