Skip to content

Instantly share code, notes, and snippets.

@louim
louim / tuple-time.js
Last active January 3, 2026 16:00
Are you curious how much time you spend tupleing with colleagues? Go to https://production.tuple.app/profile/usage. Paste script in console. Enjoy!
(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
@VityaSchel
VityaSchel / hetzner-robot-server-monitoring-bulk-mass-adding.js
Last active January 3, 2026 16:02
Hetzner Robot Server Monitoring bulk mass adding
/*
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
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()
};
// ==========================================
// 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');
}
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",
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;
}
});
@ayashiiiyo
ayashiiiyo / dl-bili.js
Created January 1, 2026 06:37
Downloader Bilibili
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]
@Winschu
Winschu / removeFromWatchLaterPlaylist.js
Created January 1, 2026 01:18
Remove videos from youtube watch later playlist (german)
(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';
function FindProxyForURL(url, host) {
if (shExpMatch(host, "lakota.spi")) {
return "PROXY your.proxy.server:port";
} else {
return "DIRECT";
}
}
@eusouesseluiz
eusouesseluiz / app.js
Created December 31, 2025 13:24
Codigo de leitura de tela
responsiveVoice.speak(texto, 'Brazilian Portuguese Female', {rate:1.2});