Skip to content

Instantly share code, notes, and snippets.

View blantonious's full-sized avatar
🎯
Focusing

blantonious blantonious

🎯
Focusing
View GitHub Profile
@blantonious
blantonious / www-backup.sh
Created January 15, 2022 19:17
Backup Websites
#!/bin/bash
#----------------------------------------
# OPTIONS
#----------------------------------------
DAYS_TO_KEEP=7 # 0 to keep forever
WWW_PATH='/var/www/public'
BACKUP_PATH='/backups/www'
#----------------------------------------
# Create the backup folder
@blantonious
blantonious / mysql-backup.sh
Created January 15, 2022 17:26
Backup all MySQL databases
#!/bin/bash
#----------------------------------------
# OPTIONS
#----------------------------------------
USER='root' # MySQL User
PASSWORD='password' # MySQL Password
DAYS_TO_KEEP=0 # 0 to keep forever
GZIP=1 # 1 = Compress
BACKUP_PATH='/backups/mysql'
#----------------------------------------
@blantonious
blantonious / Laravel hide ENV variables
Created November 12, 2020 16:31
Hides sensitive information when debug mode is set to true in Laravel project
//Add this to your config/app.php file
'debug_blacklist' => [
'_ENV' => [
'APP_KEY',
'DB_PASSWORD',
'REDIS_PASSWORD',
'MAIL_PASSWORD',
'PUSHER_APP_KEY',
'PUSHER_APP_SECRET',
],
@blantonious
blantonious / Unbuntu1604-LEMP.sh
Last active January 1, 2021 11:13
Configuration script to prep and install Laravel 5.6 on Ubuntu 16.04
#!/bin/bash
# /*=================================
# = VARIABLES =
# =================================*/
WELCOME_MESSAGE='
____ ____ ____ ____ ____
||N ||||G ||||I ||||N ||||X ||
||__||||__||||__||||__||||__||
#!/bin/bash
# /*=================================
# = VARIABLES =
# =================================*/
INSTALL_NGINX_INSTEAD=1
WELCOME_MESSAGE='
____ ____ ____ ____ ____
||D ||||e ||||v ||||I ||||T ||
#!/bin/bash
# How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu 16.04
# https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-16-04
# PHP My Admin Secure
# https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-16-04
# =================================================
# At many places it will ask for your inputs for using disk space