I hereby claim:
- I am tazeverywhere on github.
- I am shess (https://keybase.io/shess) on keybase.
- I have a public key ASCpCfkgtuKcVLXHjj8zd4p00ZHvtzryEcemILUdphgPwAo
To claim this, I am signing this object:
| <?php | |
| /* | |
| * Plugin Name: Rewrite Wordpress uploads URLs | |
| * Plugin URI: https://permalinkmanager.pro?utm_source=plugin | |
| * Description: Replace /wp-content/uploads/YYYY/MM/ with different directory | |
| * Version: 1.0.0 | |
| * Author: Maciej Bis | |
| * Author URI: http://maciejbis.net/ | |
| * License: GPL-2.0+ | |
| * License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
| <?php | |
| /** | |
| * The Events Calendar - Event Aggregator: hijack event time zone before import | |
| * Must change code to accomodate your desired time zone | |
| * | |
| * From https://gist.github.com/cliffordp/f2cf6b3ce9f33c7ff17988c824d67e21 | |
| * | |
| * By Nico 2017-01-12 | |
| */ |
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| namespace Deployer; | |
| require_once(__DIR__ . '/vendor/sourcebroker/deployer-loader/autoload.php'); | |
| new \SourceBroker\DeployerExtendedTypo3\Loader(); | |
| set('repository', 'git@git.yourdomain.git:yourgroup/yourepo.git'); | |
| set('http_user', 'uidXXXXX'); // @see infomaniak http-user (owner) | |
| // @NOTE: put .bashrc with "source ~/.profile" into, at root infomaniak to be able to read alias and $PATH info (ex: php-cli path) |
| <?php | |
| /******************************************/ | |
| // db_utf8_fix.php // | |
| // Original author: J. van Hemert // | |
| // Original Date: 26-10-2011 // | |
| // // | |
| // Fixes encoding when utf-8-encoded data // | |
| // is stored in tables with other (e.g. // | |
| // latin_swedish_ci) encoding. // | |
| // Will convert all columns in all tables // |
| <?php // Don't use this line. | |
| /** | |
| * This function will connect wp_mail to your authenticated | |
| * SMTP server. This improves reliability of wp_mail, and | |
| * avoids many potential problems. | |
| * | |
| * Values are constants set in wp-config.php | |
| */ | |
| add_action( 'phpmailer_init', 'send_smtp_email' ); |
| <?php | |
| /** | |
| * Pull.php: | |
| * Version control your MODX site using git. | |
| * Pulls changes from git and processes database changes in changesets. | |
| * | |
| * Authors: | |
| * Jeroen Kenters / www.kenters.com | |
| * Bert Oost / www.oostdesign.com | |
| * |
| read -r -p "Would you really like to reset your development database and pull the latest from production? [y/N] " response | |
| if [[ "$response" =~ ^([yY][eE][sS]|[yY])$ ]]; then | |
| wp @development db reset --yes && | |
| wp @production db export - > sql-dump-production.sql && | |
| wp @development db import sql-dump-production.sql && | |
| wp @development search-replace https://example.com https://example.dev | |
| fi |
| /*------------------------------------------------------------------------------------------ | |
| * WORPDRESS MULTIPLE ENVIRONMENT | |
| *-----------------------------------------------------------------------------------------*/ | |
| //GET HOSTNAME INFO | |
| $hostname = $_SERVER['SERVER_NAME']; | |
| //VERIFY WHICH ENVIRONMENT THE APP IS RUNNING | |
| switch ($hostname) { | |
| case 'development.dev': |
| source 'https://rubygems.org' | |
| gem 'capistrano', '~> 3.4.0' | |
| gem 'capistrano-composer' | |
| gem 'wordmove' |