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
// What to add to the parsed ISO date to get it in correct timezone | |
TZ_POSTFIX = 'T00:00:00+02:00'; | |
// Email subjects to look at | |
SUBJECT_NEW_BOOKING = 'New Booking - Some Service'; | |
// Matches '2023-07-14 00:00 - 2023-07-14 00:00' like strings with groups for each date | |
DATE_RANGE_PATTERN = new RegExp('(\\d{4}-\\d{2}-\\d{2}) 00:00 - (\\d{4}-\\d{2}-\\d{2}) 00:00'); | |
// Regex patterns to extract other content such as name, apartment, email | |
NAME_PATTERN = new RegExp('<td>Name:<\\/td>[\\n\\s]+<td>(.*)<\\/td>'); | |
APARTMENT_PATTERN = new RegExp('<td>Apartment:<\\/td>[\\n\\s]+<td>(.*)<\\/td>'); | |
EMAIL_PATTERN = new RegExp('<td>Email:<\\/td>[\\n\\s]+<td>(.*)<\\/td>'); |
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
function ssht | |
# Set the remote server's address | |
set remote_server $argv[1] | |
# Export the terminal info to a temporary file | |
set tmp_file (mktemp) | |
infocmp >$tmp_file | |
# Transfer the terminfo file to the remote server | |
scp $tmp_file $remote_server:/tmp/ |
OlderNewer