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 Gallery Setting | |
*/ | |
( function( $ ) { | |
var media = wp.media; | |
// Wrap the render() function to append controls | |
media.view.Settings.Gallery = media.view.Settings.Gallery.extend({ | |
render: function() { | |
media.view.Settings.prototype.render.apply( this, arguments ); |
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
Tutorial for compiling the Compass.app (http://compass.handlino.com/) | |
===================================================================== | |
Java installed? | |
java -version | |
Load jRuby (for example JRuby 1.6.5.1 Binary .zip) | |
http://jruby.org/download | |
Unzip jRuby to `/usr/local/` |
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 | |
/** | |
* Add a custom feed to WordPress. | |
* | |
* The feed will be rendered through the wp-includes/feed-rss2.php template | |
* and avaiable under example.com/feed/{$feed_slug}. | |
* | |
* Note: Don't forget to flush the rewrite rules once. | |
* | |
* @author Dominik Schilling |
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 |
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> |
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
// Default font size | |
$base-font-size: 16px; | |
// px2em | |
// Use: font-size: px2em( 12px, 14px ); | |
@function px2em( $target, $context: $base-font-size ) { | |
@if $target == 0 { | |
@return 0; | |
} |
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 | |
/** | |
* Debug WordPress filters. | |
* | |
* Use add_action( 'shutdown', 'ds_debug_filters' ) to display all used | |
* filters with the functions hooked into the filter. | |
* | |
* @author Dominik Schilling | |
* @license GPLv2 | |
* @link http://wpgrafie.de/262/ |
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
#compdef assh | |
############################################################################### | |
# -*- mode:sh; -*- | |
# Time-stamp: <Thu 2017-03-16 15:37 svarrette> | |
# | |
# Zsh completion for [assh](https://github.com/moul/advanced-ssh-config) | |
# | |
# Copyright (c) 2017 Sebastien Varrette <Sebastien.Varrette@uni.lu> | |
############################################################################### | |
# Enable this completion file by adding somewhere in your zsh configuration (most |
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
Extension: ico | |
wordpress => image/x-icon | |
apache => image/vnd.microsoft.icon | |
Extension: asf | |
wordpress => video/x-ms-asf | |
apache => application/vnd.ms-asf | |
Extension: avi | |
wordpress => video/avi | |
apache => video/x-msvideo | |
Extension: divx |