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
# | |
# robots.txt | |
# | |
# This file is to prevent the crawling and indexing of certain parts | |
# of your site by web crawlers and spiders run by sites like Yahoo! | |
# and Google. By telling these "robots" where not to go on your site, | |
# you save bandwidth and server resources. | |
# | |
# This file will be ignored unless it is at the root of your host: | |
# Used: http://example.com/robots.txt |
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 | |
header( 'Cache-Control: no-cache, must-revalidate, max-age=0' ); | |
// TODO: read the tabe prefix set on wp_config.php | |
// replace the prefix based on wp-config.php | |
$wp_prefix = 'wp_'; | |
// For sites not on pantheon just replace the $_ENV with the appropriate connection information |
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
# add this line to ~/.ssh/config for the updated version of Fedora | |
Host * | |
PubkeyAcceptedKeyTypes +rsa-sha2-256,rsa-sha2-512 |
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 | |
if (($_SERVER['REQUEST_URI'] == '/2016annualreport') && (php_sapi_name() != "cli")) { | |
header('HTTP/1.0 301 Moved Permanently'); | |
header('Location: https://'. $_SERVER['HTTP_HOST'] . '/2016annualreport/index.html'); | |
// Name transaction "redirect" in New Relic for improved reporting (optional). | |
if (extension_loaded('newrelic')) { | |
newrelic_name_transaction("redirect"); |
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 | |
header( 'Cache-Control: no-cache, must-revalidate, max-age=0' ); | |
// TODO: read the tabe prefix set on wp_config.php | |
// replace the prefix based on wp-config.php | |
$wp_prefix = 'wp_'; | |
// For sites not on pantheon just replace the $_ENV with the appropriate connection information |
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 | |
/** | |
* Auhor: Carey Dayrit | |
* Author URI: https://github.com/careydayrit | |
* License: GPL v2 or later | |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html | |
* | |
* | |
* This program is free software; you can redistribute it and/or modify |
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
Views | |
Views status: Views is enabled. | |
Rendered output caching: The following Views are not caching rendered output: photography, confirm_message_product_display, featured_photo, footage, tags, photos_of_contributor, user_photos, featured_video, videos_of_contributor, latest_videos, user_videos, purchased_by_user, contributor_sales, categories, charts_demo, collection_products, commerce_addressbook, commerce_addressbook_defaults, commerce_backoffice_product_variations, commerce_discount_overview, commerce_gc_giftcards, commerce_gc_giftcard_transactions, commerce_gc_user_giftcards, commerce_message_messages, commerce_reports_customers, commerce_reports_customer_map, commerce_reports_customer_statistics, commerce_reports_payment_methods, commerce_reports_products, commerce_reports_sales, commerce_reports_sales_overview, commerce_reports_taxes, coupons, display_products, media_default, message, order_coupon_list, product_individual_report, shopping_cart | |
Rendered output should be cached for as long as possible ( |
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
# create uploads folder | |
username@:machine:wp-content/uploads/$ mkdir worldcontinentshtmlmap/static/cache | |
# if this not work you need to create folders under worldcontinentshtmlmap | |
# go to the wp-content/plugins/worldcontinentshtmlmap/static, be sure remove the cache folder first | |
username@:machine:wp-content/plugins/worldcontinentshtmlmap/static$ ln -s ../../uploads/worldcontinentshtmlmap/static/cache ./cache |
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
first time | |
curl -o /dev/null -w "TTFB: %{time_starttransfer} Total time: %{time_total} \n" https://www.medsource.com | |
TTFB: 1.179 Total time: 1.231 | |
2nd time | |
curl -o /dev/null -w "TTFB: %{time_starttransfer} Total time: %{time_total} \n" https://www.medsource.com | |
TTFB: 0.888 Total time: 0.939 |
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
sudo rm /usr/local/bin/terminus | |
sudo ln -s /home/msasin20/vendor/pantheon-systems/terminus/bin/terminus /usr/local/bin/terminus |
NewerOlder