Skip to content

Instantly share code, notes, and snippets.

View hetrixtools's full-sized avatar

HetrixTools hetrixtools

View GitHub Profile
@hetrixtools
hetrixtools / v2_update_names.php
Created February 20, 2025 14:27
Update multiple Uptime Monitor names using v2 HetrixTools API
<?php
$api_key = 'APIKEY';
$api_call = 'https://api.hetrixtools.com/v2/'.$api_key.'/uptime/edit/';
// List of monitors to update (MID => New Name)
$monitors = [ // Max 120 per batch per minute to avoid rate limiting
'MID_1' => 'New Monitor Name 1',
'MID_2' => 'New Monitor Name 2',
'MID_3' => 'New Monitor Name 3',
@hetrixtools
hetrixtools / hetrix-update.sh
Created November 19, 2018 11:01 — forked from p-rintz/hetrix-update.sh
Update/Install Hetrixtools iptables ping rules
#!/bin/bash
if [ -z "$1" ]; then
echo
echo "Please pass either 'install' or 'update' as parameter"
echo
elif [ $1 = "update" ]; then
echo "---------------------"
echo "Updating hetrix rules"