Skip to content

Instantly share code, notes, and snippets.


Edu Wass eduwass

View GitHub Profile
colorful-tones / Gutenberg Style Guide
Last active Aug 28, 2022
A simple style guide for Gutenberg FSE theme development
View Gutenberg Style Guide
<!-- 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>
iamntz /
Last active May 17, 2022
WP CLI wrapper to run commands on all sites in a network

After you install wp-cli:

If you're on Linux:

  1. Install wpmu wrapper: curl -o /usr/local/bin/wpmu
  2. make it executable: chmod +x /usr/local/bin/wpms
  3. Run commands as you'd normally do, using wpms instead, e.g. wpms plugin list

If you're on Windows:

alekseykulikov /
Last active Aug 3, 2021
Github Actions Ranking (June 18, 2020)

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

View on-template.js
#!/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
heyfletch / fd-clear-elementor-cache.php
Last active Feb 14, 2022
Clear Elementor Cache After a WP Migrate DB Pro Migration - Must Use Plugin (mu-plugins)
View fd-clear-elementor-cache.php
Plugin Name: FD Clear Elementor Cache After WP Migrate DB Migration
Plugin URI:
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:
ahmadawais /
Last active Nov 20, 2022
Debug WordPress with Visual Studio Code | VSCode WordPress Debug Setup | WordPress xDebug Setup for Local by FlyWheel with VSCode | Part of the VSCode Learning Course →

VSCode WordPress Debugging Setup: WordPress Xdebug Setup for Local by FlyWheel with VSCode

Consider supporting my work by purchasing the course this tutorial is a part of i.e. VSCode Power User


  • Make sure your Local by FlyWheel WordPress install is a custom install
marcosnakamine / script.js
Created Oct 24, 2017
jQuery - WP Smush auto click
View script.js
botao = jQuery('#wp-smush-bulk-wrap-box > > div.wp-smush-bulk-wrapper > button');
if( botao.attr('disabled') != 'disabled' ) {
}, 1000);
blvz /
Last active Aug 11, 2022
Creates a deploy key and clones the repository.
#!/usr/bin/env bash
read -r -d '' usage << EOM
gh-deploy-clone user/repo [ENVIRONMENT]
[ -z "$1" ] && echo && echo "$usage" && echo && exit 1
cassus / Dev platform settings
Created Nov 1, 2016
Zapier app to read Activity and Sleep data from FitBit
View Dev platform settings
## Triggers (Bringing data into Zapier)
### Sleep - polling
### Activity - polling
## Scripting API
see script.js
View gist:ee728c235f258d99552000c463c41e6b
// Execute in your console while WP Smush is open to bulk smush in intervals of 50 automatically
var smushTimer = setInterval( function() { !jQuery('.wp-smush-button').attr('disabled') ? jQuery('.wp-smush-button').click() : console.log('smush-check'); }, 3000);