| Symbol | Key |
|---|---|
| ⌃ | Control |
| ⌥ | Option/Alt |
| ⇧ | Shift |
| ⌘ | Command |
This file contains hidden or 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
| # Per-Project Linear MCP Setup for Claude Code | |
| Connect different Linear workspaces to different projects using the official Linear MCP server with API key auth. | |
| ## Why? | |
| The official Linear MCP server only connects to one workspace at a time. If you have multiple Linear workspaces (e.g. Personal, Work, Client), you need per-project configuration so each project talks to the right workspace. | |
| ## Steps |
This file contains hidden or 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 | |
| namespace WotW\Theme\Patterns; | |
| use WotW\Theme\Contracts\Interfaces\Hookable; | |
| class Save implements Hookable{ | |
| public function register_hooks(): void { | |
This file contains hidden or 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 | |
| /** | |
| * Block: Hero | |
| * -------------------------------- | |
| * The hero block for all pages. | |
| */ | |
| $block_data = get_fields(); | |
| ?> |
This file contains hidden or 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
| <!-- wp:spacer {"height":"150px"} --> | |
| <div style="height:150px" aria-hidden="true" class="wp-block-spacer"></div> | |
| <!-- /wp:spacer --> | |
| <!-- wp:group {"align":"wide","layout":{"inherit":false}} --> | |
| <div class="wp-block-group alignwide"><!-- wp:columns {"verticalAlignment":"center"} --> | |
| <div class="wp-block-columns are-vertically-aligned-center"><!-- wp:column {"verticalAlignment":"center","style":{"spacing":{"padding":{"top":"3rem","right":"1rem","bottom":"3rem","left":"1rem"}},"border":{"width":"1px"}},"backgroundColor":"contrast","className":"has-border-color has-black-border-color"} --> | |
| <div class="wp-block-column is-vertically-aligned-center has-border-color has-black-border-color has-contrast-background-color has-background" style="border-width:1px;padding-top:3rem;padding-right:1rem;padding-bottom:3rem;padding-left:1rem"><!-- wp:paragraph {"textColor":"base","fontSize":"small"} --> | |
| <p class="has-base-color has-text-color has-small-font-size">Contrast</p> | |
| <!-- /wp:paragraph --></div> |
After you install wp-cli:
- Install wpmu wrapper:
curl https://gist.githubusercontent.com/iamntz/0018e0535d15e00cf012a18486f102ad/raw/wpms.sh -o /usr/local/bin/wpmu - make it executable:
chmod +x /usr/local/bin/wpms - Run commands as you'd normally do, using
wpmsinstead, e.g.wpms plugin list
Github Actions is a CI/CD platform that gained a lot of popularity recently. I participated in building ⭐️ Lighthouse CI Action and was curious how well it performs.
But Github Marketplace UI shows no ranking information. Essentially, It's a search with random results; at least, I don't understand the order. I couldn't find ⭐️ Lighthouse CI Action in Continuous integration category after browsing 50 available pages (Each page shows 20 results, so it's possible to see only 1000 results, but CI category has 1469 😐).
I decided to build a custom script that crawls all categories and use Github Search (example query) to estimate usa
This file contains hidden or 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
| #!/usr/bin/env node | |
| const { writeFileSync, readFileSync, unlinkSync } = require('fs') | |
| const package = require('./package.json') | |
| const packageLock = require('./package-lock.json') | |
| const TEMPLATE_GITHUB_REPOSITORY = 'org/template' | |
| const { GITHUB_REPOSITORY } = process.env |
This file contains hidden or 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 | |
| /* | |
| Plugin Name: FD Clear Elementor Cache After WP Migrate DB Migration | |
| Plugin URI: https://gist.github.com/heyfletch/769c64ad1fab8679032b076433afafd1 | |
| Description: Deletes CSS in uploads/elementor/css, which auto-regenerates on pageload. This clears the cache locally and remotely. Must-use plugin (mu-plugin). | |
| Author: Fletcher Digital | |
| Version: 0.1.1 | |
| Author URI: https://fletcherdigital.com | |
| */ |
This file contains hidden or 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
| add_action('plugins_loaded', function() { | |
| $action = is_user_admin() ? 'user_admin_notices' : 'admin_notices'; | |
| add_action($action, function () { | |
| ob_start(); | |
| }); | |
| add_action('all_admin_notices', function () { | |
| $log = strip_tags(trim(ob_get_clean())); |
NewerOlder