This was tested on:
- Ubuntu 14.04 x64
- Ubuntu 16.04 x64
| #!/bin/bash | |
| GREEN='\033[0;32m' | |
| CYAN='\033[0;36m' | |
| NC='\033[0m' | |
| echo "${CYAN}Welcome to Easy LEMP Stack Setup${NC}" | |
| echo "${CYAN}Ubuntu 18.04 Supported${NC}" | |
| echo "${GREEN}Created By SUST CSE Developer Network (SCDN)\n${NC}" | |
| echo "${GREEN}Maintained By Rafik Farhad\n${NC}" |
| <?php | |
| // This can be found in the Symfony\Component\HttpFoundation\Response class | |
| const HTTP_CONTINUE = 100; | |
| const HTTP_SWITCHING_PROTOCOLS = 101; | |
| const HTTP_PROCESSING = 102; // RFC2518 | |
| const HTTP_OK = 200; | |
| const HTTP_CREATED = 201; | |
| const HTTP_ACCEPTED = 202; |
| <template> | |
| <!-- | |
| This is part of a larger project so it includes Vuex state handling which provides | |
| a global error alert bar, logged in status, redirect if already logged in, etc. | |
| This uses: Vue, Vuex, Vuetify | |
| --> | |
| <v-container fluid> | |
| <v-layout row> | |
| <v-flex xs12 sm6 offset-sm3> |
| // Add a 401 response interceptor | |
| window.axios.interceptors.response.use(function (response) { | |
| return response; | |
| }, function (error) { | |
| if (401 === error.response.status) { | |
| swal({ | |
| title: "Session Expired", | |
| text: "Your session has expired. Would you like to be redirected to the login page?", | |
| type: "warning", | |
| showCancelButton: true, |
| Execute the Steps serially | |
| laravel 5.1 | |
| assuming domain name 'sustcse12.cf' | |
| sudo apt-get update | |
| sudo mkdir -p /var/www/sustcse12.cf/public_html | |
| sudo chown -R $USER:$USER /var/www/sustcse12.cf/public_html | |
| cd /var/www/sustcse12.cf/public_html |
| Execute the Steps serially | |
| laravel 5.1 | |
| assuming domain name 'sustcse12.cf' | |
| sudo apt-get update | |
| sudo mkdir -p /var/www/sustcse12.cf/public_html | |
| sudo chown -R $USER:$USER /var/www/sustcse12.cf/public_html | |
| cd /var/www/sustcse12.cf/public_html |
| {{ $var }} β Echo content | |
| {{ $var or 'default' }} β Echo content with a default value | |
| {{{ $var }}} β Echo escaped content | |
| {{-- Comment --}} β A Blade comment | |
| @extends('layout') β Extends a template with a layout | |
| @if(condition) β Starts an if block | |
| @else β Starts an else block | |
| @elseif(condition) β Start a elseif block | |
| @endif β Ends a if block | |
| @foreach($list as $key => $val) β Starts a foreach block |