Skip to content

Instantly share code, notes, and snippets.

View mtabo's full-sized avatar

Mathías mtabo

View GitHub Profile
@mtabo
mtabo / KlipperTemperatureTower.gcode
Last active October 22, 2025 12:00
Klipper Temperature Tower
; Temperature tower: https://www.thingiverse.com/thing:2729076
; Apply the following function in Klipper Console before running the temp tower:
; This starts at START temperature, skip 1.4mm (base) and every 10mm reduces by 5 deg until top of the tower
; Adjust the START parameter to your needs
TUNING_TOWER COMMAND="SET_HEATER_TEMPERATURE HEATER=extruder" PARAMETER=TARGET SKIP=1.4 START=245 STEP_DELTA=-5 STEP_HEIGHT=10
@mtabo
mtabo / codigo.gs
Last active October 23, 2024 17:37
App Script Script for Google Sheets that forms the url to send messages through WhatsApp Web from a phone number in a column and a message in another column of the same row.
// Crea el Menu
function onOpen() {
var ui = SpreadsheetApp.getUi();
ui.createMenu('WhatsApp')
.addItem('Enviar Mensaje a Fila Seleccionada', 'sendWhatsAppMessageToSelectedRow')
.addToUi();
}
function sendWhatsAppMessageToSelectedRow() {
var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
@mtabo
mtabo / traefik_google_ip_whitelist.sh
Created October 2, 2024 20:30
This script retrieves Google's public IP ranges to make a ipAllowList Middleware for Traefik in YAML or TOML format
#!/bin/bash
#
# Script Name: traefik_google_ip_whitelist.sh
# Description: This script retrieves Google's public IP ranges, adds any unverified forwarding IPs,
# and generates a Traefik middleware configuration in either YAML or TOML format.
# The generated configuration allows whitelisting Google's IP addresses in Traefik,
# ensuring secure access to services by restricting traffic to Google's trusted IPs.
#
# Output: