Script

Filter
2024-09-18

Remove Mac junk files

Windows
Windows command to delete all hidden junk files that comes when you open mac folders in windows
1
Open cmd and navigate to the folder to search, then run these commands:

rmdir /s /q __MACOSX
del /s /q /f /a .DS_STORE

del /s /q /f /a ._.* (only if there are no other files you need to keep
like chrome settings, eclipse files etc)

/s include subdirectories
/q quiet mode, do not ask
/f force deleting of read only files
/a Select files to delete based on attributes
2023-12-10

Ändra många fil-namn

Windows
Ändra namn på många filer samtidigt I Windows 10
2
1. Öppna Powershell
2. Gå till rätt katalog med cd och ls
3. Skriv: ls | Rename-Item -NewName { $_.Name -replace "x","y" }
Ändra x till det som ska ändras (innanför citat)
Ändra y till det som det ska ändras till (innanför citat)
OBS! Det här ändrar ALLA förekomster av "x" i filnamnen till "y"

Alternativ om man vill ta bort ett prefix i filnamnen på många filer samtidigt:
1. Öppna kommandotolken
2. Gå till rätt katalog med cd och dir
3. Skriv rename "*" "///*"
Skriv så många slashar som tecken som ska tas bort från början av varje filnamn (3 st i exemplet)
2023-07-23

Vertical placement

Css
Using Flexbox to control vertical placement
1
<div style="display:flex; flex-direction:column; height:300px;">
    <div style="background:red;">Top</div>    
    <div style="background:green; flex-grow:1;">Flexible content</div>
    <div style="background:blue;">Bottom</div>
</div> 
2023-06-08

Säkrare webbläsare

Security
3 tips för att surfa säkrare.
1. Aktivera spårningsskydd
FF: Sekretess & säkerhet, Förbättrat spårningsskydd: strikt

2. Aktivera säker DNS
FF: Sekretess och säkerhet, Aktivera säker DNS: Förstärkt skydd

3. Minimera tillägg
2021-12-24

Installera gammal HP-skrivare som krånglar i Windows 10

Windows
Problemet kan vara att gamla drivrutiner som inte fungerar ligger kvar och blockerar.
3
1. Please remove any existing copy of your printer by selecting Remove Device, then reboot your computer.
2. Next, right-click the Start icon and select Run, paste the following and press OK: printui /s /t2
3. Remove any listed HP printer, be sure to select Remove driver and driver package, press OK and confirm any prompt.
4. Plug in the printer (usb) and let windows find the driver.
🙂