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
#!/usr/bin/env bash | |
# terminal application launcher for sway, using fzf | |
# Based on: https://gitlab.com/FlyingWombat/my-scripts/blob/master/sway-launcher | |
shopt -s nullglob | |
if [[ "$1" == 'describe' ]]; then | |
shift | |
if [[ $2 == 'command' ]]; then | |
title=$1 | |
readarray arr < <(whatis -l "$1" 2>/dev/null) |
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
#!/usr/bin/env bash | |
# Usage: multisite.sh plugin list | |
N=16 | |
i=0 | |
for URL in $(wp site list --field=url); do | |
((i=i%N)); ((i++==0)) && wait |
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 | |
class Lullaby | |
{ | |
/** | |
* @var HumanoidInterface | |
*/ | |
private $littleBaby; | |
/** | |
* @var HumanoidInterface |
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
/** | |
* Plugin Name: MLP Load Language Files | |
* Description: Sets the WP locale to MLP's current blog language so that different language files can be loaded | |
* Author: Inpsyde GmbH | |
* Author URI: http://inpsyde.com | |
* Text Domain: multilingualpress | |
* Domain Path: /languages | |
* License: GPLv3 | |
*/ |
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: MLP Autosync Terms | |
* Description: Automatically sync all linked terms when a post is saved | |
* Author: Biont | |
* Author URI: https://github.com/Biont | |
* License: GPLv3 | |
*/ | |
/** |
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 # -*- coding: utf-8 -*- | |
/** | |
* Plugin Name: MLP Addon: Sync post meta fields | |
* Plugin URI: https://gist.github.com/toscho/6393c79aacba0983a96a | |
* Description: Create a custom field, put it into the MLP translation box, and sync it across the sites. | |
* Version: 2015.03.03 | |
* Required: 4.0 | |
* Author: Thomas Scholz <[email protected]> | |
* Author URI: http://toscho.de | |
* License: MIT |