This file contains 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
[ | |
{ | |
"id": "f1", | |
"name": "Restel Site Contact form", | |
"description": "Contact us form in restel site.", | |
"integrations": [ | |
"Mail", | |
"Telegram" | |
] | |
}, |
This file contains 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
## Handy utility scripts. | |
retry_with_timeout () { | |
# Retries the given command until it returns the given value for the given number of times. | |
# Usage retry_with_timeout 'Command to be executed with quotes' <expected value> <number of times to retry> | |
local command_to_try="$1" | |
local expected_value="$2" | |
local expected_timeout="$3" | |
local total_time=0 |
This file contains 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
{ | |
"token": "adsfsadfssfdsdfs" | |
} |
This file contains 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
get_crtime() { | |
for target in "${@}"; do | |
inode=$(stat -c '%i' "${target}") | |
fs=$(df --output=source "${target}" | tail -1) | |
crtime=$(sudo debugfs -R 'stat <'"${inode}"'>' "${fs}" 2>/dev/null | | |
grep -oP 'crtime.*--\s*\K.*') | |
printf "%s\t%s\n" "${target}" "${crtime}" | |
done |
OlderNewer