All gists

emanuelegori
Last active 22 hours ago

🇮🇹 MIT License (IT) Codice e configurazioni pubblicati su questa istanza sono rilasciati sotto licenza MIT, salvo diversa indicazione nel singolo gist. --- 🇬🇧 MIT License (EN) Code and configuration published on this instance is released under the MIT License, unless stated otherwise in the individual gist.

1 0 2
1 MIT License
2
3 Copyright (c) 2024 Emanuele Gori
4
5 Permission is hereby granted, free of charge, to any person obtaining a copy
6 of this software and associated documentation files (the "Software"), to deal
7 in the Software without restriction, including without limitation the rights
8 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 copies of the Software, and to permit persons to whom the Software is
10 furnished to do so, subject to the following conditions:
emanuelegori
Last active 20 hours ago bookorbit docker docker-compose

BookOrbit è una piattaforma self‑hosted e open source per gestire e leggere ebook, audiolibri e fumetti. Offre lettori integrati per più formati, gestione automatica dei metadati, sincronizzazione con Kobo e KOReader, supporto multi‑utente con SSO, cataloghi OPDS privati e analitiche di lettura avanzate, il tutto con una semplice distribuzione via Docker e senza abbonamenti.

0 0 1
1 services:
2 bookorbit:
3 container_name: bookorbit-app
4 image: ghcr.io/bookorbit/bookorbit:latest
5 restart: unless-stopped
6 init: true
7 ports:
8 - "3000:3000"
9 environment:
10 NODE_ENV: production
emanuelegori
Last active 3 months ago php update-site

Sync Update sito statico da Forgejo. Eseguito periodicamente via Scheduled Task Alwaysdata

0 0 1
1 <?php
2 /**
3 * Sync sito statico da Forgejo
4 * Eseguito periodicamente via Scheduled Task Alwaysdata
5 */
6
7 define('REPO_API', 'https://forgejo.it/api/v1/repos/UTENTE/REPO/commits?limit=1');
8 define('REPO_URL', 'https://forgejo.it/UTENTE/REPO.git');
9 define('WWW_PATH', __DIR__ . '/www');
10 define('HASH_FILE', __DIR__ . '/last_commit.txt');