Skip to content

Instantly share code, notes, and snippets.

@talyguryn
talyguryn / init.lua
Created January 13, 2026 18:16
Hammerspoon config for Klipper menubar monitor
--------------------------------------------------
-- Klipper menubar monitor
--------------------------------------------------
local SERVER_IP = "192.168.31.76"
local MOONRAKER_PORT = 7125
local FLUIDD_PORT = 80
local MOONRAKER_URL = "http://" .. SERVER_IP .. ":" .. MOONRAKER_PORT .. "/printer/objects/query?virtual_sdcard&print_stats"
local FLUIDD_URL = "http://" .. SERVER_IP .. ":" .. FLUIDD_PORT .. "/"
local REFRESH_SECONDS = 5

Autoupdates for Electron App

This guide will show you how to prepare sample Electron application for publishing from scratch:

  • create a new app
  • build distos
  • publish release to GitHub
  • set up autoupdating

Your app's updates may be stored on GitHub repo's releases page. It is free and user-friendly.

Enable ssh root login access

Set a new password for the root user.

sudo passwd

Now open for editing ssh daemon's config file /etc/ssh/sshd_config.

@talyguryn
talyguryn / wildcard-ssl-certificate.md
Last active October 29, 2023 08:57
How to get a wildcard ssl certificate and set up Nginx.

How to get and install a wildcard SSL certificate

In this guide you can find how to resolve the following issues.

Feel free to ask any questions in the comments section below.