-
Create a new site
# from ~/vagrant-lamp ansible-playbook ansible/playbooks/vagrant/site/php.yml
name it personal-site.dev
| <?php | |
| class ConsoleLogger { | |
| private $bold = true; | |
| public function __construct($bold = true) { | |
| $this->bold = $bold; | |
| } | |
| public function info($msg) { |
| <?php | |
| /* | |
| * colorize and individual color functions adapted from | |
| * https://kpumuk.info/ruby-on-rails/colorizing-console-ruby-script-output/ | |
| * see also http://misc.flogisoft.com/bash/tip_colors_and_formatting | |
| */ | |
| function colorize($text, $code, $bold) { | |
| $preamble = "\033"; |
| #!/bin/bash | |
| # This script will replace the ansible parts of the codeup vagrant setup | |
| # | |
| # bash -c "$(curl https://gist.githubusercontent.com/zgulde/2ba2d5ed67fcb58dca35305bc8be8b76/raw/2f451faba1913535c724b586598fafd62254e2cc/php-update.sh)" | |
| set -e | |
| if [[ ! -d ~/vagrant-lamp ]]; then | |
| echo "~/vagrant-lamp directory not found!" |
The following code block is syntactically correct, but will not produce the desired output. What can you change to fix this?
function sayHello() {
console.log('Hello, ' + name + '!');
}
sayHello("Zach");// desired output: "Hello, Zach!"
| fallocate -l 1G /swap | |
| mkswap /swap | |
| echo "/swap none swap sw 0 0" >> /etc/fstab | |
| swapon -ae |
MySQL General error: 1215 Cannot add foreign key constraint
This will give you more details
echo 'show engine innodb status\G' | mysql -u homestead -p | grep -C10 -i latest
s/homestead/your username/