Skip to content

Instantly share code, notes, and snippets.

View alpipego's full-sized avatar
😴
So very tired.

Alex Goller alpipego

😴
So very tired.
View GitHub Profile

Keybase proof

I hereby claim:

  • I am alpipego on github.
  • I am alpipego (https://keybase.io/alpipego) on keybase.
  • I have a public key ASB_siigXOpA0FbG4cU40EcWpdrggf0HCd8ud_lW4SCdUAo

To claim this, I am signing this object:

@alpipego
alpipego / gist:5947694
Last active December 19, 2015 11:29
wp css.php
<?php
$wp_include = '../wp-load.php';
$i = 0; while ( !file_exists( $wp_include ) && $i++ < 10 ) {
$wp_include = "../$wp_include";
}
require_once( $wp_include );
header( 'Content-type: text/css; charset=' . get_option( 'blog_charset' ) );
@alpipego
alpipego / gist:5182657
Created March 17, 2013 17:34
wp_functions remove generator
// Disable WordPress version reporting as a basic protection against attacks
function remove_generators() {
return '';
}
add_filter('the_generator','remove_generators');
add_filter('the_generator', create_function('', 'return "";'));
remove_action('wp_head', 'rsd_link');
remove_action('wp_head', 'wlwmanifest_link');
{
"folders":
[
{
"path": "."
}
],
"build_systems":
[
{