wget https://get.symfony.com/cli/installer -O - | bash
export PATH="$HOME/.symfony/bin:$PATH"
sudo mv /home/juyal/.symfony/bin/symfony /usr/local/bin/symfony
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Route::get('/foo', function() | |
{ | |
$exitCode = Artisan::call('command:name', ['--option' => 'foo']); | |
// | |
}); | |
?> |
sudo apt-get install -y build-essential
sudo apt-get install curl -y
sudo apt-get install libpng-dev libjpeg-dev -y
sudo apt-get install pngquant -y
sudo apt-get install git -y
sudo apt-get install openssh-server -y
sudo apt-get install unrar -y
# Fix local issue: https://askubuntu.com/questions/162391/how-do-i-fix-my-locale-issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql -u root -p | |
CREATE DATABASE phpapp_db; | |
CREATE USER 'phpapp_user'@'localhost' IDENTIFIED BY 'phpapp_user_pass'; | |
GRANT ALL ON phpapp_db.* TO 'phpapp_user'@'localhost'; | |
exit; | |
mysql -u phpapp_user -pphpapp_user_pass -D phpapp_db; | |
exit; | |
mysql -u phpapp_user -pphpapp_user_pass -D phpapp_db < dummy_data.sql; |
# Download and Configure WordPress
wp core download
wp core config --dbhost=host.db --dbname=prefix_db --dbuser=username --dbpass=password
# Configure wp-config.php
chmod 644 wp-config.php
wp core install --url=yourwebsite.com --title="Your Blog Title" --admin_name=wordpress_admin --admin_password=4Long&Strong1 --admin_email=you@example.com
# Enable File Uploading
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:7.0.4-fpm | |
RUN apt-get update && apt-get install -y libmcrypt-dev \ | |
mysql-client libmagickwand-dev --no-install-recommends \ | |
&& pecl install imagick \ | |
&& docker-php-ext-enable imagick \ | |
&& docker-php-ext-install mcrypt pdo_mysql |
sudo bin/cake bake plugin Apps
You will be asked to choose a location of the plugin. Select outermost Plugin/ folder.
Creates proper directory structure for new plugin
Adds entry in config/bootstrap.php file to load newly created plugin
It is recommended that you delete entry of newly baked plugin from config/bootstrap.php file as you will be able to enable-disable plugin from UI. The line will look something like:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.wp_slrp_img_wrap { | |
max-width: 160px; | |
text-align: right; | |
margin-bottom: 10px; | |
} | |
.wp_slrp_img { | |
display: block; | |
max-width: 150px; | |
max-height: 150px; |
Size | Width x Height (mm) | Width x Height (in) |
---|---|---|
4A0 | 1682 x 2378 mm | 66.2 x 93.6 in |
2A0 | 1189 x 1682 mm | 46.8 x 66.2 in |
A0 | 841 x 1189 mm | 33.1 x 46.8 in |
A1 | 594 x 841 mm | 23.4 x 33.1 in |
A2 | 420 x 594 mm | 16.5 x 23.4 in |
A3 | 297 x 420 mm | 11.7 x 16.5 in |
A4 | 210 x 297 mm | 8.3 x 11.7 in |
A5 | 148 x 210 mm | 5.8 x 8.3 in |