This commit is contained in:
2025-10-25 20:11:21 +02:00
commit fd37421245
700 changed files with 211892 additions and 0 deletions

11
Work/Random/Ai Bots.md Normal file
View File

@@ -0,0 +1,11 @@
https://github.com/ai-robots-txt/ai.robots.txt
https://github.com/ai-robots-txt/ai.robots.txt/blob/main/robots.txt
### Using .htaccess
``` .htaccess
# Block bot traffic from certain user agents
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} (Amazonbot|SemrushBot|meta-externalagent|Bytespider) [NC]
RewriteRule .* - [R=503,L]
```

8
Work/Random/Apache.md Normal file
View File

@@ -0,0 +1,8 @@
## Block Bots / User Agents
```
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} (Amazonbot|SemrushBot|meta-externalagent|Bytespider) [NC]
RewriteRule .* - [R=503,L]
```
#Snippets #Apache

34
Work/Random/Css Tricks.md Normal file
View File

@@ -0,0 +1,34 @@
h-[1lh]
Tap size target add absolute span in button next to the svg / icon
``` html
<span class="absolute top-1/2 left-1/2 -translate-1/2 size-12 [@media(pointer:fine)]:hidden"></span>
```
scrollable table
``` html
<div class="-mx-parent flex margin-whatever overflow-x-auto">
<div class="px-parent grow">
<table class="min-w-full whitescape-nowrap">
// Bla
<table/>
</div>
</div>
```
Easier if there is a css variable of page padding
Grid stuff
```html
<div class="grid grid-cols-[auto_1fr]">
<a class="col-span-2 grid grid-cols-subgrid">
<icon class="mr-2" />
<label />
</a>
</div>
```