Skip to content

Instantly share code, notes, and snippets.

🌙

Julien Maury jmau111

🌙
View GitHub Profile
@jmau111
jmau111 / wp-disable-site-health-check.php
Last active Jun 18, 2020
Disable WordPress site health check, all screens and dashboards
View wp-disable-site-health-check.php
<?php
/*
Plugin Name: WP Disable Site Health Check
Description: Disable specific screens and dashboards
Author: Julien Maury
Author URI: https://blog.julien-maury.com
Version: 1.0
*/
defined( "ABSPATH" ) or die( "no");
@jmau111
jmau111 / woo-disable-admin-analytics.php
Last active Jun 15, 2020
Woocommerce disable new admin UI with analytics
View woo-disable-admin-analytics.php
<?php
/*
Plugin Name: Woo Disable Admin Analytics
Description: Disable new UI analytics if unwanted
Version: 1.0
*/
defined( "ABSPATH" )
or die( "trying" );
add_filter('woocommerce_admin_disabled', '__return_true');
@jmau111
jmau111 / woo-disable-processing-images.php
Last active Jun 15, 2020
Woocommerce disable processing images
View woo-disable-processing-images.php
<?php
/*
Plugin Name: Woo Disable Processing images
Description: Prevents hard time for server if image processing should not be handled by Woocommerce
Version: 1.0
*/
defined( "ABSPATH" )
or die( "trying" );
add_filter( 'woocommerce_background_image_regeneration', '__return_false' );
@jmau111
jmau111 / wp-disable-admin-email-check.php
Last active Apr 10, 2020
Disable admin email verification in WordPress 5.3 ++
View wp-disable-admin-email-check.php
<?php
/*
Plugin Name: WP Disable Admin Email Check
Description: Say "no no no" to WP when it wants to confirm email admin
Version: 1.0
*/
defined( "ABSPATH" )
or die( "trying" );
// @since 5.3
@jmau111
jmau111 / wp-protect-htaccess.php
Last active Apr 1, 2020
Prevent WP from editing htaccess
View wp-protect-htaccess.php
<?php
/*
Plugin Name: WP Protect htaccess
Description: Say "no no no" to WP when it wants to rewrite htaccess
Author: Julien Maury
Author URI: https://blog.julien-maury.com
Version: 1.0
*/
defined( "ABSPATH" )
or die( "trying" );
@jmau111
jmau111 / settings.json
Last active Jan 31, 2020
My vscode settings [updated on a regular basis]
View settings.json
{
"emmet.includeLanguages": {
"twig": "html"
},
"files.exclude": {
"**/.git": true,
"**/.DS_Store": true,
"**/.vscode": true,
"**/node_modules": true,
"node_modules": true,
@jmau111
jmau111 / wp-force-urls-relative.php
Created Dec 24, 2019
Force relative urls in WordPress - very light plugin
View wp-force-urls-relative.php
<?php
/**
* Plugin name: Make Relative Urls
* Description: force relative urls everywhere in WP
* Author Julien Maury
* Author URI: https://blog.julien-maury.com/
*/
if (!function_exists("add_action")) {
die("-Zed is dead-");
}
@jmau111
jmau111 / gut-mystery.php
Last active Sep 29, 2019
Get all [73] WordPress Gutenberg core blocks - the mystical way...
View gut-mystery.php
<?php
defined( 'DB_NAME' )
or die ( '-No-' );
add_action( 'enqueue_block_editor_assets', 'getAllCoreBLocksTheMysticalWay' );
function getAllCoreBLocksTheMysticalWay() {
$data = "
setTimeout( () => {
console.log(wp.data.select('core/blocks').getBlockTypes());
}, 73);
@jmau111
jmau111 / bl2_dlc.md
Last active Aug 11, 2019
How to play Lilith and the Fight for Sanctuary Borderlands 2 DLC on Linux
View bl2_dlc.md

Well, don't play on Linux

Trust me, it's full of bugs and a little bit limited. Don't get me wrong, I love this game and it's very cool that we can actually play this on Linux. But at the end of the day the gaming experience is not great on Linux.

WITH THIS METHOD YOU WON'T LOSE YOUR PROGRESSION. This is really important cause this game is fun but takes a lot of time, especially if you want to reach the highest levels. I mean you have to spend a ridiculous amount of time to get all the quests and stuffs no matter what you do and even with some skills and speed run.

Why ?

@jmau111
jmau111 / cmd.md
Created May 19, 2019
open current folder from terminal on Linux
View cmd.md
nautilus `pwd`
You can’t perform that action at this time.