I hereby claim:
- I am uschek on github.
- I am uschek (https://keybase.io/uschek) on keybase.
- I have a public key ASBM12QZ6jKqJnzP4ef3uZBHEmMMcCB8C9fBDofdTEbqggo
To claim this, I am signing this object:
RewriteEngine On | |
RewriteBase / | |
# don't rewrite robots.txt | |
RewriteRule ^robots.txt$ - [L] | |
# redirect all requests to example.com with HTTPS | |
RewriteCond %{HTTP_HOST} !^example\.com$ [NC] | |
RewriteRule ^(.*)$ https://example.com/$1 [R=301,L] |
RewriteEngine On | |
RewriteBase / | |
# don't rewrite robots.txt | |
RewriteRule ^robots.txt$ - [L] | |
# redirect to non-www | |
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] | |
RewriteRule ^(.*)$ https://%1/$1 [R=301,L] |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<meta name="viewport" content="width=device-width, initial-scale=1"/> | |
<title></title> | |
</head> | |
<body> | |
<p></p> | |
</body> |
#!/usr/bin/env zsh | |
f='example.txt' | |
echo ${f:r} | |
#=> example | |
echo ${f:e} | |
#=> txt |
#!/usr/bin/env bash | |
f='/path/to/example.txt' | |
base="${f##*/}" | |
echo $base | |
#=> example.txt | |
echo "${base%.*}" |
I hereby claim:
To claim this, I am signing this object:
document.querySelectorAll('style, link[rel="stylesheet"]').forEach(el => { el.parentNode.removeChild(el); }); | |
document.querySelectorAll('[style]').forEach(el => { el.removeAttribute('style'); }); |
document.querySelectorAll('script').forEach(el => { el.parentNode.removeChild(el); }); |