A 10-week course about design systems from SuperFriendly
- Introductions
| /* 見出し全体 | |
| ------------------------------*/ | |
| h2, | |
| h3, | |
| h4, | |
| h5, | |
| h6 { | |
| } |
| <?php | |
| // Put this in wp-config.php and replace https://example.com/ with the URL of the production site. | |
| define( 'RH_USE_REMOTE_MEDIA_URL', 'https://example.com/' ); | |
| // Put the rest of this in functions.php or a custom plugin or somewhere else. | |
| if ( defined( 'RH_USE_REMOTE_MEDIA_URL' ) && ! empty( RH_USE_REMOTE_MEDIA_URL ) ) { | |
| add_filter( 'wp_get_attachment_image_src', 'filter_wp_get_attachment_image_src' ); | |
| add_filter( 'wp_calculate_image_srcset', 'filter_wp_calculate_image_srcset' ); | |
| add_filter( 'wp_get_attachment_url', 'filter_wp_get_attachment_url' ); | |
| } |
| #!/bin/bash | |
| # by joevt Feb 6, 2024 | |
| # Jan 22, 2023 - Updated to work in Mac OS X 10.4. | |
| # Jan 30, 2023 - Fixed the method options. | |
| # Apr 7, 2023 - Fixed parse of unknown prog-if and move temp files to separate tmp directory. | |
| # Feb 6, 2024 - Fix column alignment. | |
| #=================== | |
| if [[ $EUID -ne 0 ]]; then |
| This allows your gravity forms to load via ajax to ensure they work correctly with page transitions that have no window/document.onload |
Below are a list of System Preference pane URLs and paths that can be accessed with scripting to assist users with enabling macOS security settings without having to walk them through launching System Preferences, finding panes, and scrolling to settings. Not all panes have an accessible anchor and some are OS specific.
To find the Pane ID of a specific pane, open the System Preferences app and select the desired Preference Pane. With the pane selected, open the ScriptEditor.app and run the following script to copy the current Pane ID to your clipboard and display any available anchors:
tell application "System Preferences"
set CurrentPane to the id of the current pane
set the clipboard to CurrentPane| <?php | |
| /** | |
| * Interplay Design functions and definitions | |
| * | |
| * @link https://developer.wordpress.org/themes/basics/theme-functions/ | |
| * | |
| * @package Interplay_Design | |
| */ | |
| if ( ! function_exists( 'int_design_31_setup' ) ) : |
| <?php | |
| /** | |
| * Search & Filter Pro | |
| * | |
| * Sample Results Template | |
| * | |
| * @package Search_Filter | |
| * @author Ross Morsali | |
| * @link https://searchandfilter.com | |
| * @copyright 2018 Search & Filter |
We're assuming here that both your Storage bucket and virtual machine are BOTH hosted in GCP
Make sure that your uploads directory is EMPTY
You can usually change the owner of the folder to root to prevent WordPress's pesky folder creation
Ventura docs for M2 Macs in this comment: https://gist.github.com/henrik242/65d26a7deca30bdb9828e183809690bd?permalink_comment_id=4555340#gistcomment-4555340
Old Monterey docs in this old revision: https://gist.github.com/henrik242/65d26a7deca30bdb9828e183809690bd/32c410e3a1de73539c76fa13ea5486569c4e0c5d
Solution for Sonoma: https://gist.github.com/sghiassy/a3927405cf4ffe81242f4ecb01c382ac