View fbcbfwss.php
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: Filename-based cache busting | |
* Version: 0.3 | |
* Description: Filename-based cache busting for WordPress scripts/styles. | |
* Author: Dominik Schilling | |
* Author URI: http://wphelper.de/ | |
* Plugin URI: https://dominikschilling.de/880/ | |
* | |
* License: GPLv2 or later |
View fixit.sh
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. |
View compress.sh
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; |
View wp-search-images.sh
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[] | |
# |
View gist:3307536
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
sudo mkdir /var/mysql | |
sudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /var/mysql/mysql.sock |
View gist:3621458
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 \; |
View plugin.php
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 | |
*/ |
View post.html
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
<div class="share-box twitter"> | |
<span>Auf Twitter teilen</span> | |
<a style="display:none" href="https://twitter.com/share" class="twitter-share-button" data-lang="de" data-dnt="true" data-count="vertical">Twittern</a> | |
</div> | |
<div class="share-box googleplus"> | |
<span>Auf Google+ teilen</span> | |
<div class="g-plusone" data-size="tall"></div> | |
</div> |
View plugin.php
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
/** | |
* For site admins: Print some debug infos into backend footer. | |
* - Time | |
* - DB Queries | |
* - Memory Usage | |
* - Cache Hts/Misses | |
* - Active Plugins | |
* | |
* @param string $text Existing footer text. | |
* |