Skip to content

Instantly share code, notes, and snippets.

View alatalo's full-sized avatar

Ville Alatalo alatalo

View GitHub Profile
@alatalo
alatalo / !glesys-update-dns.md
Last active December 15, 2025 05:34
Glesys dyn dns updater - Simple shell script to update DNS record in Glesys Cloud based on your current public IP.

Glesys dyn dns updater

Simple shell script to update DNS record in Glesys Cloud based on your current public IP.

Requirements

  • IPinfo.io API token
  • Glesys Cloud API account with permissions: domain/addrecord, domain/listrecord, domain/updaterecord
  • Optional Discord webhook notification on IP change
  • curl and jq installed
@alatalo
alatalo / !pve deb13 cloudimage.md
Last active December 14, 2025 07:23
Proxmox Debian 13 cloud-init ready VM template

Proxmox Debian 13 cloud-init ready VM template

Proxmox VE shell commands to create Debian 13 cloud-init ready VM template and deploy a VM with the template and cloud-init settings.

  • Tested on Proxmox VE 8.4.14 and 9.0.11
  • Run the commands on the Proxmox VE host as root
  • Note: Not a shell script ready to be run, just a list of commands

Ville Alatalo 2025 https://github.com/alatalo

@alatalo
alatalo / ntp-clock.ino
Created August 29, 2025 07:42
Impulse NTP master clock for ESP32 + L298N and mechanical slave clocks (alternate polarity each pulse)
// Impulse NTP master clock for ESP32 + L298N (alternate polarity each pulse)
// Original by Wawa https://forum.arduino.cc/t/running-special-clock-with-motor-controller/1159828/106
// Refactored by Ville Alatalo https://github.com/alatalo 08/2025
// + minute-impulses
// + ENA for toggling coil
// + Finnish NTP + TZ
const char* WIFI_SSID = "Internet of Shit"; // WiFi SSID
const char* WIFI_PASS = ""; // WiFi password
const char* MY_TZ = "EET-2EEST,M3.5.0/3,M10.5.0/4"; // Helsinki, Finland
@alatalo
alatalo / GetArctisBatteryLevel.ps1
Last active June 23, 2024 10:05
Show the battery level of Logitech Arctis 7 headset in small Powershell window. Uses HeadsetControl by Sapd <Denis Arnst> at https://github.com/Sapd/HeadsetControl
#!/usr/bin/env pwsh
# Show the battery level of Logitech Arctis 7 headset in a
# small Powershell window. Uses HeadsetControl by Sapd <Denis Arnst>.
#
# Requirements:
# * Powershell and `Set-ExecutionPolicy RemoteSigned`
# * headsetcontrol.exe https://github.com/Sapd/HeadsetControl
#
# Note: For desktop icon, see attached headset_createDesktopIcon.ps1