Skip to content

Instantly share code, notes, and snippets.

View sarukuku's full-sized avatar

Joonas Salovaara sarukuku

View GitHub Profile
@onnimonni
onnimonni / disable-updates-and-external-connections.php
Last active August 26, 2016 07:21
Instead of using this small hack consider using this plugin https://github.com/devgeniem/wp-core-blocker. It takes care of much more edge cases and core functionality.
<?php
/**
* Plugin Name: Disable All Updates and External Connections
* Description: Plugin which disables core, plugin and theme updates and connections to wordpress.org This is quite useful in local development
* Version: 1.0.0
* Author: Onni Hakala
* Author URI: https://github.com/onnimonni
* License: MIT License
*/
@jehna
jehna / react-css-error-highlight.css
Last active October 18, 2018 14:28
React CSS error highlighter
[class*="undefined"],
[class*="null"] {
border: red 5px solid !important;
background: #0f0 !important;
color: #00f !important;
}
[class*="undefined"]::after,
[class*="null"]::after {
content: "YOU HAVE AN ERROR IN YOUR CODE" !important;