Skip to content

Instantly share code, notes, and snippets.

View mulacloud's full-sized avatar

Mula Cloud Rroject mulacloud

View GitHub Profile
@mulacloud
mulacloud / alertmanager
Created August 31, 2025 13:00
Tips & Trik - NetBSD : Prometheus + Telegram
#!/bin/sh
#
#
# PROVIDE: alertmanager
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
if [ -f /etc/rc.subr ]; then
$_rc_subr_loaded . /etc/rc.subr
@mulacloud
mulacloud / command
Created August 30, 2025 15:24
Command and script netbsd + wireguard
doas pkgin install wireguard-tools
doas vi /etc/npf.conf
group default {
pass in all
pass out all
}
map re0 dynamic 100.100.100.0/24 -> inet4(wg0)
# List image
imgadm avail os=linux type=zvol
# membuat vm
vmadm create -f ubuntutest
# list vm
vmadm list
# vpn port
{
"brand": "kvm",
"resolvers": [
"192.168.122.1"
],
"ram": "1024",
"vcpus": "2",
"alias": "ubuntu2404",
"customer_metadata": {
"root_authorized_keys": "<local-ssh-key>"