This file contains hidden or 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
| --- | |
| version: "3" | |
| services: | |
| db: | |
| image: mariadb:10.6 | |
| restart: unless-stopped | |
| environment: | |
| - MARIADB_ROOT_PASSWORD=${DB_PASSWORD} | |
| - MARIADB_USER=${DB_USERNAME} |
This file contains hidden or 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
| --- | |
| - hosts: linkace | |
| vars_files: | |
| - vars.yml | |
| tasks: | |
| - name: Initialize the deploy root | |
| deploy_helper: path={{ site_root }} | |
This file contains hidden or 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 | |
| // Randomizes the names of all files in the current directory | |
| // Use with caution! | |
| $files = scandir(__DIR__); | |
| $files = array_filter($files, fn($file) => !in_array($file, ['.', '..', 'randomize.php', '.DS_Store'])); | |
| echo 'Renaming ' . count($files) . 'files now'; | |
| shuffle($files); | |
| foreach ($files as $file) { | |
| $new = hash('crc32', $file) . time() . '.' . pathinfo($file, PATHINFO_EXTENSION); | |
| var_dump("Renaming $file to $new"); |
This file contains hidden or 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 | |
| // @see https://www.php.net/manual/en/function.natsort.php | |
| $numbers = [26, 6, 2, 65]; | |
| sort($numbers); | |
| // 2, 26, 6, 65 | |
| natsort($numbers); | |
| // 2, 6, 26, 65 |
This file contains hidden or 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 | |
| // Run all database migrations up to a specific migration and stop there. Useful for testing migrations which alter data or mess with your models. | |
| function migrateUntil(string $migration): void | |
| { | |
| $migrator = app('migrator'); | |
| $dbPath = base_path('database/migrations'); | |
| $migrations = collect($migrator->getMigrationFiles($dbPath)) | |
| ->takeUntil($dbPath . '/' . $migration); |
This file contains hidden or 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
| /* reset */ | |
| body, td, table, input, textarea, .pagetop, * { | |
| font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| font-weight: 400; | |
| -webkit-font-smoothing: antialiased; | |
| } | |
| body { | |
| background: #fafafa; | |
| margin: 0; |
This file contains hidden or 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
| Provider | Price per 1000 emails | ||
|---|---|---|---|
| 1. | Amazon SES | $0.10 | |
| 2. | Sendgrid | $0.374 | |
| 3. | Sparkpost | $0.40 | |
| 4. | Mailgun | $0.70 | |
| 5. | Postmark | $1.00 |
This file contains hidden or 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
| Plan: Test | Plan: 50k | ||
|---|---|---|---|
| Included emails | ? | 50000 | |
| Price per month | none | $20 | |
| Price per 1000 emails | none | $0.4 | |
| Price per 1 email | none | $0.0004 | |
| Price per 1000 emails after limit | none | $1.00 | |
| Price per 1 email after limit | none | $0.001 | |
| Notable restrictions | none | none |
This file contains hidden or 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
| Plan: Free | Plan: 10k Emails | ||
|---|---|---|---|
| Included emails | 100 | 10000 | |
| Price per month | none | $10 | |
| Price per 1000 emails | none | $1.00 | |
| Price per 1 email | none | $0.001 | |
| Price per 1000 emails after limit | none | $1.25 | |
| Price per 1 email after limit | none | $0.00125 | |
| Notable restrictions | none | none |
This file contains hidden or 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
| Plan: Free | Plan: Essentials | ||
|---|---|---|---|
| Included emails | 3000 | 40000 | |
| Price per month | none | $14.95 | |
| Price per 1000 emails | none | $0.374 | |
| Price per 1 email | none | $0.000374 | |
| Price per 1000 emails after limit | none | $1.00 | |
| Price per 1 email after limit | none | $0.001 | |
| Notable restrictions | 100 emails / day | none |