Skip to content

Instantly share code, notes, and snippets.

@FrangaL
FrangaL / kali-archive-keyring.sh
Last active February 24, 2024 13:03
Download the Kali archive keyring
#!/bin/bash
set -e
## Alternative 1
# Key server
alternative1() {
KEY_SRV=${KEY_SRV:-"keyserver.ubuntu.com"}
#GPG_KEY="7D8D0BF6"
GPG_KEY="ED444FF07D8D0BF6"
@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 \