This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php /* FUNCTIONS */ ?> | |
<?php | |
/////////////////// | |
// ENQUEUE SLICK // | |
/////////////////// | |
function enqueue_slick() { | |
wp_enqueue_script( 'slick-js', '//cdn.jsdelivr.net/jquery.slick/1.4.1/slick.min.js', 'jquery', '1.4.1' ); | |
wp_enqueue_script( 'slick-init-js', trailingslashit( get_stylesheet_directory_uri() ) . 'js/slick-init.js', 'jquery', 1.0 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CUSTOMIZED | |
CREATE TABLE `aircraft` ( | |
`id` tinyint(3) UNSIGNED NOT NULL auto_increment, | |
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', | |
`slug` varchar(255) COLLATE utf8_unicode_ci NOT NULL, | |
`content` text COLLATE utf8_unicode_ci NOT NULL, | |
`image` varchar(255) COLLATE utf8_unicode_ci NOT NULL, | |
`thumbnail_image` varchar(255) COLLATE utf8_unicode_ci NOT NULL, | |
`precedence` int(11) NOT NULL DEFAULT '0', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Plugin Opener | |
Plugin URI: | |
Description: | |
Version: 1.0 | |
Author: landbryo | |
Author URI: https://scree.it | |
License: GPLv2 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var url = window.location.href; | |
if (url.search("country=") >= 0) { | |
window.location.hash = "#locator"; | |
} | |
</script> | |
<a name="locator"></a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Plesk email users often get their passwords lost. | |
Fortunately Parallels has implemented a command to see all passwords for all users in all domains: | |
`/usr/local/psa/admin/bin/mail_auth_view` | |
You can filter the output to see one account password (quotes must exist): | |
`/usr/local/psa/admin/bin/mail_auth_view | grep "johnsmith@domain.tld"` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`=filter( A2:I, search("Yes", I2:I) )` | |
### Determins where you start and end. This example starts in cell A2 and ends before column I begins ### | |
`A2:I` | |
### Term to search for ### | |
`"Yes"` | |
### Determins where you return the results. This example returns the results in column I starting at cell I2 ### | |
`I2:I` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https:// // clone repository | |
git add -A // stages all | |
git add . // stages new and modified, without deleted | |
git add -u // stages modified and deleted, without new | |
git commit -m "add message here" //commit changes with a message | |
git push origin master //push changes to master branch | |
git reset --hard | |
git pull |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery('img').removeAttr('title'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/////////////////////// | |
// CHANGE IMG EDITOR // | |
/////////////////////// | |
function landbryo_img_edit($array) { | |
return array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' ); | |
} | |
add_filter( 'wp_image_editors', 'landbryo_img_edit' ); |