Migrating a Ghost website from a development machine to a production environment involves several key steps. The exact process might vary depending on your specific setup, especially regarding your development and production environments, but the general approach is as follows:1. Backup Your Development SiteExport Content: Use the "Labs" section of the Ghost admin panel to export your content to a JSON file. This file includes all your posts, pages, tags, and settings.Backup Themes and Images: Manually copy your themes and images. Themes are typically located in the /content/themes/ directory, and images in the /content/images/ directory of your Ghost installation.2. Prepare the Production EnvironmentInstall Ghost: Ensure Ghost is installed on your production server. You can follow the official Ghost setup guide for various environments at the Ghost installation documentation.Setup Domain and SSL: Configure your domain and SSL certificate. Ghost CLI can automatically obtain a Let's Encrypt SSL certificate if
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 | |
add_action( 'um_after_save_registration_details', 'my_after_save_registration_details', 10, 2 ); | |
function my_after_save_registration_details( $user_id, $submitted ) { | |
if ( isset( $submitted['newsletter_subscription'] ) && $submitted['newsletter_subscription'][0] === 'Yes' ) { | |
// Check if the user is not already subscribed |
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
<embed type="text/html" src="https://fahdi.github.io/guess-the-number/" width="500" height="300"> |
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
.sticking { | |
box-shadow: none !important; | |
} |
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
You: | |
If we have lambda functions running on AWS how to we translate the sizing requirement to an onpremise setup? | |
ChatGPT: | |
Translating sizing requirements from a cloud-based AWS Lambda setup to an on-premise setup requires considering multiple factors, including the amount of memory and CPU resources required by the functions, the number of requests they receive, and the size of the data they handle. Here are some steps to consider: | |
1. Determine resource requirements: Evaluate the memory and CPU utilization of the Lambda functions in the cloud setup to determine the minimum amount of memory and CPU needed in the on-premise setup. | |
2. Calculate request volume: Estimate the number of requests the Lambda functions receive, including the frequency and duration of each request. This information will help you determine the amount of resources needed to handle the request volume. | |
3. Consider data storage: If the Lambda functions access or store data, you will need to consider the size of the data and determine how |
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
class_name_test =[ | |
["Jenny", 90], | |
["Alexus", 85.5], | |
["Sam", 83], | |
["Ellie", 101.5] # <---- [-1][-1] | |
# Can be done in many ways but that's not what they wanted | |
] | |
print(class_name_test) |
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
#PEMDAS | |
# PEMDAS is an acronym used to help remember the order of operations in mathematics. It stands for: | |
# P: Parentheses | |
# E: Exponents | |
# MD: Multiplication and Division (performed left to right) | |
# AS: Addition and Subtraction (performed left to right) | |
# The order of operations is used to determine the sequence in which mathematical operations should be performed to get the correct answer. When evaluating an expression, we start with the operations inside any parentheses, then exponents, then multiplication and division from left to right, and finally addition and subtraction from left to right. This helps to avoid ambiguity and ensures that the expression is evaluated consistently. |
A Pen by Fahad Murtaza on CodePen.
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 get_header(); | |
?> | |
<div class="Home-Banner" style="background-image: url(<?php echo get_theme_file_uri('/images/HomeSection1.png') ?>);"> | |
<div style="width:60%"> | |
<h1 >We Are WordPress Website Creators</h1> | |
<button class="Hero-btn">Know More About Us</button> | |
</div> | |
</div> |
NewerOlder