Try these rules:
(in www.domain.com's server block)
rewrite ^/$ http://domain.com permanent break;
rewrite ^/main(.*)$ http://domain.com$1 permanent break;
# Kinsta Deployment through Github Actions for Bedrock/Sage. | |
# | |
# Placed at: .github/workflow/deploy.yml | |
# | |
# Process should be studied from code, but some quick brief: | |
# - runs composer / sage installation | |
# - moves correct `.env.*` file for multiple configs | |
# - uses rsync to sync files, uses /.rsyncignore file to exclude whatever should not be there | |
# - symlinks uploads folder and symlink release folder to kinsta public hostname | |
# - if you want to clear cache, please uncomment the last job |
const fs = require( 'fs' ) | |
const themeJson = fs.readFileSync( './theme.json' ) | |
const theme = JSON.parse( themeJson ) | |
const colors = theme.settings.color.palette.reduce( ( acc, item ) => { | |
const [color, number] = item.slug.split( '-' ) | |
// If there is a number identifier, make this an object | |
if(undefined !== number) { |
<?php | |
/** | |
* Plugin Name: Block Editor Cleanup | |
* Plugin URI: https://github.com/WordPress/gutenberg/issues/38299#issuecomment-1025520487 | |
* Version: 1.0.0 | |
* Description: Remove WP 5.9 default block editor styles when using Classic Editor | |
* Author: joshuafredrickson | |
* Author URI: https://joshuafredrickson.com | |
* License: GNU General Public License v2 | |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html |
Try these rules:
(in www.domain.com's server block)
rewrite ^/$ http://domain.com permanent break;
rewrite ^/main(.*)$ http://domain.com$1 permanent break;
https://roots.io/trellis/docs/installing-trellis/
Follow this guide: https://code.visualstudio.com/Docs/languages/php
https://marketplace.visualstudio.com/items?itemName=felixfbecker.php-debug
No need to install xdebug on your local machine.
/** | |
* Copy of Excel's PMT function. | |
* Credit: http://stackoverflow.com/questions/2094967/excel-pmt-function-in-js | |
* | |
* @param rate_per_period The interest rate for the loan. | |
* @param number_of_payments The total number of payments for the loan in months. | |
* @param present_value The present value, or the total amount that a series of future payments is worth now; | |
* Also known as the principal. | |
* @param future_value The future value, or a cash balance you want to attain after the last payment is made. | |
* If fv is omitted, it is assumed to be 0 (zero), that is, the future value of a loan is 0. |
body { | |
white-space: pre; | |
font-family: monospace; | |
font-size: 1.2em; /* I like big fonts, if you don't remove this line */ | |
background: #272822; | |
color: #f8f8f2; | |
} | |
.property { | |
font-weight: auto; |
body { | |
background-color: #002b36; | |
color: #839496; | |
font-size: 14px; | |
white-space: pre !important; | |
font-family: "Source Code Pro", monospace; | |
} | |
.property { | |
font-weight: bold; |
#!/bin/bash | |
# This bash script works JUST with WP-CLI | |
# You can get it from here: | |
# http://wp-cli.org/ | |
# | |
# If you don't know what to do with this file: | |
# | |
# 1) Install wp-cli on your workspace | |
# 2) Create a file call wpinstall.sh |