This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add on element with overflow | |
-webkit-mask-image: -webkit-radial-gradient(white, black); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Trigger] | |
Operation = Remove | |
Type = Package | |
Target = * | |
[Action] | |
Description = Clearing cache... | |
When = PostTransaction | |
Exec = /home/<user>/.local/bin/tools/removehook |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @param {string} s [HTML string] | |
*/ | |
function minify( s ){ | |
return s ? s | |
.replace(/\>[\r\n ]+\</g, "><") // Removes new lines and irrelevant spaces which might affect layout, and are better gone | |
.replace(/(<.*?>)|\s+/g, (m, $1) => $1 ? $1 : ' ') | |
.trim() | |
: "" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create a token with DNS edit and read permissions on all zones - https://dash.cloudflare.com/profile/api-tokens | |
# Get zoneid from https://dash.cloudflare.com/ => select a domain => Overview => API => Zone ID | |
# Get DNS record id: | |
# curl --request GET \ | |
# --url https://api.cloudflare.com/client/v4/zones/{zoneid}/dns_records \ | |
# --header 'Content-Type: application/json' \ | |
# --header 'Authorization: Bearer {api_token}' | |
# --- config --- |