Skip to content

Instantly share code, notes, and snippets.

View Cannonb4ll's full-sized avatar
🏠

Dennis Smink Cannonb4ll

🏠
View GitHub Profile
@Cannonb4ll
Cannonb4ll / ftpbackup.sh
Created November 28, 2019 08:16 — forked from Glennmen/ftpbackup.sh
System + MySQL backup script
#!/bin/sh
# System + MySQL backup script
# Full backup day - Sun (rest of the day do incremental backup)
# Copyright (c) 2005-2006 nixCraft <http://www.cyberciti.biz/fb/>
# This script is licensed under GNU GPL version 2.0 or above
# Automatically generated by http://bash.cyberciti.biz/backup/wizard-ftp-script.php
# ---------------------------------------------------------------------
### System Setup ###
DIRS="/home /etc /var/www"
BACKUP=/tmp/backup.$$
@Cannonb4ll
Cannonb4ll / mysqldump-ignore-multiple-tables
Created December 29, 2018 14:12 — forked from insytes/mysqldump-ignore-multiple-tables
mysqldump ignore multiple tables
mysqldump -u root -p database --ignore-table=database.table1 --ignore-table=database.table2 > dump.sql
@Cannonb4ll
Cannonb4ll / GoogleDriveServiceProvider.php
Created April 30, 2018 17:39 — forked from sergomet/GoogleDriveServiceProvider.php
Setup a Laravel Storage driver with Google Drive API
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class GoogleDriveServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.