Skip to content

Instantly share code, notes, and snippets.

Avatar
😁

FrangaL

😁
View GitHub Profile
@FrangaL
FrangaL / laravel_installer.sh
Created Jul 19, 2020
Installing Laravel Framework on Ubuntu/Debian with Nginx and PHP-FPM 7
View laravel_installer.sh
#!/bin/bash -e
# Installing Laravel Framework on Ubuntu/Debian with Nginx and PHP-FPM 7
git_laravel="https://github.com/laravel/laravel.git"
php_version="7.4"
apt update
# Install dependencies
apt -y install lsb-release apt-transport-https ca-certificates git wget curl unzip
@FrangaL
FrangaL / cpu_temp_rrdtool.sh
Created Jul 13, 2020
Raspberry PI - CPU temperature rrdtool
View cpu_temp_rrdtool.sh
#!/bin/bash -e
# apt-get install rrdtool 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 \
--step 60 \