This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function ds_admin_bar_scrolltop() { | |
if ( ! is_admin_bar_showing() ) | |
return; | |
?> | |
<script> | |
( function( $ ) { | |
$( '#wpadminbar' ).click( function() { | |
$( 'html, body' ).animate( { scrollTop: 0 }, 100 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*PART FOR PRINTING */ | |
@media all { | |
.page-break { display:none; } | |
} | |
@media print { | |
@page { | |
size: A4 portrait; | |
} | |
.caption { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Custom Border Radius | |
@mixin _border-radius($radius: 5px, $vertical-radius: false) { | |
@if $vertical-radius { | |
// Webkit doesn't understand the official shorthand syntax for specifying | |
// a vertical radius unless so in case there's several we only take the first. | |
@include experimental(border-radius, first-value-of($radius) first-value-of($vertical-radius), | |
not -moz, | |
-webkit, | |
not -o, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Remove Comment Author IPs | |
* Version: 0.1.0 | |
* Description: Removes the IP addresses of comment authors on a scheduled time. | |
* Author: Dominik Schilling | |
* Author URI: http://wphelper.de/ | |
* Plugin URI: https://gist.github.com/1836266 | |
* | |
* License: GPLv2 or later |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Copyright 2012 Christoph Jerolimov, Dominik Schilling | |
# | |
# 0) No, i did not developed this for myself/my server. ;-) | |
# 1) I strongly recommend you to reinstall all your server software, | |
# inclusive the whole operating system like linux, unix, etc. If you | |
# use a web hosting service, backup your data and request your | |
# provider for a fresh system. If this is not possible feel free to | |
# try this script. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get PNGOUT from here: http://www.jonof.id.au/kenutils | |
find . -regex ".*\.\(png\)" | while read FILE; do | |
pngout -y "$FILE" | |
done; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Checks WordPress core for unused images. | |
# Requires ack2: http://beyondgrep.com/ | |
# | |
# The script needs to be placed inside the WordPress root | |
# directory or add the path to the WordPress directory via a | |
# parameter. Example: $ ./wp-search-images ~/Sites/WordPress/ | |
# | |
# Define the image paths in img_paths[] | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir ~/Documents/Conflicted && find -L ~/Dropbox -name "*In Konflikt stehende Kopie*" -exec mv {} ~/Documents/Conflicted \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Add a X-XSS-Protection = 0 header for post previews to allow | |
* Webkit browsers to render iframe and flash objects. | |
* @see: http://core.trac.wordpress.org/ticket/20148 | |
* | |
* @param $headers array Already added header items. | |
* @param $object WP The query variables. | |
* | |
* @return array | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: XML-RPC Disabler | |
* Version: 0.1 | |
* Description: Disables the XML-RCP API in WordPress 3.5 | |
* Author: Dominik Schilling | |
* Author URI: http://wphelper.de/ | |
* Plugin URI: http://wpgrafie.de/994/ | |
* | |
* |