Skip to content

Instantly share code, notes, and snippets.

View georgestephanis's full-sized avatar

George Stephanis georgestephanis

View GitHub Profile
curl --data @xmlrpc.xml http://src.wordpress-develop.dev/xmlrpc.php
@georgestephanis
georgestephanis / run-grunt.sh
Created May 11, 2014 21:03
Just added grunt-wp-i18n in https://github.com/Automattic/jetpack/commit/dad797a74179b5faa5df36333d5dced4da14f45d and now get this message. Did I derp it up?
~/code/jetpack $ grunt addtextdomain
Running "addtextdomain:jetpack" (addtextdomain) task
Warning: Cannot use 'in' operator to search for 'src' in *.php Use --force to continue.
Aborted due to warnings.
<table>
<tr>
<th scope="row">Jeanne:</th>
<td>Parish records pre 1837.</td>
</tr>
<tr>
<th scope="row">Sheila:</th>
<td>Beginner - help with getting started</td>
</tr>
<tr>
<dl>
<dt>Jeanne:</dt>
<dd>Parish records pre 1837.</dd>
<dt>Sheila:</dt>
<dd>Beginner - help with getting started</dd>
<dt>Joan:</dt>
<dd>How to organise records; Furthering research through paper based documents</dd>
<?php
add_action( 'template_redirect', 'my_stats_template_redirect_tweak', 2 );
function my_stats_template_redirect_tweak() {
global $stats_footer;
// If we don't have a $stats_footer global ... maybe Stats or Jetpack isn't active?
if ( empty( $stats_footer ) ) {
return;
}
<?php
add_filter( 'contact_form_subject', 'filter_meetup_contact_form_subject' );
function filter_meetup_contact_form_subject( $subject ) {
if ( false === strpos( $subject, '{city}' ) ) {
return $subject;
}
if ( empty( $_REQUEST['g766-yourcitystatecountry'] ) ) {
return $subject;
<?php
/**
* Plugin Name: Custom Taxonomy Listing Pages
* Plugin URI: http://github.com/georgestephanis/tax-listing-page
* Description: How to make custom taxonomy listing pages.
* Author: George Stephanis
* Author URI: http://stephanis.info
* Version: 0.1
*/
@georgestephanis
georgestephanis / big.sh
Created June 10, 2014 17:20
This returned 5.9 gigs for me.
du -hs ~/Library/Containers/com.twitter.twitter-mac/Data/Library/Caches/com.atebits.tweetie.profile-images
$.getJSON( 'http://target-domain.com/wp-admin/admin-ajax.php?action=get_my_user_data', function(data) {
console.log( data );
} );
<?php
/**
* The base configuration for WordPress.
*
* This file has the following configurations:
* - MySQL settings
* - Authentication Unique Keys and Salts
* - Table Prefix
* - Secret Keys
* - WordPress Language