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
addEventListener('fetch', event => { | |
event.respondWith(handleRequest(event.request)); | |
}); | |
const API_URL = 'https://dummyjson.com/test'; | |
const POSTMARK_URL = 'https://api.postmarkapp.com/email'; | |
const POSTMARK_API_KEY = ''; | |
const EMAIL_PAYLOAD_TEMPLATE = { | |
"From": "[email protected]", | |
"To": "[email protected]", |
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
A list of all the videos in the course | |
Intro Video and Thanks | |
Categories Explained | |
Laravel Cashier | |
Laravel Dusk | |
Laravel Envoy | |
Laravel Horizon | |
Laravel Socialite | |
Laravel Passport | |
Laravel Passport w/ Socialite |
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
<!--- Starting april 2021 campaign container --> | |
<div id="campaign-container"> | |
<img src="http://s.mmgo.io/t/CAm7" alt="motionmailapp.com" /> | |
<div class="form-container"> | |
Enter password for early-access to this campaign | |
<input type="password" placeholder="Enter password here" name="" id="campaign_password"> | |
<button id="campaign_button">Let me in</button> | |
</div> | |
</div> | |
<style> |
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
<? | |
require_once dirname(__FILE__) . '/vendor/autoload.php'; | |
class ShopifySdk | |
{ | |
public function __construct() | |
{ | |
$this->username = ''; | |
$this->password = ''; |
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
sudo cp /usr/share/phpmyadmin/libraries/sql.lib.php /usr/share/phpmyadmin/libraries/sql.lib.php.bak | |
sudo nano /usr/share/phpmyadmin/libraries/sql.lib.php | |
#Press CTRL + W and search for (count($analyzed_sql_results['select_expr'] == 1) | |
#Replace it with ((count($analyzed_sql_results['select_expr']) == 1) and save the file | |
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
sudo systemctl restart mysql | |
use mysql; | |
CREATE USER 'username'@'localhost' IDENTIFIED BY 'password'; | |
GRANT ALL ON *.* TO 'username'@'localhost'; | |
flush privileges; |
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
Create a new user in your system. This will create the directory /home/USERNAME/ | |
sudo useradd -s /bin/bash -m USERNAME | |
Add USERNAME to the daemon groups | |
sudo usermod -G daemon USERNAME | |
Set the HOME environment variable for that user to the WordPress directory installation so when you SSH to your server using that USERNAME, it will be logged into that directory instead of /home/USERNAME. To do that, please add the following line at the end of the /home/USERNAME/.bashrc file | |
export HOME="/opt/bitnami/apps/wordpress/htdocs" | |
# Force moving to that new HOME directory | |
cd ${HOME} | |
Add the content of the user’s public key file to the /home/USERNAME/.ssh/authorized_keys file. In this example, the user’s public key is assumed to be in USERNAME.pub: | |
Copy |
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
sudo apt-get remove --purge mysql* | |
sudo apt-get purge mysql* | |
sudo apt-get autoremove | |
sudo apt-get autoclean | |
sudo apt-get remove dbconfig-mysql | |
sudo apt-get dist-upgrade | |
sudo apt-get install mysql-server |
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
#This is for when multiple packages are installed | |
sudo nano /etc/apt/sources.list | |
#Short open tag ubuntu | |
nano /etc/php.ini | |
#Install PHP extensions | |
sudo apt-get install php-mbstring php7.3-mbstring php-gettext libapache2-mod-php7.3 |
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/sh | |
echo "Starting deploying ..." | |
git --work-tree=/var/www/example.com/public_html --git-dir=git-server/example-com.git checkout -f | |
echo "Starting composer ... please wait" | |
composer install --working-dir=/var/www/example.com/public_html | |
echo "Composer done" |
NewerOlder