Skip to content

Instantly share code, notes, and snippets.

@johnbillion
johnbillion / install-debug-bar-extensions.sh
Last active September 18, 2019 02:35
Use WP-CLI to install a load of Debug Bar extensions (which work with Query Monitor too) in one go
# wp-cli: http://wp-cli.org/
wp plugin search debug-bar --field=slug --format=csv --per-page=50 \
| grep -F 'debug-bar-' \
| xargs -n 1 wp plugin install
@johnbillion
johnbillion / roles.sh
Created November 22, 2017 00:19
Create a user account for each role on your WordPress site
# wp-cli: http://wp-cli.org/
wp role list --fields=role --format=csv \
| tail -n +2 \
| xargs -I {} wp user create "user-{}" "{}@example.com" --role={}
<?php
namespace Foo\Blocks;
/**
* Generic block rendering callback function to load a block from a theme template part.
*
* Loads a block from the `blocks` subdirectory according to the name of the block, and places the
* block attributes and block content into namespaced query vars. If there's no corresponding block
* template part, the block content is returned unaltered.
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
atomic-blocks
caxton
coming-soon-blocks
cosmic-blocks
drop-shadow-boxes
ecwid-shopping-cart
editor-blocks
elegant-blocks
embedpress
enhanced-blocks
@johnbillion
johnbillion / gist:0c75d86169373041259f8af802ec06a6
Created July 21, 2020 22:23
BMW E39 M5 (MSS52) INPA error codes
1 Fuel Pump Relay
2 Idle Speed Actuator- Closing Coil
3 Fuel Injector Cyl 1
4 Fuel Injector Cyl 3
5 Fuel Injector Cyl 2
7 Intake Cam Position Sensor Bank 1
8 Intake Cam Position Sensor Bank 2
9 Knock Sensor- Cyl 1-2
10 Exhaust Cam Position Sensor Bank 1