litwol

Code

  1. server {
  2.   listen 80;
  3.   server_name example.com;
  4.   log_subrequest on;
  5.   access_log /var/log/nginx/speed.access.log;
  6.   error_log /var/log/nginx/speed.error.log;
  7.  
  8.   root /var/www/speed;
  9.   index

Code

  1. function warpd_form_whitelist($form_id) {
  2.   $whitelist = array(  
  3.     'search_theme_form',
  4.     'search_block_form',
  5.     'search_form',
  6.   );
  7.   return in_array($form_id, $whitelist);
  8. }  
  9.  
  10. litw

Fix for Fix for Code

  1. diff --git a/includes/form.inc b/includes/form.inc
  2. index be9da38..2e1ca16 100644
  3. --- a/includes/form.inc
  4. +++ b/includes/form.inc
  5. @@ -67,7 +67,7 @@
  6.   *   The rendered form.
  7.   */
  8.  function drupal

Fix for Code

  1. diff --git a/includes/form.inc b/includes/form.inc
  2. index be9da38..2e1ca16 100644
  3. --- a/includes/form.inc
  4. +++ b/includes/form.inc
  5. @@ -67,7 +67,7 @@
  6.   *   The rendered form.
  7.   */
  8.  function drupal

Code

  1. diff --git a/includes/form.inc b/includes/form.inc
  2. index be9da38..2e1ca16 100644
  3. --- a/includes/form.inc
  4. +++ b/includes/form.inc
  5. @@ -67,7 +67,7 @@
  6.   *   The rendered form.
  7.   */
  8.  function drupal

Code

  1. server {
  2.     listen 80;
  3.     server_name example.com *.example.com;
  4.  
  5.     if ($host ~ "^(.*).example.com") {
  6.       set $sub $1;
  7.     }
  8.     if ($sub = "") {
  9.       set $sub "6";
  10.     }
  11.     if (!-d

Code

  1. server {
  2.     listen 80;
  3.     server_name example.com *.example.com;
  4.  
  5.     if ($host ~ "^(.*).example.com") {
  6.       set $sub $1;
  7.     }
  8.     if ($sub = "") {
  9.       set $sub "6";
  10.     }
  11.     if (!-d

Code

  1.   location ^~ /nginx-ssi/ {
  2.     access_log /var/log/nginx/1.access.log cookie;
  3.     if ($uri ~* "/nginx-ssi/(.*)$") {
  4.       set $region $1;
  5.     }
  6.   }
  7.   if (!-e $request_filename) {
  8.     rewrite ^

Fix for Fix for Creating a simple menu entry

  1. /*
  2.  * I'm trying to create a menu item that links to 'author/<username>', where username is the name of the logged in user.
  3.  * The menu has no callback associated, it's just a simple menu item, poin

HDD serial numbers

  1. cache 32MB
  2. 1) WCASY4002482 (MDL: WD6401AALS-00L3B2)
  3. 2) WCASY3710960 (MDL: WD6401AALS-00L3B2)
  4.  
  5.  
  6. cache 16MB
  7. 1) WMASY3815692 (MDL: WD6400AAKS-00A7B0)
  8. 2) WCASY0256469 (MDL: WD6400AAKS-00A7B0)

Code

  1. localhost:privatemsg litwol$ ./cvs-release-notes.php DRUPAL-6--1-0-RC2  DRUPAL-6--1-0-RC3
  2.  
  3. <p>Changes since DRUPAL-6--1-0-RC2:</p>

Code

  1. Directories layout >>>>>>>>>>>>>>
  2. litwol@mail:/var/www/nginx-default/nginx-ssi$ pwd
  3. /var/www/nginx-default/nginx-ssi >
  4.  .
  5.  ..
  6.  na -> ../../opensourcerpg.org >>>>> /var/www/opensourcerpg.org

Code

  1. function views_fastsearch_views_tables() {
  2.   $tables['search_index'] = array(
  3.     'name' => 'search_index',
  4.     'provider' => 'internal',
  5.     'fields' => array(
  6.       'score' => array(
  7.        

Fix for Code

  1. localhost:test litwol$ ll
  2. total 144
  3. drwxr-xr-x  20 litwol  staff   680B Jul  2 15:08 .
  4. drwxr-xr-x+ 62 litwol  staff   2.1K Jul  2 14:51 ..
  5. -rw-r--r--   1 litwol  staff   1.3K Jul  2 15:08 1-1001-8

Code

  1. localhost:test litwol$ ll
  2. total 144
  3. drwxr-xr-x  20 litwol  staff   680B Jul  2 15:08 .
  4. drwxr-xr-x+ 62 litwol  staff   2.1K Jul  2 14:51 ..
  5. -rw-r--r--   1 litwol  staff   1.3K Jul  2 15:08 1-1001-8

Code

  1. ..
  2. .
  3. ..
  4. .
  5. .
  6.  
  7.     location / {
  8.         default_type  text/html;
  9.       if ( $request_method = 'GET') {
  10.         access_log /var/log/nginx/litwol.access.log foobar;
  11.         set $memcached_key $s

Code

  1. server {
  2.     log_format memca "memcached $scheme://$host$request_uri $request_method '$time_local'" ;
  3.     log_format filesys "fileys $scheme://$host$request_uri $request_method '$time_local'" ;
  4.    

Code

  1. localhost:mydir litwol$ svn diff  ^/d5/branches/fc/.htaccess ^/d5/trunk/.htaccess
  2.  
  3. Property changes on: .htaccess
  4. ___________________________________________________________________
  5. Modified: svn:

Fix for Code

  1. <?php
  2.  // Assumption: We have an API that registers existence
  3.  // of js library and corresponding version.

Code

  1. <?php
  2.  // Assumption: We have an API that registers existence
  3.  // of js library and corresponding version.
Syndicate content