This file contains 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 | |
use FluentCrm\App\Models\Campaign; | |
use FluentCrm\Framework\Database\Orm; | |
use FluentCrm\App\Models\Lists; | |
use FluentCrm\App\Services\CampaignProcessor; | |
$listName = 'scuba-news-list'; | |
$listApi = FluentCrmApi('lists'); | |
$list = $listApi->get()->where('slug',$listName)->first(); |
This file contains 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 | |
use FluentCrm\App\Models\Campaign; | |
use FluentCrm\Framework\Database\Orm; | |
use FluentCrm\App\Models\Lists; | |
$email = Campaign::create( | |
[ | |
'email_subject'=>'Test Subject ' . date('Y-m-d H:i:s'), | |
'email_body'=>'This is the body of the email.', | |
'type'=>'campaign', |
This file contains 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
#!/bin/bash | |
#################### CHANGE THE FOLLOWING VARIABLES #################### | |
TOKEN="" // Digital Ocean API Token | |
DOMAIN="" // Domain Name | |
RECORD_ID="" // DO Assigned each record in a Zone file an ID. To update a record you need that ID. | |
LOG_FILE="/var/log/ips.txt" | |
######################################################################## | |
CURRENT_IPV4="$(dig +short myip.opendns.com @resolver1.opendns.com)" |
This file contains 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
# Lando aliases and functions | |
# Author: Cal Evans | |
# Copyright 2021 All Rigths Reserved | |
# License MIT | |
# | |
# db | |
# | |
# Show what Lando (docker ) DB services are running and what port they are | |
# running on | |
# |