cd /tmp .
git clone https://github.com/tech4david/nano-highlight.git
cd nano-highlight/
make install
echo "include ~/.nano/syntax/ALL.nanorc" >> ~/.nanorc
or
include "/usr/share/nano/*.nanorc" at ~/.nanorc
| <?php // For implementation instructions see: https://aceplugins.com/how-to-add-a-code-snippet/ | |
| /** | |
| * Disable WP 4.2 emoji | |
| */ | |
| function ace_remove_emoji() { | |
| add_filter( 'emoji_svg_url', '__return_false' ); | |
| remove_action( 'admin_print_styles', 'print_emoji_styles' ); | |
| remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta name="description" content="text gradient css"> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>JS Bin</title> | |
| <style id="jsbin-css"> | |
| h1 { | |
| font-size: 72px; |
| docker-compose down | |
| docker rm -fv $(docker ps -aq) | |
| sudo lsof -i -P -n | grep {PORT} |
| UPDATE ac_options SET option_value = replace(option_value, 'http://to.replace', 'http://placehold.er') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
| UPDATE ac_posts SET guid = replace(guid, 'http://to.replace','http://placehold.er'); | |
| UPDATE ac_posts SET post_content = replace(post_content, 'http://to.replace', 'http://placehold.er'); | |
| UPDATE ac_postmeta SET meta_value = replace(meta_value,'http://to.replace','http://placehold.er'); |
| <?php | |
| header("Content-type: text/xml"); | |
| $cache_time = 3600 * 24; // Time in seconds to keep a page cached | |
| $cache_folder = '/'; // Folder to store cached files (no trailing slash) | |
| $cache_filename = $cache_folder.md5($_SERVER['REQUEST_URI']); // Location to lookup or store cached file | |
| //Check to see if this file has already been cached | |
| // If it has get and store the file creation time | |
| $cache_created = (file_exists($cache_filename)) ? filemtime($cache_filename) : 0; | |
| ### Testing if the client is a mobile or a desktop. | |
| ### The selection is based on the usual UA strings for desktop browsers. | |
| ## Testing a user agent using a method that reverts the logic of the | |
| ## UA detection. Inspired by notnotmobile.appspot.com. | |
| map $http_user_agent $is_desktop { | |
| default 0; | |
| ~*linux.*android|windows\s+(?:ce|phone) 0; # exceptions to the rule | |
| ~*spider|crawl|slurp|bot 1; # bots | |
| ~*windows|linux|os\s+x\s*[\d\._]+|solaris|bsd 1; # OSes |
| Copy this code to function.php | |
| //Sitemap XML | |
| /* | |
| function to create sitemap.xml file in root directory of site | |
| */ |
| function callback($buffer) { | |
| $patterns = [ | |
| '/<img(.*) src=/', | |
| '/<img(.*) class="/' | |
| ]; | |
| $replacements = [ | |
| '<img${1} data-src=', | |
| '<img${1} class="b-lazy ' | |
| ]; |
cd /tmp .
git clone https://github.com/tech4david/nano-highlight.git
cd nano-highlight/
make install
echo "include ~/.nano/syntax/ALL.nanorc" >> ~/.nanorc
or
include "/usr/share/nano/*.nanorc" at ~/.nanorc
| <modification> | |
| <id>seo_url_core</id> | |
| <version>1.4.x and above</version> | |
| <vqmver required="true">2.x.x</vqmver> | |
| <file name="catalog/controller/common/seo_url.php"> | |
| <operation error="skip"> | |
| <search position="before" offset="0"> | |
| <![CDATA[ | |
| public function index() { |