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
| (async function () { | |
| // ========== CONFIGURE DATE RANGE HERE ========== | |
| const startDate = new Date("2025-01-01"); | |
| const endDate = new Date("2025-12-31T23:59:59"); | |
| // =============================================== | |
| const timePerPerson = {}; | |
| const logs = []; | |
| // Parse time string like "46 min", "1 hr 30 min", "2 hr" to minutes |
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
| /* | |
| This script automatically adds many domains to the hetzner sysmon via robot console. It is preconfigured to create an http check on port 443 with ssl enabled and no auth. | |
| Instructions: | |
| 1. Go to https://robot.hetzner.com/server | |
| 2. Open your server | |
| 3. Open "monitoring" tab | |
| 4. Click on "configured systems" to reveal the sysmon form (it should show a plus sign, checks list, etc) | |
| 5. Open devtools in your browser -> go to console | |
| 6. Make sure to select "System-Monitor" iframe context! the script won't run in the top page context | |
| 7. Modify "yourdomains" to add whatever domains you want |
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
| const CONFIG = { | |
| sheet_Retirement: "Retirement Plan", | |
| sheet_Spends: "Statement - Spends", | |
| sheet_Investment: "Investments", | |
| sheet_Assets: "Assets", | |
| sheet_Goals: "Savings Goals", | |
| sheet_Budget: "Budget & Expense", | |
| timezone: Session.getScriptTimeZone() | |
| }; |
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
| // ========================================== | |
| // WEB APP LOADER | |
| // ========================================== | |
| function db_loadDashboard() { | |
| return HtmlService.createTemplateFromFile('Index') | |
| .evaluate() | |
| .setTitle('Financial Dashboard') | |
| .setXFrameOptionsMode(HtmlService.XFrameOptionsMode.ALLOWALL) | |
| .addMetaTag('viewport', 'width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0'); | |
| } |
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
| const citekeys = { | |
| "[1512.04150] learning deep features for discriminative localization": "151204150LearningDeep", | |
| "numerical investigation of the flow properties of he ii": "aarts-dewaele-1994", | |
| "tensorflow: large-scale machine learning on heterogeneous distributed systems": "abadiTensorFlowLargeScaleMachine2016", | |
| "aerodynamic technologies to improve aircraft performance": "abbas-devicente-valero-2013", | |
| "drag reduction via turbulent boundary layer flow control": "abbas-etal-2017", | |
| "theory of wing sections: including a summary of airfoil data": "abbott-doenhoff-2012", | |
| "scaling and intermittency in turbulent flows of elastoviscoplastic fluids": "abdelgawad-cannon-rosti-2023", | |
| "modulation of near-wall turbulence in the transitionally rough regime": "abderrahamanelena-etal-2019", | |
| "analysis of anisotropically permeable surfaces for turbulent drag reduction": "abderrahamanelena-garciamayoral-2017", |
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
| Object.defineProperty(Error.prototype, "lineNumber", { | |
| configurable: true, | |
| enumerable: false, | |
| get: function () { | |
| if (!this.stack) return undefined; | |
| const match = this.stack.match(/:(\d+):\d+\)?$/m); | |
| return match ? Number(match[1]) : undefined; | |
| } | |
| }); |
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
| import axios from 'axios' | |
| import * as cheerio from 'cheerio' | |
| import { exec } from 'node:child_process' | |
| import fs from 'node:fs/promises' | |
| import { promisify } from 'node:util' | |
| const execPromise = promisify(exec) | |
| async function bilibilidl(url, quality = '480P') { | |
| let aid = /\/video\/(\d+)/.exec(url)?.[1] |
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
| (async function() { | |
| 'use strict'; | |
| function sleep(ms) { | |
| return new Promise(resolve => setTimeout(resolve, ms)); | |
| } | |
| const removeText_SingleQuotes = "Aus 'Später ansehen' entfernen"; | |
| const removeText_DoubleQuotes = 'Aus "Später ansehen" entfernen'; |
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
| function FindProxyForURL(url, host) { | |
| if (shExpMatch(host, "lakota.spi")) { | |
| return "PROXY your.proxy.server:port"; | |
| } else { | |
| return "DIRECT"; | |
| } | |
| } |
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
| responsiveVoice.speak(texto, 'Brazilian Portuguese Female', {rate:1.2}); |