Skip to content

Instantly share code, notes, and snippets.

View istudyatuni's full-sized avatar
💭
Hey

Ilia istudyatuni

💭
Hey
View GitHub Profile
@istudyatuni
istudyatuni / README.md
Created February 23, 2026 09:13
Static Rust binary with Nix + optionally docker image

How to build

# static build
nix build

# static build + docker image
nix build '.#docker'
docker load -i result
@istudyatuni
istudyatuni / check-domain-cert-expire.sh
Created April 19, 2026 09:11
Check expiration of domain certificate
#!/usr/bin/env bash
set -euo pipefail
readonly DOMAIN='ENTER YOUR DOMAIN'
readonly DAY_SEC=86400
expiry="$(echo | \
openssl s_client -servername "$DOMAIN" -connect "$DOMAIN:443" 2>/dev/null | \
openssl x509 -noout -enddate | \