This was tested on:
- Ubuntu 14.04 x64
- Ubuntu 16.04 x64
| #!/bin/bash | |
| # We install the fonts locally, not into /usr/share/fonts/truetype to avoid unnecessary sudo rights | |
| DEST_DIR="${HOME}/.fonts/segoeui" | |
| mkdir -p $DEST_DIR | |
| # Download 15 *.ttf files | |
| VARIANTS='segoeui segoeuib segoeuii segoeuiz segoeuil seguili segoeuisl seguisli seguisb seguisbi seguibl seguibli seguiemj seguisym seguihis' | |
| for VARIANT in $VARIANTS; do |
| app/Domain/Leaves/ | |
| ├── Actions | |
| ├── QueryBuilders | |
| ├── Collections | |
| ├── DataTransferObjects | |
| ├── Events | |
| ├── Exceptions | |
| ├── Listeners | |
| ├── Contracts | |
| ├── Rules |
| <?php declare(strict_types = 1); | |
| namespace App\Domain\User\States; | |
| use Exception; | |
| use App\Models\User; | |
| use App\Domain\User\Exceptions\AccountDeletedUserStateException; | |
| use App\Domain\User\Actions\AccountRestorationEmailAction; | |
| class AccountDeletedUserState extends UserState { |
| <?php declare(strict_types = 1); | |
| use App\Http\Controllers\Controller; | |
| class AuthController extends Controller | |
| { | |
| public function authenticate($request): JsonResponse | |
| { | |
| $this->validate($request, [ | |
| 'email' => 'required|email', |
| <?php | |
| function myFunction() { | |
| foreach ($itemsInFirsArray as $firstArrItem) { | |
| // some code | |
| foreach($itemsInOtherArray as $otherArrItem) { | |
| // some code goes here | |
| switch ($variableToMatch) { |
| <?php | |
| function myFunction() { | |
| foreach ($itemsInFirsArray as $firstArrItem) { | |
| // some code | |
| foreach($itemsInOtherArray as $otherArrItem) { | |
| // some code goes here | |
| switch ($variableToMatch) { |
| import {Component, Input, ViewChild} from '@angular/core'; | |
| import {Http} from "@angular/http"; | |
| import {ToastsManager} from "ng2-toastr"; | |
| import {Fetch, FetchedArrayResult} from "../shared/Fetch"; | |
| import {Payroll} from "./Payroll"; | |
| import {Confirm} from "../shared/components/confirm"; | |
| import {AuthService} from "../auth/auth.service"; | |
| import { Router, ActivatedRoute } from '@angular/router'; | |
| import { EmployeeService } from '../services/employee.service'; |
| #!/bin/bash | |
| # What it is: a script to compile and install Nginx manually in Ubuntu 14.04 server | |
| # Author: Pothi Kalimuthu | |
| # Author URL: http://pothi.info | |
| # License: GPL v2 | |
| ### VARIABLES ### | |
| # Please know that this script should be executed as normal user with __sudo__ privileges. |
| # Install linux update, followed by GCC and Make | |
| sudo yum -y update | |
| sudo yum install -y gcc make | |
| # Install Nginx and php56-FPM | |
| sudo yum install -y nginx php56-fpm | |
| # Install php56 extensions | |
| sudo yum install -y php56-devel php-mysql php56-pdo php56-pear php56-mbstring php56-cli php56-odbc php56-imap php56-gd php56-xml php56-soap |