All gists

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');
emanuelegori
Last active 3 months ago bookmark docker readeck

Readeck è una semplice applicazione web che ti permette di salvare i contenuti delle pagine web che ti piacciono e che vuoi conservare per sempre. Puoi vederla come un gestore evoluto di segnalibri e uno strumento per leggere dopo con anteprima.

0 0 1
1 services:
2 readeck:
3 image: codeberg.org/readeck/readeck:latest
4 container_name: readeck
5 ports:
6 - 8000:8000
7 environment:
8 # Defines the application log level. Can be error, warn, info, debug.
9 - READECK_LOG_LEVEL=info
10 # The IP address on which Readeck listens.
emanuelegori
Last active 3 months ago GeoLite2 docker geoip update

The GeoIP Update program performs automatic updates of GeoIP2 and GeoLite2 binary databases. CSV databases are not supported.

0 0 1
1 services:
2 geoipupdate:
3 container_name: geoipupdate
4 image: ghcr.io/maxmind/geoipupdate
5 restart: unless-stopped
6 environment:
7 - GEOIPUPDATE_ACCOUNT_ID=XXXXXX
8 - GEOIPUPDATE_LICENSE_KEY=XXXXXXXXXXXXXXXX
9 - 'GEOIPUPDATE_EDITION_IDS=GeoLite2-Country'
10 - GEOIPUPDATE_FREQUENCY=72