Skip to content

Instantly share code, notes, and snippets.

View nguyenhai97's full-sized avatar

Nguyễn Đăng Hải nguyenhai97

View GitHub Profile
@dbirks
dbirks / certbot-systemd-ubuntu.md
Last active October 1, 2024 04:18
Certbot renew with a systemd timer on Ubuntu

Ubuntu 16.04

/etc/systemd/system/certbot.service

[Unit]
Description=Let's Encrypt renewal

[Service]
Type=oneshot
ExecStart=/usr/bin/certbot renew --quiet --agree-tos
@Apsu
Apsu / 10-power.rules
Created August 23, 2012 05:38
power_supply udev rule
ACTION=="change", SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_ONLINE}=="[01]", RUN+="power %E{POWER_SUPPLY_ONLINE}"