Skip to content

Instantly share code, notes, and snippets.

@CrookedNumber
CrookedNumber / gist:3926920
Created October 21, 2012 13:12
memcached status
echo stats | nc 127.0.0.1 11211
Index: system.module
===================================================================
--- modules/system/system.module (revision 8648)
+++ modules/system/system.module (working copy)
@@ -2238,7 +2238,7 @@
}
else {
// File is not found in file system, so delete record from the system table.
- $delete->condition('filename', $file->filename);
+ //$delete->condition('filename', $file->filename);
*** system.install 2012-07-09 15:58:15.000000000 -0400
--- system-patched.install 2012-01-24 17:21:30.000000000 -0500
*************** function system_requirements($phase) {
*** 474,489 ****
);
}
$requirements['update status']['title'] = $t('Update notifications');
-
- // Check that Drupal can issue HTTP requests.
- if (variable_get('drupal_http_request_fails', TRUE) && !system_check_http_request()) {
477,486d476
<
< // Check that Drupal can issue HTTP requests.
< if (variable_get('drupal_http_request_fails', TRUE) && !system_check_http_request()) {
< $requirements['http requests'] = array(
< 'title' => $t('HTTP request status'),
< 'value' => $t('Fails'),
< 'severity' => REQUIREMENT_ERROR,
< 'description' => $t('Your system or network configuration does not allow Drupal to access web pages, resulting in reduced functionality. This could be due to your webserver configuration or PHP settings, and should be resolved in order to download information about available updates, fetch aggregator feeds, sign in via OpenID, or use other network-dependent services. If you are certain that Drupal can access web pages but you are still seeing this message, you may add <code>$conf[\'drupal_http_request_fails\'] = FALSE;</code> to the bottom of your settings.php file.'),
< );
Index: system.install
===================================================================
--- modules/system/system.install (revision 8648)
+++ modules/system/system.install (working copy)
@@ -476,15 +476,6 @@
}
$requirements['update status']['title'] = $t('Update notifications');
- // Check that Drupal can issue HTTP requests.
- if (variable_get('drupal_http_request_fails', TRUE) && !system_check_http_request()) {
@CrookedNumber
CrookedNumber / drupal-bulk-validate.py
Created December 17, 2009 22:08
Python script to bulk validate a drupal site
#!/usr/bin/env python
import urllib
import time
import httplib
base = 'www.edc.org' # NO trailing slash
lim = 200 # highest nid in your {node} table
def xhmtl_is_valid(url):
time.sleep(.75) # seconds