Skip to content

Instantly share code, notes, and snippets.

:octocat:

Matteo Merola mattmezza

:octocat:
Block or report user

Report or block mattmezza

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mattmezza
mattmezza / ftpbackup.sh
Last active Sep 28, 2018
Super Simple Backup System, a very simple system to automatically backup mysql and ftp.
View ftpbackup.sh
#!/bin/bash
OUTDIR=$1
BACKUP=$OUTDIR/tmp
NOW=$(date +"%d-%m-%Y")
# clean up tmp dir
rm -f -r $BACKUP/*
# backup a folder of a website
FILE=fs-rootfolder-full.$NOW
@mattmezza
mattmezza / vhost.sh
Last active Dec 31, 2019
bash script to create virtual host vhost with apache httpd and CentOs 7
View vhost.sh
#!/bin/bash
# This script is used for create virtual hosts on CentOs.
# Created by alexnogard from http://alexnogard.com
# Improved by mattmezza from http://you.canmakethat.com
# Feel free to modify it
# PARAMETERS
#
# $usr - User
# $dir - directory of web files
# $servn - webserver address without www.
You can’t perform that action at this time.