Skip to content

Instantly share code, notes, and snippets.

View francoism90's full-sized avatar
😸
Cuddling the cat

François M. francoism90

😸
Cuddling the cat
View GitHub Profile
@francoism90
francoism90 / auto-suspend.service
Created October 16, 2021 10:51
Autosuspend system
[Unit]
Description=Suspend system
[Service]
Type=oneshot
ExecStart=/usr/bin/systemctl suspend
@francoism90
francoism90 / init-start
Created August 20, 2023 11:28
Tweak ASUS RT-AC87U
# Login into router using SSH and execute listed commands (AT OWN RISK!).
# To apply the settings on boot, copy + paste the same settings in init-start.
# Backup current settings
nvram dump > dump.txt
# Set country + TX-power
nvram set asuscfe0:ccode=US
nvram set asuscfe1:ccode=US
nvram set asuscfe0:regrev=0
@francoism90
francoism90 / README.md
Created January 12, 2024 21:21
Limit CPU/memory using systemd
@francoism90
francoism90 / README.md
Last active June 27, 2024 12:28
Cockpit + Traefik

Tested on CentOS Stream 9 with Cockpit and traefik v3.

A full working Podman Quadlet example, can be seen here: https://github.com/foxws/foxws/tree/main/podman

Overrule service

You need to overrule the Cockpit Web Service to not use TLS.

TLS is being offered by traefik in this example:

@francoism90
francoism90 / README.md
Last active October 20, 2024 15:11
Simple pg_dump setup

Simple PostgreSQL backup

Introduction

WARNING: Use the script at your own risk. I'm not responsible for any database lost or corruption.

This is a simple database dump script for a Podman Quadlet PostgreSQL container.

It may not be production safe (better alternatives are available), but useful for your homelab.