Skip to content

Instantly share code, notes, and snippets.

View huythai855's full-sized avatar
❤️‍🔥
Stay hungry, stay foolish!

Huy Thai Nguyen huythai855

❤️‍🔥
Stay hungry, stay foolish!
View GitHub Profile
@huythai855
huythai855 / main.gs
Created July 9, 2025 08:14
GScript to check uptime/downtime of a website, then send email to subscribers.
function init() {
if (ScriptApp.getProjectTriggers().length == 0) {
ScriptApp.newTrigger("websiteMonitor").timeBased().everyMinutes(0.1).create();
}
}
function websiteMonitor() {
var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Config");
var lastRow = sheet.getLastRow();
Logger.log('last'+lastRow);
### Keybase proof
I hereby claim:
* I am huythai855 on github.
* I am nhannguyen836 (https://keybase.io/nhannguyen836) on keybase.
* I have a public key ASAvI2cSpT1zVjecIbbh1qVXs1TYHBdd1QVf-6o5qzRz1Qo
To claim this, I am signing this object: