2010-08-11

Кулинария

Каши
55 каш:
http://www.gotovim.ru/recepts/groats/buckwheat/
http://supercook.ru/zz205-mess3.html
http://forum.say7.info/topic820.html

Соусы
http://www.vkysno.kiev.ua/d-recept-action-detail-rid-179-page-1.html

Kuking.net

2010-08-06

2010-08-02

Linux/MySQL/PHP

MySQL
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1;

You must reset your password using ALTER USER statement before executing this statement

SET PASSWORD=PASSWORD('asdfqwer'); 

# grep skip-grant-tables /lib/systemd/system/mysqld.service
#--skip-grant-tables


#################################

PHP 5.3.2
./configure --with-apxs2=/usr/sbin/apxs --with-mysqli=mysqlnd --with-mysql=/usr/local/mysql --with-gd --with-jpeg-dir --enable-soap

php-5.2.14]# ./configure --with-apxs2=/usr/sbin/apxs --enable-embedded-mysqli=shared --with-mysql=/usr/local/mysql3306 --with-gd --with-jpeg-dir --enable-soap


htaccess:

#two domains served from one root..
RewriteCond %{HTTP_HOST} domain-one.com
RewriteCond %{REQUEST_URI} !^/one
RewriteRule ^(.*)$ one/$1 [L]

RewriteCond %{HTTP_HOST} domain-two.com
RewriteCond %{REQUEST_URI} !^two
RewriteRule ^(.*)$ two/$1 [L]

***

RewriteCond %{HTTP_HOST} ^domain\.?com [NC,OR]
RewriteCond %{HTTP_HOST} ^www.domain\.?com [NC]
RewriteCond %{REQUEST_URI} !/folder/
RewriteRule ^(.*)$ folder/$1 [L]

***

RewriteEngine On
RewriteBase /

# pointing for the domain abc.com to folder abc
ReWriteCond %{HTTP_HOST} abc.com
ReWriteCond %{REQUEST_URI} !abc/
ReWriteRule ^(.*)$ abc/$1 [L]

# pointing for the domain 123.com to folder 123
ReWriteCond %{HTTP_HOST} 123.com
ReWriteCond %{REQUEST_URI} !123/
ReWriteRule ^(.*)$ 123/$1 [L]

***

RewriteEngine On
RewriteBase /

# ---------------------------------------
# BEGIN Domain to folder mapping

# pointing domain_1.com to folder_1
ReWriteCond %{HTTP_HOST} domain_1.com
ReWriteCond %{REQUEST_URI} !folder_1/
ReWriteRule ^(.*)$ folder_1/$1 [L]

# pointing domain_2.com to folder_2
ReWriteCond %{HTTP_HOST} domain_2.com
ReWriteCond %{REQUEST_URI} !folder_2/
ReWriteRule ^(.*)$ folder_2/$1 [L]


Shell:
grep "RobinBobin" * | cut -d: -f1 | xargs -i -t cp ./{} ./RobinBobin/{}


.htaccess
php_value display_errors 1
php_value error_reporting E_ALL

ini_set('display_errors', 1);
error_reporting(E_ALL);