Skip to content

Instantly share code, notes, and snippets.

@FrangaL
FrangaL / laravel_installer.sh
Last active January 21, 2022 16:18
Installing Laravel Framework on Ubuntu/Debian with Nginx and PHP-FPM 8
#!/bin/bash -e
# Installing Laravel Framework on Ubuntu/Debian with Nginx and PHP-FPM 8.1
git_laravel="https://github.com/laravel/laravel.git"
php_version="8.1"
apt update
# Install dependencies
apt -y install lsb-release apt-transport-https ca-certificates git wget curl unzip
@FrangaL
FrangaL / cpu_temp_rrdtool.sh
Last active October 26, 2023 12:27
Raspberry PI - CPU temperature rrdtool
#!/bin/bash -e
command rrdtool || sudo apt-get install rrdtool
command pngquant || sudo apt-get install pngquant
rrdtools_dir=/var/www/html/laravel/public/images/temp-sensor
rrdtools_db=cpu_temp_data.rrd
create(){
rrdtool create $rrdtools_dir/$rrdtools_db \
--start now \
@byk0t
byk0t / docker-compose.yml
Last active January 26, 2024 16:08
Docker compose for odoo:14 and PostgreSQL:13
version: '3'
services:
db:
image: postgres:13
volumes:
- db-data:/var/lib/postgresql/data/pgdata
ports:
- 5432:5432/tcp
environment:
- POSTGRES_PASSWORD=odoo