Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
<?php | |
// Plugin Name: Change Network Admin Color Scheme | |
if ( is_multisite() ) { | |
add_filter( 'style_loader_src', 'cnacs_intercept_admin_color', 10, 2 ); | |
add_action( 'admin_color_scheme_picker', 'cnacs_network_admin_color_scheme_picker'); | |
add_action( 'personal_options_update', 'cnacs_update_network_admin_option' ); | |
add_action( 'edit_user_profile_update', 'cnacs_update_network_admin_option' ); | |
} |
I use Pathogen and have the following bundles installed: | |
~/.vim/bundle ᐅ ls -l | |
total 0 | |
drwxr-xr-x 5 chartjes staff 170 1 May 22:53 closetag.vim | |
drwxr-xr-x 8 chartjes staff 272 1 May 22:54 ctrlp.vim | |
drwxr-xr-x 8 chartjes staff 272 1 May 22:54 nerdcommenter | |
drwxr-xr-x 6 chartjes staff 204 1 May 22:51 pb.vim | |
drwxr-xr-x 18 chartjes staff 612 1 May 22:54 powerline | |
drwxr-xr-x 8 chartjes staff 272 1 May 22:54 supertab |
{ | |
{I have|I've} been {surfing|browsing} online more than {three|3|2|4} hours today, yet I never found any interesting article like yours. {It's|It | |
is} pretty worth enough for me. {In my opinion|Personally|In my view}, if all {webmasters|site owners|website owners|web owners} and bloggers made good content as | |
you did, the {internet|net|web} will be {much more|a lot more} | |
useful than ever before.| | |
I {couldn't|could not} {resist|refrain from} commenting. {Very well|Perfectly|Well|Exceptionally well} written!| | |
{I will|I'll} {right away|immediately} {take hold of|grab|clutch|grasp|seize|snatch} | |
your {rss|rss feed} as I {can not|can't} {in finding|find|to find} your {email|e-mail} subscription {link|hyperlink} or {newsletter|e-newsletter} service. Do {you have|you've} any? | |
{Please|Kindly} {allow|permit|let} me {realize|recognize|understand|recognise|know} {so that|in order that} I {may just|may|could} subscribe. | |
Thanks.| |
{ | |
"name" : "rarst/install-test", | |
"description" : "Test project for WordPress stack via Composer", | |
"authors" : [ | |
{ | |
"name" : "Andrey Savchenko", | |
"homepage": "http://www.Rarst.net/" | |
} | |
], | |
"type" : "project", |
<?php | |
/** | |
* This little class records how long it takes each WordPress action or filter | |
* to execute which gives a good indicator of what hooks are being slow. | |
* You can then debug those hooks to see what hooked functions are causing problems. | |
* | |
* This class does NOT time the core WordPress code that is being run between hooks. | |
* You could use similar code to this that doesn't have an end processor to do that. | |
* |
#!/bin/bash | |
# LEMP | |
apt-get -y install nginx mysql-server php5-mysql php5-fpm | |
# extra php packages | |
apt-get -y install php5-cli php5-gd php5-curl php5-xdebug | |
# change user from www-data to scribu | |
sed -i 's/www-data/scribu/g' /etc/nginx/nginx.conf /etc/php5/fpm/pool.d/www.conf |
<?php | |
/* | |
Usage: | |
$frag = new CWS_Fragment_Cache( 'unique-key', 3600 ); // Second param is TTL | |
if ( !$frag->output() ) { // NOTE, testing for a return of false | |
functions_that_do_stuff_live(); | |
these_should_echo(); | |
// IMPORTANT | |
$frag->store(); | |
// YOU CANNOT FORGET THIS. If you do, the site will break. |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.