Run this command in sail project folder:
docker-compose exec mysql bash
execute the mysql -u root -p
command
provide the default password password
then executes
/** | |
* Mass (bulk) insert or update on duplicate for Laravel 4/5 | |
* | |
* insertOrUpdate([ | |
* ['id'=>1,'value'=>10], | |
* ['id'=>2,'value'=>60] | |
* ]); | |
* | |
* | |
* @param array $rows |
namespace Acme\V1\Billing; | |
// BillableInterface.php | |
use Laravel\Cashier\BillableInterface as CashierInterface; | |
interface BillableInterface extends CashierInterface { | |
} |
user web; | |
# One worker process per CPU core. | |
worker_processes 8; | |
# Also set | |
# /etc/security/limits.conf | |
# web soft nofile 65535 | |
# web hard nofile 65535 | |
# /etc/default/nginx |
Run this command in sail project folder:
docker-compose exec mysql bash
execute the mysql -u root -p
command
provide the default password password
then executes
#!/bin/sh | |
# This script will backup one or more mySQL databases | |
# and then optionally email them and/or FTP them | |
# This script will create a different backup file for each database by day of the week | |
# i.e. 1-dbname1.sql.gz for database=dbname1 on Monday (day=1) | |
# This is a trick so that you never have more than 7 days worth of backups on your FTP server. | |
# as the weeks rotate, the files from the same day of the prev week are overwritten. |
#!/bin/bash | |
# Configuration | |
. /etc/mysql/mysql_backup.conf | |
# Dump the mysql databases to a daily dump file. | |
function log() | |
{ | |
logger -i -p daemon.info -t mysqldump "$1" | |
echo $1 >> $LOGFILE |
#!/bin/sh | |
echo 'Installing Oracle Instant Client...' | |
export DEBIAN_FRONTEND=noninteractive | |
apt-get -yq install libaio1 unzip php-dev | |
# See: http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html#ic_x64_inst | |
client_version='12_2' |
System overview | |
Staff, roles & responsibilities | |
Environments | |
Applications | |
Software Licenses | |
Version control | |
Process Flows | |
Documentation | |
Support & Maintenance | |
Issue Submission & Resolution |
/** | |
* Think of this "main.js" file as your application bootstrap. | |
*/ | |
import Vue from 'vue' | |
import Resource from 'vue-resource' | |
import VueRouter from 'vue-router' | |
import routes from './routes' | |
import middleware from './middleware' |
<?php | |
/* | |
* | |
* This script will backup your web site by remotely archiving all files on the root FTP directory. | |
* It will work even if your web server is memory limited buy splitting zips in several arhive files it they are too many files. | |
* All zip files will be stored in a directory called temporary which must be writable. | |
* | |
* How to use it: | |
* - Place the script at the root of your FTP. |