Control the versions using environment variables, put this in your .bashrc
or .zshrc
.
PHP_VERSION=7.1
NODE_VERSION=8.0
#MySql | |
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password 123' | |
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password 123' | |
apt-get install -y mysql-server | |
mysql -uroot -p123 -e "CREATE USER 'user'@'%' IDENTIFIED BY 'pass';" | |
mysql -uroot -p123 -e "GRANT ALL ON *.* TO 'user'@'%';" | |
#Allow external connection | |
#Mint/Ubuntu Version | |
#-sed -i "/^bind-address*/s/^/#/g" /etc/mysql/mysql.conf.d/mysqld.cnf |
#! /bin/bash | |
user=manolis | |
backups=/home/manolis/backups | |
if [[ $EUID > 0 ]] | |
then echo "Please run as root" | |
exit | |
fi |
<?php | |
/* | |
* Plugin: StreamlineFoundation | |
* | |
* Class: Schedule | |
* | |
* Description: Provides scheduling mechanics including creating a schedule, testing if a specific moment is part of the schedule, moving back | |
* and forth between scheduled moments in time and translating the created schedule back to a human readable form. | |
* | |
* Usage: ::fromCronString() creates a new Schedule class and requires a string in the cron ('* * * * *', $language) format. |
Last Message ID: 89569
Andrew M. Webb on Twitter |
---|
// place this file in __mocks__ | |
let pendingAssertions | |
exports.prompt = prompts => { | |
if (!pendingAssertions) { | |
throw new Error(`inquirer was mocked and used without pending assertions: ${prompts}`) | |
} | |
const answers = {} |
##Setup your server (this would ideally be done with automated provisioning)
npm install -g forever
##Install flightplan
npm install -g flightplan
npm install flightplan --save-dev
angular.module('myApp', ['ionic', 'myApp.services', 'myApp.controllers']) | |
.run(function(DB) { | |
DB.init(); | |
}); |