Skip to content

Instantly share code, notes, and snippets.

View georgestephanis's full-sized avatar

George Stephanis georgestephanis

View GitHub Profile
<?php
add_action( 'admin_menu', 'nuke_jetpack_lowlevel_menu', 900 );
function nuke_jetpack_lowlevel_menu() {
// If Jetpack isn't active, do nothing.
if ( ! class_exists( 'Jetpack' ) ) {
return;
}
// If the user is an author or above, do nothing.
if ( current_user_can( 'publish_posts' ) ) {
@georgestephanis
georgestephanis / override-jetpack-sharing-icon.css
Created February 26, 2014 21:08
CSS to override Jetpack's default sharing icons.
body li.share-facebook a.sd-button > span {
background-image: url(http://placekitten.com/16/16);
}
body li.share-tumblr a.sd-button > span {
background-image: url(http://placekitten.com/16/16);
}
body li.share-twitter a.sd-button > span {
background-image: url(http://placekitten.com/16/16);
#!/bin/bash
JETPACK_GIT_DIR="/Users/georgestephanis/code/jetpack"
NEW_VERSION_NUM="2.9.3"
# Prep a home to drop our new files in. Just make it in /tmp so we can start fresh each time.
rm -rf /tmp/jetpack
svn checkout http://plugins.svn.wordpress.org/jetpack/ --depth=empty /tmp/jetpack
cd /tmp/jetpack
svn up trunk
/tmp/jetpack $ sh test.sh
test.sh: command substitution: line 9: syntax error near unexpected token `('
test.sh: command substitution: line 9: `diff -B <( echo $SVN_FILES ) <( echo $GIT_FILES ) | grep "^<.*" '
<?php
add_filter( 'pre_kses', 'my_checker_pre_kses' );
function my_checker_pre_kses( $content ) {
if ( ! is_string( $content ) ) {
echo '<pre>';
var_dump( $content );
var_dump( debug_backtrace() );
echo '</pre>';
exit;

Keybase proof

I hereby claim:

  • I am georgestephanis on github.
  • I am georgestephanis (https://keybase.io/georgestephanis) on keybase.
  • I have a public key whose fingerprint is F2E0 2B7C 9A61 6323 FAAA 0C9F D6AB 5C54 7C3D 1A28

To claim this, I am signing this object:

~ $ php testforben.php
Foo/__construct called successfully.
Foo/non_static called successfully.
Foo/is_static called successfully.
Foo/is_static called successfully.
Strict Standards: Non-static method Foo::non_static() should not be called statically in /Users/georgestephanis/testforben.php on line 25
Foo/non_static called successfully.
~ $
@georgestephanis
georgestephanis / jetpackusers.md
Last active August 29, 2015 14:00
Miscellaneous Session Proposals

Come Fly With Me

In this user track talk, we'll go over how users can leverage Jetpack to more easily customize your site, write great content, grow and engage your audience, all the while improving the security and stability of your site.

This talk will not be a laundry list of Jetpack features, but going in deep to perhaps six or eight, and how they can dramatically impact the success of your site.

article.post {
width: 200px;
height: 300px;
border-radius: 15px;
border-bottom: 0;
box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.35);
margin: 15px;
padding: 25px;
float: left;
position: relative;
var d = document,
s = d.createElement( 'script' );
s.setAttribute( 'src', 'http://website.url/wp-admin/js/press-this-loader.js' );
d.head.appendChild( s );
void(0);