Copy the deploy.sh
on root of your project.
Just run ./deploy.sh
#!/usr/bin/env bash | |
# requires jq - https://stedolan.github.io/jq/ | |
function ver_highest() { | |
if [[ $# -lt 2 ]]; then | |
echo "usage: ver_highest v1 v2 [v3...]" | |
return 1 | |
fi | |
awk -v OFS="\n" '$1=$1' <<< "$*" | sort -V | tail -n1 | |
} |
#!/bin/bash | |
# Shell script to backup MySQL database | |
# Set these variables | |
MyUSER="" # DB_USERNAME | |
MyPASS="" # DB_PASSWORD | |
MyHOST="" # DB_HOSTNAME | |
# Backup Dest directory | |
DEST="" # /home/username/backups/DB |
<?php | |
namespace App\Console; | |
use Illuminate\Console\Scheduling\Schedule; | |
use Illuminate\Foundation\Console\Kernel as ConsoleKernel; | |
class Kernel extends ConsoleKernel | |
{ | |
/** |
// Common Route Patterns http://laravel-tricks.com/tricks/routing-patterns | |
// Patterns | |
Route::pattern('id', '\d+'); | |
Route::pattern('hash', '[a-z0-9]+'); | |
Route::pattern('hex', '[a-f0-9]+'); | |
Route::pattern('uuid', '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}'); | |
Route::pattern('base', '[a-zA-Z0-9]+'); | |
Route::pattern('slug', '[a-z0-9-]+'); | |
Route::pattern('username', '[a-z0-9_-]{3,16}'); |
# Customize BASH PS1 prompt to show current GIT repository and branch. | |
# by Mike Stewart - http://MediaDoneRight.com | |
# SETUP CONSTANTS | |
# Bunch-o-predefined colors. Makes reading code easier than escape sequences. | |
# I don't remember where I found this. o_O | |
# Reset | |
Color_Off="\[\033[0m\]" # Text Reset |
#!/bin/bash | |
# Shell script to backup MySql database | |
# To backup Nysql databases file to /backup dir and later pick up by your | |
# script. You can skip few databases from backup too. | |
# For more info please see (Installation info): | |
# http://www.cyberciti.biz/nixcraft/vivek/blogger/2005/01/mysql-backup-script.html | |
# Last updated: Aug - 2005 | |
# -------------------------------------------------------------------- | |
# This is a free shell script under GNU GPL version 2.0 or above | |
# Copyright (C) 2004, 2005 nixCraft project |
/*********************************************************************************************************************** | |
*********************************************************************************************************************** | |
* CONTENTS: | |
* Native Object | |
* Object Literal | |
* Basic Object | |
* Psuedo-Class | |
* Self Executing/Invoking Structure | |
* Lazy Function | |
* Module Pattern |