<Files xmlrpc.php>
Order Allow,Deny
Deny from all
</Files>
Filter
2024-09-19
Undvik Wordpressattack
Security
2024-09-18
Remove Mac junk files
Windows
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
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
<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>