Suppose you're opening an issue and there's a lot noisey logs that may be useful.
Rather than wrecking readability, wrap it in a <details> tag!
<details>
Summary Goes Here| #!/usr/bin/env sh | |
| ------------------------------------------ | |
| openssl genrsa -out jbzoo-com-ca.key 2048 | |
| openssl req -x509 -new -key jbzoo-com-ca.key -days 10000 -out jbzoo-com-ca.crt | |
| openssl genrsa -out jbzoo-com-server.key 2048 | |
| openssl req -new -key jbzoo-com-server.key -out jbzoo-com-server.csr | |
| openssl x509 -req -in jbzoo-com-server.csr -CA jbzoo-com-ca.crt -sha256 -CAkey jbzoo-com-ca.key -CAcreateserial -out jbzoo-com-server.crt -days 5000 |
| <?php | |
| add_action('admin_init', function () { | |
| // Redirect any user trying to access comments page | |
| global $pagenow; | |
| if ($pagenow === 'edit-comments.php') { | |
| wp_redirect(admin_url()); | |
| exit; | |
| } |
Here is a list of scopes to use in Sublime Text 2/3 snippets -
ActionScript: source.actionscript.2
AppleScript: source.applescript
ASP: source.asp
Batch FIle: source.dosbatch
C#: source.cs
C++: source.c++
Clojure: source.clojure
| function register_watermarked_size() { | |
| add_image_size( 'watermarked', 550, 550, true ); // This is what should be uploaded | |
| } | |
| add_action( 'init', 'register_watermarked_size' ); | |
| class Watermark_Image { | |
| // The attachment meta array | |
| public $meta = array(); |
| <?php | |
| //Do not copy the above php tag | |
| // Stop JetPacks Minified/Concatention CSS file | |
| add_filter( 'jetpack_implode_frontend_css', '__return_false' ); | |
| //Remove JepPack CSS | |
| function themeprefix_remove_jetpack_css() { | |
| wp_deregister_style( 'AtD_style' ); // After the Deadline | |
| wp_deregister_style( 'jetpack_likes' ); // Likes |
In order for Livereload to work, you need a Firefox or Chrome extension as Gulp doesn't inset it automatically. Alternatively, you can also manually put the livereload script in footer.php, just make sure to insert it only on development environment:
<script>document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')</script>
| #! /bin/bash | |
| ##################################################################################################### | |
| # == wpmd 2 grav == # | |
| # This script converts the headers from wp2md to Grav headers format # | |
| # wp2md : https://github.com/dreikanter/wp2md ; with `wp2md -d ./ export.xml -ps {title}/item.md` # | |
| # Grav : http://getgrav.org/ # | |
| # @author : Tom Canac http://tomcanac.com/ # | |
| # @version : 0.1 # | |
| # @licence : CC-BY # |
| #!/bin/sh | |
| # jfindfiles -- Find used and unused content files in your Joomla website | |
| # | |
| # This scripts supports Joomla versions 2.5 - 3.x | |
| # | |
| # Copyright 2014 Rene Kreijveld - [email protected] | |
| # | |
| # This program is free software; you may redistribute it and/or modify it. | |
| # |
| <?php | |
| function gallery_shortcode_defaults( $out, $pairs, $atts ) { | |
| $out['link'] = 'none'; | |
| return $out; | |
| } | |
| add_filter( 'shortcode_atts_gallery', 'gallery_shortcode_defaults', 10, 3 ); |