This file contains hidden or 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 | |
/** | |
* Decodifica HEX -> Blowfish -> Plain Text | |
* @license http://creativecommons.org/publicdomain/zero/1.0/ | |
*/ | |
/** | |
* pear install Crypt_Blowfish | |
* @link http://pear.php.net/package/Crypt_Blowfish/ | |
*/ |
This file contains hidden or 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
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
uglify: { | |
options: { | |
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n' | |
}, |
This file contains hidden or 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
{ | |
"name" : "rarst/install-test", | |
"description" : "Test project for WordPress stack via Composer", | |
"authors" : [ | |
{ | |
"name" : "Andrey Savchenko", | |
"email" : "[email protected]", | |
"homepage": "http://www.Rarst.net/" | |
} | |
], |
This file contains hidden or 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/php | |
# | |
# Usage: ./imapsync.sh accounts.csv | |
# | |
# CSV account schema: | |
# old_username;old_password;new_username;new_password | |
# | |
<?php | |
define('HOST_FROM', 'imap.example.com'); |
This file contains hidden or 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 | |
DOMAIN="easyforex" | |
POT="$DOMAIN.pot" | |
LANGS="en_US ru_RU" | |
SOURCES="*.php" | |
# Create template | |
echo "Creating POT" | |
rm -f $POT |
This file contains hidden or 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 | |
wp db reset --yes | |
wp core install --url=http://plugins.wp --title="plugin dev" --admin_name=plugins [email protected] --admin_password=plugins | |
wp plugin install <plugin_name> --activate |
This file contains hidden or 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 | |
$download_url = 'https://wpcom-themes.svn.automattic.com/demo/theme-unit-test-data.xml'; | |
$silent = WP_CLI::get_config('quiet') ? '--silent ' : ''; | |
$cmd = "curl -f $silent %s -o /tmp/theme-unit-test-data.xml"; | |
WP_CLI::launch( Utils\esc_cmd( $cmd, $download_url ) ); | |
# reset wp | |
WP_CLI::launch( 'wp db reset --yes' ); |
This file contains hidden or 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 Fatal error: Call to a member function register_early_invoke() on a non-object in /src/wp-cli/php/WP_CLI/Dispatcher/CompositeCommand.php on line 23 | |
PHP Stack trace: | |
PHP 1. {main}() /src/wp-cli/php/boot-fs.php:0 | |
PHP 2. include() /src/wp-cli/php/boot-fs.php:17 | |
PHP 3. WP_CLI\Utils\load_dependencies() /src/wp-cli/php/wp-cli.php:13 | |
PHP 4. require() /src/wp-cli/php/utils.php:19 | |
PHP 5. ComposerAutoloaderInitf85e7a78598cba3871ca35c635bc35df::getLoader() /src/wp-cli/vendor/autoload.php:7 | |
PHP 6. require() /src/wp-cli/vendor/composer/autoload_real.php:46 | |
PHP 7. WP_CLI::add_command() /src/wp-cli-test-command/wp-cli-test-command.php:72 |
This file contains hidden or 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 | |
wp db reset --yes | |
wp core install --url=http://wp35.dev --title="WP" --admin_name=test [email protected] --admin_password=test | |
wp theme-test install --menus |
This file contains hidden or 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 | |
print_r( exif_read_data( 'sucuri-test.jpg' ) ); | |
/* | |
Array | |
( | |
[FileName] => sucuri-test.jpg | |
[FileDateTime] => 1374009774 | |
[FileSize] => 38936 | |
[FileType] => 2 |
OlderNewer