Topics coming in the next edition:
- ✅ Load balancers from scratch (published on 10th of October)
- ✅ Terraform (published on 12th of November)
- HELM
- Serving static content
- CGI, FastCGI, php-fpm
| searchd | |
| { | |
| listen = 9306:mysql41 | |
| listen = /var/run/mysqld/mysqld.sock:mysql41 | |
| listen = 9308:http | |
| log = /var/log/manticore/searchd.log | |
| query_log = /var/log/manticore/query.log | |
| binlog_path = /var/log/manticore | |
| pid_file = /var/run/manticore/searchd.pid | |
| mysql_version_string = 5.0.0 |
| #/usr/bin/bash | |
| # strings to look for in our file | |
| # Note: you could just parse the whole file. But if you put in a bad password your IP | |
| # could end up on the bad guy list | |
| declare -a badstrings=("Failed password for invalid user" | |
| "input_userauth_request: invalid user" | |
| "pam_unix(sshd:auth): check pass; user unknown" | |
| "input_userauth_request: invalid user" | |
| "does not map back to the address" | |
| "pam_unix(sshd:auth): authentication failure" |
| name: Tests (PHP) | |
| on: [push] | |
| jobs: | |
| tests: | |
| name: Run tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v1 |
Source: https://medium.com/@Mahmoud_Zalt/eloquent-relationships-cheat-sheet-5155498c209
| One to one ( 1-1) |
One to many ( 1-n) |
Poly one to many ( 1x-n) |
Many to many ( n-n) |
Poly many to many ( nx-n) |
|
|---|---|---|---|---|---|
| Number of models | 2 only | 2 only | 3 and above | 2 only | 3 and above |
| Number of tables | 2 (1/model) | 2 (1/model) | 3+ (1/model) | 3 (1/model + pivot) | 4+ (1/model + pivot) |
| Pivot table | - | - | - | required |
— Clone repository with submodules automatically:
git clone --recursive [email protected]:name/repo.git
— Initialize submodules after regular cloning:
| <?php | |
| namespace App\Listeners; | |
| use App\Media; | |
| use FFMpeg\FFMpeg; | |
| use FFMpeg\Format\Video\X264; | |
| use Illuminate\Queue\InteractsWithQueue; | |
| use Illuminate\Contracts\Queue\ShouldQueue; | |
| use Illuminate\Queue\SerializesModels; |
| #!/bin/bash | |
| ############################################################################################## | |
| ## Install Nginx with OpenSSL, and ngx_pagespeed | |
| ## | |
| ## Author: Andrew Maxwell <[email protected]> | |
| ## Date: 2017/09/18 | |
| ## Version: 0.3 | |
| ## | |
| ## Disclaimer: I am not responsible for how you use this script. Do not assume this script |