- Download getcomposer.org/composer.phar to your account's home directory —
/home/username. - Edit
.bashrcfile in same directory by addingalias composer='/usr/local/php56/bin/php-cli ~/composer.phar'line. Updatephp56part to current relevant version, if necessary. - Restart SSH session or run
source ~/.bashrcto reload config. - Use
composercommand!
Table now lives in the post at my blog.
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 | |
| use Rarst\Profiler\Handler; | |
| global $wp; | |
| if ( Handler::$profiling && empty( $wp ) ) { | |
| Handler::close(); | |
| } |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <templateSet group="WordPress"> | |
| <template name="aa" value="add_action( '$hook$', '$callback$' ); $END$" description="add_action" toReformat="false" toShortenFQNames="true"> | |
| <variable name="hook" expression="" defaultValue="" alwaysStopAt="true" /> | |
| <variable name="callback" expression="" defaultValue="" alwaysStopAt="true" /> | |
| <context> | |
| <option name="HTML_TEXT" value="false" /> | |
| <option name="HTML" value="false" /> | |
| <option name="XSL_TEXT" value="false" /> | |
| <option name="XML" value="false" /> |
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 | |
| if ( did_action( 'muplugins_loaded' ) || ! isset( $_GET['time_plugins_load'] ) ) { | |
| return; | |
| } | |
| Time_Plugins_Load::load(); | |
| /** | |
| * Hijacks plugins load process and captures timing information. |
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
| body { | |
| overflow: hidden; | |
| font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif; | |
| font-size: 16px; | |
| line-height: 1.6; | |
| word-wrap: break-word | |
| } | |
| body > *:first-child { | |
| margin-top: 0 !important |
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
| This program is free software: you can redistribute it and/or modify | |
| it under the terms of the GNU General Public License as published by | |
| the Free Software Foundation, either version 2 of the License, or | |
| (at your option) any later version. | |
| This program is distributed in the hope that it will be useful, | |
| but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| GNU General Public License for more details. |
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 | |
| $data_dir = 'c:/server/www/dev/data/'; | |
| $releases = [ ]; | |
| foreach ( range( 3.2, 4.0, 0.1 ) as $version ) { | |
| $version = number_format( $version, 1 ); | |
| $data = json_decode( file_get_contents( $data_dir . $version . '.json' ), true ); | |
| $groups = wp_list_pluck( $data['groups'], 'data' ); |
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 | |
| namespace Rarst; | |
| /** | |
| * Discover where is array global being modified, because WordPress. | |
| */ | |
| class Global_Sniffer implements \ArrayAccess { | |
| protected $name; |