Skip to content

Instantly share code, notes, and snippets.

View germanny's full-sized avatar

Jen G germanny

View GitHub Profile

To shut off all comments/trackbacks/pingbacks in the WordPress Admin, the steps for cleanup are:

<?php
/* =BEGIN: Remove WP generated junk from head
Source: http://digwp.com/2010/03/wordpress-functions-php-template-custom-functions/
---------------------------------------------------------------------------------------------------- */
function removeHeadLinks() {
remove_action( 'wp_head', 'rsd_link' );
remove_action( 'wp_head', 'wp_generator' );
remove_action( 'wp_head', 'wlwmanifest_link' );
remove_action( 'wp_head', 'feed_links_extra', 3 );
http://audiorpc.weblogs.com/RPC2
http://bing.com/webmaster/ping.aspx
http://blo.gs/ping.php
http://blog.goo.ne.jp/XMLRPC
http://blog.with2.net/ping.php
http://blogping.unidatum.com/RPC2
http://blogpingr.de/ping/rpc2
http://blogsearch.google.com/ping/RPC2
http://feedsky.com/api/RPC2
http://geourl.org/ping
<?php
$beforeTime = microtime(true);
function helloWorld() {
// Do stuff
}
$afterTime = microtime(true);
echo "Loading helloWorld: ".($afterTime - $beforeTime) . '<br />';

To shut off all comments/trackbacks/pingbacks in the WordPress Admin, the steps for cleanup are:

@germanny
germanny / 0_reuse_code.js
Created August 6, 2014 18:54
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@germanny
germanny / Preferences.sublime-settings
Created December 26, 2015 20:41 — forked from jimmynotjim/Preferences.sublime-settings
Current ST2 User Settings
{
"bold_folder_labels": true,
"close_windows_when_empty": true,
"color_scheme": "Packages/User/SublimeLinter/Phix Dark (SL).tmTheme",
"detect_indentation": true,
"file_exclude_patterns":
[
".DS_Store",
"dump.rdb"
],
@germanny
germanny / _instructions2.md
Last active February 3, 2022 15:25 — forked from saetia/gist:1623487
Clean Install – OS X 10.11 El Capitan

OS X Preferences


most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat
@germanny
germanny / .gitconfig
Last active December 29, 2016 15:56 — forked from jimmynotjim/.gitconfig
Base .gitconfig
[apply]
whitespace = fix
[color]
# Use colors in Git commands that are capable of colored output when outputting to the terminal
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]