Create SendWelcomeEmailNotification notification
php artisan make:notification SendWelcomeEmailNotification
| #!/bin/bash | |
| # file: ttfb.sh | |
| # curl command to check the time to first byte | |
| # ** usage ** | |
| # 1. ./ttfb.sh "https://google.com" | |
| # 2. seq 10 | xargs -Iz ./ttfb.sh "https://google.com" | |
| curl -o /dev/null \ | |
| -H 'Cache-Control: no-cache' \ | |
| -s \ |
| #!/bin/bash | |
| # file: monitor-ttfb.sh | |
| # note: to deploy this, add the following line to your crontab | |
| # * 10-17 * * 1-5 /path/to/monitor-ttfb.sh "https://domain-to-monitor.com" /path/to/log-file.log | |
| # the above cronjob runs every minute from 10AM to 5PM only on weekdays | |
| function ttfb() { | |
| curl -o /dev/null \ | |
| -H 'Cache-Control: no-cache' \ | |
| -H 'Accept-Encoding: gzip, deflate, sdch' \ |
| const Validate = require('form-element/validate') | |
| const State = require('form-element/state') | |
| const Form = require('form-element') | |
| const html = require('bel') | |
| const fields = [ | |
| ['credentials', [ | |
| ['username', 'text', (str) => str.length < 20], | |
| ['password', 'password', (str) => str.length > 8 && str.length < 99] | |
| ]], |
| 100+ different js counter apps... |
Before proceed, you may want to follow up Send Welcome Email Notification with Event and Listener.
Create new migration script to add activation_token and activated_at column in users table.
php artisan make:migration add_activation_column --table=users
Examples:
public function sendSingleExample() {
(new SendMailViaAPI('<postmark-server-token>'))->single(
new Mail('sender name', 'sender email', 'recipient email', 'hello from exampletown', '<strong>this is bold</strong> this is not.')
);
}
public function sendBatchExample() {| alias weather='curl -s wttr.in | sed -n "1,7p"' |
| @setup | |
| require __DIR__.'/vendor/autoload.php'; | |
| (new \Dotenv\Dotenv(__DIR__, '.env'))->load(); | |
| $appName = "my-app.com"; | |
| $repository = "spatie/{$appName}"; | |
| $baseDir = "/home/forge/{$appName}"; | |
| $releasesDir = "{$baseDir}/releases"; | |
| $currentDir = "{$baseDir}/current"; | |
| $newReleaseName = date('Ymd-His'); |
| <?php | |
| /************************************************************************* | |
| * Get File Information | |
| */ | |
| // Assuming these come from some data source in your app | |
| $s3FileKey = 's3/key/path/to/file.ext'; | |
| $fileName = 'file.ext'; |