I'm not going to be maintaining this document anymore. I'm leaving it as-is since much of the FAQ section is still accurate and has yet to be incorporated into other resources.
Use CanI.RootMy.TV to find an exploit for your TV.
I'm not going to be maintaining this document anymore. I'm leaving it as-is since much of the FAQ section is still accurate and has yet to be incorporated into other resources.
Use CanI.RootMy.TV to find an exploit for your TV.
This is just a dump of some interesting undocumented features of webOS (3.8 specifically, on early 2018 4k LG TV) and other development-related tips.
<?php | |
add_filter('image_downsize', 'custom_image_downsize', 10, 3); | |
function custom_image_downsize($value = false, $post_id, $size = 'medium') { | |
global $_wp_additional_image_sizes; | |
if(is_array($size)) { | |
$width = (int) @$size[0]; | |
$height = (int) @$size[1]; | |
$crop = (@$size[2]) ? 'c' : ''; |
(function($) { | |
$(document).ready(function() { | |
$('body').on('mousedown', '#wp_delimgbtn', function(e) { | |
var editor = tinyMCE.activeEditor, | |
element = editor.selection.getNode(); | |
if(element.tagName !== 'FIGURE') { | |
$(element).parents('figure').remove(); | |
} | |
}); |
<?php | |
/* | |
Plugin Name: List Table Tutorial | |
Plugin URI: http://pmg.co/wp-list-table-tutorial | |
Description: How to add a column to WordPress list tables. | |
Version: 1.0 | |
Text Domain: pmg-list-table | |
Author: Christopher Davis | |
Author URI: http://christopherdavis.me | |
License: GPL2 |
location /resize { | |
alias /tmp/nginx/resize; | |
set $width 150; | |
set $height 100; | |
set $dimens ""; | |
if ($uri ~* "^/resize_(\d+)x(\d+)/(.*)" ) { | |
set $width $1; | |
set $height $2; | |
set $image_path $3; |