Skip to content

Instantly share code, notes, and snippets.

View jrfnl's full-sized avatar
🐘
Herding 🐘

Juliette jrfnl

🐘
Herding 🐘
View GitHub Profile
@krogsgard
krogsgard / meta-box-control.php
Created February 4, 2013 16:19
gist to lower priority of WP SEO metabox
<?php
add_filter('wpseo_metabox_prio','krogs_lower_wpseo_metabox', 10 );
function krogs_lower_wpseo_metabox( $priority ) {
$priority = 'low';
return $priority;
@Rarst
Rarst / append.php
Last active April 27, 2016 12:31
My xhprof/uprofiler setup, tweaked for WordPress and more easily profiling segments.
<?php
use Rarst\Profiler\Handler;
global $wp;
if ( Handler::$profiling && empty( $wp ) ) {
Handler::close();
}
@sergeylukin
sergeylukin / pre-receive
Last active October 7, 2015 13:58
Git hook (pre-receive): commit any local changes before PUSH accepted
#!/bin/sh
#
# This hooks is placed in a Bare repository
# It makes sure that working tree doesn't contain any local changes
# And if it contains - submits a commit and returns false
# So if false returned - client should PULL and then PUSH again
#
# Assuming following file structure:
# .
# |-- myproject
@barrykooij
barrykooij / release-wpseo.sh
Last active August 29, 2015 14:01
The WordPress SEO Release script
#!/bin/sh
# License: GPL v3
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,