{"id":213213,"date":"2014-02-20T08:54:03","date_gmt":"2014-02-20T04:54:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=213213"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=213213","title":{"rendered":"<span class=\"post_title\">\u0421\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u0432\u0435\u0431 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0441 Google Docs<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t\u042f \u0440\u0430\u0431\u043e\u0442\u0430\u044e \u0432 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u0430\u0443\u0442\u0441\u043e\u0440\u0441\u0438\u043d\u0433\u043e\u043c \u043f\u043e \u0432\u0441\u0435\u0439 \u0420\u043e\u0441\u0441\u0438\u0438, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u043c\u043e\u043d\u0442\u0430\u0436\u043e\u043c \u0421\u041a\u0421 \u0432 \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0430\u0445 \u043d\u0430\u0448\u0438\u0445 \u0437\u0430\u043a\u0430\u0437\u0447\u0438\u043a\u043e\u0432. \u0417\u0430\u043a\u0430\u0437\u043e\u0432 \u043d\u0430 \u043c\u043e\u043d\u0442\u0430\u0436 \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0441\u0442\u0430\u043b\u043e \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0438 \u0431\u044b\u043b \u0441\u043e\u0437\u0434\u0430\u043d \u043d\u043e\u0432\u044b\u0439 \u043e\u0442\u0434\u0435\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u043e\u043c \u044d\u0442\u0438\u0445 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0439. \u041c\u043d\u0435 \u0431\u044b\u043b\u0430 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0441\u0430\u0439\u0442 \u0434\u043b\u044f \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0430\u0431\u043e\u0442. \u041d\u0430 \u0441\u0430\u0439\u0442\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0438 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u043e\u0442\u0447\u0435\u0442\u0430, \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0430, \u0441\u0442\u0440\u043e\u043a\u0430 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043e\u0431 \u044d\u0442\u043e\u043c \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0435 (\u0437\u0430\u043a\u0430\u0437\u0447\u0438\u043a, \u0431\u0440\u0435\u043d\u0434, \u0433\u043e\u0440\u043e\u0434, \u0430\u0434\u0440\u0435\u0441, \u043d\u043e\u043c\u0435\u0440 \u0437\u0430\u044f\u0432\u043a\u0438 \u0432 \u043d\u0430\u0448\u0435\u0439 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435, \u0442\u0438\u043f \u0440\u0430\u0431\u043e\u0442 \u0438 \u0434\u0430\u0442\u0430 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f), \u0430 \u0432\u0441\u044f \u044d\u0442\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u043d\u0430\u0445\u043e\u0434\u044f\u0449\u0438\u0439\u0441\u044f \u043d\u0430 Google docs.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h4>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430<\/h4>\n<p>  \u042f \u0432\u044b\u0431\u0440\u0430\u043b CentOS 6, \u043a\u0430\u043a \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0434\u043b\u044f \u043c\u0430\u0448\u0438\u043d\u044b, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u044f \u0431\u0443\u0434\u0443 \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u0432\u0435\u0431 \u0441\u0435\u0440\u0432\u0435\u0440. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0432\u0435\u0431 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u044f \u0432\u044b\u0431\u0440\u0430\u043b apache2, \u0442\u0430\u043a \u043a\u0430\u043a \u044f \u0441 \u043d\u0438\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u0437\u043d\u0430\u043a\u043e\u043c. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0421\u0423\u0411\u0414 \u0431\u044b\u043b\u043e \u0432\u044b\u0431\u0440\u0430\u043d\u043e MySql, \u0442\u0430\u043a \u043a\u0430\u043a \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0441\u0447\u0438\u0442\u0430\u044e, \u0447\u0442\u043e \u044d\u0442\u043e \u0441\u0430\u043c\u044b\u0439 \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u044b\u0431\u043e\u0440. \u042f \u043d\u0435 \u0431\u0443\u0434\u0443 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 CentOS, apache, MySql, \u0442\u0430\u043a \u043a\u0430\u043a \u0442\u0430\u043a\u0438\u0435 \u043f\u043e\u0441\u0442\u044b \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u043d\u0430 \u0445\u0430\u0431\u0440\u0435.<\/p>\n<p>  \u041c\u0435\u043d\u044f\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433 MySql \/etc\/my.cnf:<\/p>\n<pre><code class=\"bash\">[mysqld] datadir=\/var\/lib\/mysql socket=\/var\/lib\/mysql\/mysql.sock user=mysql default-character-set=latin1 init-connect='SET NAMES latin1' character-set-server=latin1 init-connect='SET NAMES latin1' collation-server=latin1_general_cs skip-character-set-client-handshake #character_set_system=utf8 # Disabling symbolic-links is recommended to prevent assorted security risks symbolic-links=0   [mysqld_safe] log-error=\/var\/log\/mysqld.log pid-file=\/var\/run\/mysqld\/mysqld.pid  [mysql] default-character-set=latin1  [client] default-character-set=latin1 <\/code><\/pre>\n<p>  \u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0443 latin1, \u0442\u0430\u043a \u043a\u0430\u043a \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0430\u043c\u0438 \u044f \u043d\u0435 \u0441\u043c\u043e\u0433 \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0440\u0443\u0441\u0441\u043a\u0438\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432.<\/p>\n<p>  \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u043f\u0430\u0440\u043e\u043b\u044c \u0434\u043b\u044f root \u043d\u0430 MySql:<br \/>  mysqladmin -u root password sqlpass<br \/>  password \u2014 \u043f\u0430\u0440\u043e\u043b\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439<br \/>  sqlpass \u2014 \u043f\u0430\u0440\u043e\u043b\u044c \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u043d\u0430 \u0432 \u0445\u043e\u0434 \u0432 MySql<\/p>\n<p>  \u0417\u0430\u0445\u043e\u0434\u0438\u043c \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c MySql:<\/p>\n<pre><code class=\"bash\">mysql -u root -p'sqlpass' <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0434\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445:<\/p>\n<pre><code class=\"sql\">CREATE DATABASE `otkritiya`; <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0442\u0430\u0431\u043b\u0438\u0446\u044b:<\/p>\n<pre><code class=\"sql\">use otkritiya CREATE TABLE `ot` (   `id` int(11) NOT NULL AUTO_INCREMENT,   `zakazchik` varchar(100) DEFAULT NULL,   `brend` varchar(100) DEFAULT NULL,   `gorod` varchar(100) DEFAULT NULL,   `adress` varchar(300) DEFAULT NULL,   `ticket` varchar(50) NULL,   `type` varchar(100) DEFAULT NULL,   `data` varchar(50) DEFAULT NULL,   PRIMARY KEY (`id`) ); CREATE TABLE `ololo` (   `raz` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,   `dva` varchar(50) CHARACTER SET latin1 DEFAULT NULL,   `tri` varchar(50) CHARACTER SET latin1 DEFAULT NULL,   `qw` varchar(50) CHARACTER SET latin1 DEFAULT NULL,   `qe` varchar(50) CHARACTER SET latin1 DEFAULT NULL,   `qr` varchar(50) CHARACTER SET latin1 DEFAULT NULL,   `qt` varchar(300) COLLATE utf8_unicode_ci DEFAULT NULL,   `qy` varchar(50) CHARACTER SET latin1 DEFAULT NULL,   `qa` varchar(50) CHARACTER SET latin1 DEFAULT NULL,   `qs` varchar(50) CHARACTER SET latin1 DEFAULT NULL,   `sa` varchar(50) CHARACTER SET latin1 DEFAULT NULL,   `qf` varchar(50) CHARACTER SET latin1 DEFAULT NULL,   `qg` varchar(50) CHARACTER SET latin1 DEFAULT NULL,   `qu` varchar(50) CHARACTER SET latin1 DEFAULT NULL,   `qi` varchar(50) CHARACTER SET latin1 DEFAULT NULL,   `qj` varchar(50) CHARACTER SET latin1 DEFAULT NULL,   `qo` varchar(50) CHARACTER SET latin1 DEFAULT NULL,   `qp` varchar(50) CHARACTER SET latin1 DEFAULT NULL,   `qd` varchar(50) CHARACTER SET latin1 DEFAULT NULL,   `qh` varchar(50) CHARACTER SET latin1 DEFAULT NULL,   `qk` varchar(50) CHARACTER SET latin1 DEFAULT NULL,   `ql` varchar(50) CHARACTER SET latin1 DEFAULT NULL,   `qz` varchar(50) CHARACTER SET latin1 DEFAULT NULL,   `qx` varchar(50) CHARACTER SET latin1 DEFAULT NULL,   `qc` varchar(50) CHARACTER SET latin1 DEFAULT NULL,   `qv` varchar(50) CHARACTER SET latin1 DEFAULT NULL,   `qb` varchar(50) CHARACTER SET latin1 DEFAULT NULL,   `nv` varchar(50) CHARACTER SET latin1 DEFAULT NULL,   `qn` varchar(50) CHARACTER SET latin1 DEFAULT NULL,   `qm` varchar(50) CHARACTER SET latin1 DEFAULT NULL,   `we` varchar(50) CHARACTER SET latin1 DEFAULT NULL,   `wr` varchar(50) CHARACTER SET latin1 DEFAULT NULL,   `wt` varchar(50) CHARACTER SET latin1 DEFAULT NULL,   `wy` varchar(50) CHARACTER SET latin1 DEFAULT NULL,   `wu` varchar(50) CHARACTER SET latin1 DEFAULT NULL,   `wi` varchar(50) CHARACTER SET latin1 DEFAULT NULL,   `wo` varchar(50) CHARACTER SET latin1 DEFAULT NULL,   `wp` varchar(50) CHARACTER SET latin1 DEFAULT NULL,   `wa` varchar(50) CHARACTER SET latin1 DEFAULT NULL,   `ws` varchar(50) CHARACTER SET latin1 DEFAULT NULL,   `f` char(50) CHARACTER SET latin1 DEFAULT NULL,   `e` char(50) CHARACTER SET latin1 DEFAULT NULL,   `c` char(50) CHARACTER SET latin1 DEFAULT NULL,   `d` char(50) CHARACTER SET latin1 DEFAULT NULL ); <\/code><\/pre>\n<p>  \u0412 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 ololo \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 Google docs. \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u044b MySql \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0440\u0430\u0432\u043d\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u044b Google docs. \u0412 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 ot \u0431\u0443\u0434\u0443\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446\u044b ololo, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c \u043d\u0430 \u0441\u0430\u0439\u0442\u0435.<\/p>\n<h4>\u041d\u0430\u0447\u043d\u0435\u043c<\/h4>\n<p>  \u0421\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u0441 Google docs.<br \/>  \u0422\u0430\u043a \u043a\u0430\u043a \u044f \u043f\u043b\u043e\u0445\u043e \u0437\u043d\u0430\u044e php \u044f \u0440\u0435\u0448\u0438\u043b \u0437\u0430\u0434\u0430\u0447\u0443 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438 Google docs \u0438 MySql \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 bash \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0438 \u0434\u0435\u043c\u043e\u043d\u0430 crond<br \/>  \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u0430\u043f\u043a\u0443:<\/p>\n<pre><code class=\"bash\">mkdir \/home\/google <\/code><\/pre>\n<p>  \u0412\u044b\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 txt \u0441 Google docs \u0432 \u043f\u0430\u043f\u043a\u0443 \/home\/googl \u0441 \u0438\u043c\u0435\u043d\u0435\u043c test.txt (\u0447\u0442\u043e \u0431\u044b \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0444\u0430\u0439\u043b \u0441 Google docs \u043d\u0443\u0436\u043d\u043e \u0432 \u043a\u043e\u043d\u0446\u0435 \u0441\u0441\u044b\u043b\u043a\u0438 \u043f\u043e\u0441\u043b\u0435 \u0441\u043b\u043e\u0432\u0430 sharing \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c output=txt):<\/p>\n<pre><code class=\"bash\">wget --no-check-certificate --output-document=\/home\/google\/test.txt 'https:\/\/docs.google.com\/spreadsheet\/ccc?key=0Aq38OdEhOxztdG81eXcjJO9TMEttS182aXl2VWc&usp=sharing&output=txt' <\/code><\/pre>\n<p>  \u041f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c \u0444\u0430\u0439\u043b \u0432 \u043f\u0430\u043f\u043a\u0443 \u043d\u0430\u0448\u0435\u0439 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445:<\/p>\n<pre><code class=\"bash\">cp \/home\/google\/test.txt \/var\/lib\/mysql\/otkritiya\/ <\/code><\/pre>\n<p>  \u041c\u0435\u043d\u044f\u0435\u043c \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u044d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b:<\/p>\n<pre><code class=\"bash\">chmod 777 \/var\/lib\/mysql\/otkritiya\/test.txt <\/code><\/pre>\n<p>  \u0411\u0435\u0437 \u044d\u0442\u043e\u0433\u043e \u0443 \u043c\u0435\u043d\u044f \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u043b\u043e\u0441\u044c \u0432\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 Mysql.<\/p>\n<p>  \u0412\u044b\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0443:<\/p>\n<pre><code class=\"bash\">mysql -u root -p'sqlpass' -e &quot;LOAD DATA INFILE 'test.txt' INTO TABLE otkritiya.ololo IGNORE 2 LINES;&quot; <\/code><\/pre>\n<p>  \u0422\u0430\u043a \u043a\u0430\u043a \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u043c\u043e\u0435\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0435\u0441\u0442\u044c \u0434\u0432\u0435 \u0441\u0442\u0440\u043e\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043d\u0435 \u043d\u0435 \u043d\u0443\u0436\u043d\u044b \u0432 \u0431\u0430\u0437\u0435 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u00abIGNORE 2 LINES\u00bb<br \/>  \u0422\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 ot \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446\u044b ololo:<\/p>\n<pre><code class=\"bash\">mysql -u root -p'sqlpass' -e &quot;use otkritiya; insert into ot (zakazchik , brend , gorod , adress , ticket , type , data) select ololo.dva , ololo.tri , ololo.qe , ololo.qt , ololo.qy , ololo.qa ,  STR_TO_DATE(ololo.wo , '%d.%m.%Y') from ololo where ololo.qy &lt;&gt; '' and ololo.qy not in (select ot.ticket from ot where ot.ticket is not null);&quot; <\/code><\/pre>\n<p>  \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043f\u043e \u043f\u043e\u0432\u043e\u0434\u0443 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b: \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e select insert \u0434\u043b\u044f \u0432\u0441\u0442\u0430\u0432\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 \u043e\u0434\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0434\u0440\u0443\u0433\u0443\u044e, \u0444\u0443\u043d\u043a\u0446\u0438\u044f STR_TO_DATE(ololo.wo, &#8216;%d.%m.%Y&#8217;) \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442 \u0442\u0435\u043a\u0441\u0442 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u0434\u0434.\u043c\u043c.\u0433\u0433\u0433\u0433 \u0432 \u0434\u0430\u0442\u0443 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u0433\u0433\u0433\u0433-\u043c\u043c-\u0434\u0434, \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u0434\u043b\u044f select \u0434\u0432\u0430: 1) ololo.qy &lt;&gt; &#187; \u2014 \u043f\u043e\u043b\u0435 \u0441 \u043d\u043e\u043c\u0435\u0440\u043e\u043c \u0437\u0430\u044f\u0432\u043a\u0438 \u043d\u0435 \u043f\u0443\u0441\u0442\u043e\u0435 \u0438 2) ololo.qy not in (select ot.ticket from ot where ot.ticket is not null) \u2014 \u0432 \u044d\u0442\u043e\u043c \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u043c\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0447\u0442\u043e \u043d\u043e\u043c\u0435\u0440 \u0437\u0430\u044f\u0432\u043a\u0438 \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446\u044b ololo \u043d\u0435 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442 c \u043d\u043e\u043c\u0435\u0440\u043e\u043c \u0437\u0430\u044f\u0432\u043a\u0438 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 ot, \u0447\u0442\u043e\u0431\u044b \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u0434\u0443\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0442\u0440\u043e\u043a.<\/p>\n<p>  \u0412 \u0438\u0442\u043e\u0433\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0432\u0441\u044e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0438\u0437 Google docs \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u044b ot.<br \/>  \u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441, \u0442\u0430\u043a \u043a\u0430\u043a \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 Google docs \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f.<\/p>\n<p>  \u041c\u043e\u0439 bash \u0441\u043a\u0440\u0438\u043f\u0442:<\/p>\n<pre><code class=\"bash\">wget --no-check-certificate --output-document=\/home\/google\/test.txt 'https:\/\/docs.google.com\/spreadsheet\/ccc?key=0Aq38OdEhOxztdG81eXczMjJObE9TMEttS182aXl2VWc&usp=sharing&output=txt' rm -rf \/var\/lib\/mysql\/otkritiya\/test.txt cp \/home\/google\/test.txt \/var\/lib\/mysql\/otkritiya\/ chmod 777 \/var\/lib\/mysql\/otkritiya\/test.txt mysql -u root -p'sqlpass' -e &quot;truncate table otkritiya.ololo;&quot; mysql -u root -p'sqlpass' -e &quot;truncate table otkritiya.ot;&quot; mysql -u root -p'sqlpass' -e &quot;LOAD DATA INFILE 'test.txt' INTO TABLE otkritiya.ololo IGNORE 2 LINES;&quot; mysql -u root -p'sqlpass' -e &quot;use otkritiya; insert into ot (zakazchik , brend , gorod , adress , ticket , type , data) select ololo.dva , ololo.tri , ololo.qe , ololo.qt , ololo.qy , ololo.qa ,  STR_TO_DATE(ololo.wo , '%d.%m.%Y') from ololo where ololo.qy &lt;&gt; '' and ololo.qy not in (select ot.ticket from ot where ot.ticket is not null);&quot; rm -rf \/home\/google\/test.txt rm -rf \/var\/lib\/mysql\/otkritiya\/test.txt <\/code><\/pre>\n<p>  \u0412 \u043c\u043e\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u043e\u0431\u043d\u0443\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0430\u0431\u043b\u0438\u0446\u0430 ololo, \u043d\u043e \u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u0430 ot, \u0442\u0430\u043a \u043a\u0430\u043a \u0432 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u0435\u043d \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u044b Google docs, \u043d\u043e \u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 (mysql -u root -p&#8217;sqlpass&#8217; -e \u00abtruncate table otkritiya.ot;\u00bb mysql -u root -p&#8217;sqlpass&#8217; -e \u00abtruncate table otkritiya.ololo;\u00bb).<\/p>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0441\u0430\u043c\u0443 \u0432\u0435\u0431 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443.<\/p>\n<p>  \u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u043c\u043e\u0435\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b index.php:<\/p>\n<pre><code class=\"bash\">&lt;head&gt; &lt;meta http-equiv=&quot;refresh&quot; content=&quot;300&quot;&gt; &lt;title&gt;\u0421\u0447\u0435\u0442\u0447\u0438\u043a \u041e\u0442\u043a\u0440\u044b\u0442\u0438\u0439&lt;\/title&gt; &lt;style style=&quot;text\/css&quot;&gt; #top_header{         width:1600px;         margin:0 auto;         height:300px;         } #central_header{          margin:0 auto;         height:800px;         text-align:center; } .letter {     color: #FFFFFF; }  .count_down{         padding: 3px;         font-family:Georgia, &quot;Times New Roman&quot;, Times, serif;         font-size:24px;         border-bottom: 2px solid red;         font-weight:900;         color:#CD0000; }  .count_down sup{         font-family:&quot;Lucida Grande&quot;, &quot;Lucida Sans Unicode&quot;, Verdana, Arial, Helvetica, sans-serif;         font-size:11px;         color:#CD0000;         font-weight:900; }   .text {         color:#000000;         text-align:  center; }   &lt;\/style&gt; &lt;script type=&quot;text\/javascript&quot; src=&quot;js\/jquery-1.3.2.min.js&quot;&gt;&lt;\/script&gt; &lt;script type=&quot;text\/javascript&quot; src=&quot;js\/countdown.js&quot;&gt;&lt;\/script&gt; &lt;script type=&quot;text\/javascript&quot; src=&quot;js\/countdown2.js&quot;&gt;&lt;\/script&gt;  &lt;\/head&gt;  &lt;body&gt; &lt;div class=&quot;text&quot;&gt; &lt;h1&gt;\u041e\u0442\u043a\u0440\u044b\u0442\u0438\u044f\\\u0420\u0435\u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0422\u0422&lt;\/h1&gt; &lt;\/div&gt; &lt;?php $nom = 0; $zak = 0; $bre = 0; $gor = 0; $adr = 0; $tic = 0; $typ = 0; $otk = 0; include 'bebebe.php'; ?&gt; &lt;div id=&quot;central_header&quot;&gt; &lt;div id=&quot;count_down_container&quot;&gt;&lt;\/div&gt; &lt;script type=&quot;text\/javascript&quot;&gt; var target_date=new cdtime(&quot;count_down_container&quot;, &quot; &lt;?php  include 'ololo.php'; ?&gt; 10:0:00&quot;) target_date.displaycountdown(&quot;days&quot;, displayCountDown) &lt;\/script&gt; &lt;p&gt;&lt;span class=&quot;letter&quot;&gt;L&lt;\/span&gt;&lt;\/p&gt; &lt;?php $nom = 0; $zak = 0; $bre = 0; $gor = 0; $adr = 0; $tic = 0; $typ = 0; $otk = 0; include 'bebebe2.php'; ?&gt; &lt;div id=&quot;central_header&quot;&gt; &lt;div id=&quot;count_down_container2&quot;&gt;&lt;\/div&gt; &lt;script type=&quot;text\/javascript&quot;&gt; var target_date=new cdtime(&quot;count_down_container2&quot;, &quot; &lt;?php include 'ololo2.php'; ?&gt; 10:0:00&quot;) target_date.displaycountdown(&quot;days&quot;, displayCountDown) &lt;\/script&gt; <\/code><\/pre>\n<p>  \u0411\u044b\u043b\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e, \u0447\u0442\u043e\u0431\u044b \u0441\u0447\u0435\u0442\u0447\u0438\u043a \u0441\u0447\u0438\u0442\u0430\u043b \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0430 \u043d\u0435 \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c java \u0441\u043a\u0440\u0438\u043f\u0442 (\u044f \u043d\u0435 \u0437\u043d\u0430\u043a\u043e\u043c \u0441 java \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u043c\u0438, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0442\u043e\u0442 \u0447\u0442\u043e \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0437\u0434\u0435\u0441\u044c, \u044f \u043f\u043e\u0434\u0441\u043c\u043e\u0442\u0440\u0435\u043b \u043d\u0430 \u043a\u0430\u043a\u043e\u043c \u0442\u043e \u0441\u0430\u0439\u0442\u0435). \u0421\u043a\u0440\u0438\u043f\u0442\u0443 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c: \u0434\u0435\u043d\u044c, \u043c\u0435\u0441\u044f\u0446, \u0433\u043e\u0434, \u0432\u0440\u0435\u043c\u044f. \u0414\u0435\u043d\u044c, \u043c\u0435\u0441\u044f\u0446 \u0438 \u0433\u043e\u0434 \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u0441\u043a\u0440\u0438\u043f\u0442\u0443 \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446\u044b ot \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e php \u0441\u043a\u0440\u0438\u043f\u0442\u0430 ololo.php, \u0430 \u0432\u0440\u0435\u043c\u044f \u0437\u0430\u0434\u0430\u043d\u043e \u0432\u0440\u0443\u0447\u043d\u0443\u044e, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d\u043e \u043d\u0435 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f 10:0:00. \u041c\u043d\u0435 \u0431\u044b\u043b\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043d\u0430 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u043e\u0432 \u0438 \u044f \u043d\u0435 \u043d\u0430\u0448\u0435\u043b \u0431\u043e\u043b\u0435\u0435 \u0445\u043e\u0440\u043e\u0448\u0435\u0433\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e, \u043a\u0440\u043e\u043c\u0435 \u043a\u0430\u043a \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0430 \u0441\u0432\u043e\u0439 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 div.<\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440 \u043c\u043e\u0435\u0433\u043e php \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 java \u0441\u043a\u0440\u0438\u043f\u0442\u0443:<\/p>\n<pre><code class=\"bash\">&lt;?php $host='localhost'; $database='otkritiya'; $user='root'; $pswd='sqlpass';  $dbh = mysql_connect($host, $user, $pswd); mysql_select_db($database); $query = &quot;SELECT DAYOFMONTH(data) , MONTH(data) , YEAR(data) FROM `ot` WHERE TO_DAYS(NOW()) - TO_DAYS(data) &lt;= 2 order by data asc limit 0,1&quot;; $res = mysql_query($query); while($row = mysql_fetch_array($res)) { $ol = $row['DAYOFMONTH(data)']; $lo = $row['MONTH(data)']; $ye = $row['YEAR(data)']; }; echo &quot;$lo $ol, $ye&quot; ?&gt; <\/code><\/pre>\n<p>  \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0439 DAYOFMONTH, MONTH, YEAR \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043d\u043e\u043c\u0435\u0440 \u0434\u043d\u044f, \u043c\u0435\u0441\u044f\u0446\u0430 \u0438 \u0433\u043e\u0434\u0430. \u0423\u0441\u043b\u043e\u0432\u0438\u0435 TO_DAYS(NOW()) \u2014 TO_DAYS(data) &lt;= 2 \u043d\u0443\u0436\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435 \u0441\u0442\u0440\u043e\u043a\u0438, \u0433\u0434\u0435 \u0434\u0430\u0442\u0430 \u043d\u0435 \u0441\u0442\u0430\u0440\u0448\u0435, \u0447\u0435\u043c \u0434\u0432\u0430 \u0434\u043d\u044f \u043d\u0430\u0437\u0430\u0434. \u0421\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430 order by data asc \u043d\u0443\u0436\u043d\u0430 \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u043e \u0434\u0430\u0442\u0430 \u043e\u0442 \u043c\u0435\u043d\u044c\u0448\u0435\u0433\u043e \u043a \u0431\u043e\u043b\u044c\u0448\u0435\u043c\u0443.Limit 0,1 \u0432\u044b\u0434\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u0443 \u043f\u0435\u0440\u0432\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 (\u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0444\u0430\u0439\u043b\u0430\u0445 \u043f\u0435\u0440\u0432\u0430\u044f \u0446\u0438\u0444\u0440\u0430 \u0431\u0443\u0434\u0435\u0442 \u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f \u0447\u0442\u043e \u0431\u044b \u0431\u0440\u0430\u0442\u044c \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0436\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0442\u043e\u0440\u0443\u044e \u0441\u0442\u0440\u043e\u0447\u043a\u0443 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 1,1 \u0438 \u0442.\u0434.). <\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440 \u043c\u043e\u0435\u0433\u043e php \u0441\u043a\u0440\u0438\u043f\u0442\u0430, \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0435\u0433\u043e \u0441\u0442\u0440\u043e\u043a\u0443 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 (bebebe.php):<\/p>\n<pre><code class=\"bash\">&lt;head&gt; &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text\/html; charset=ISO-8859-1&quot; \/&gt; &lt;style style=&quot;text\/css&quot;&gt; .color {              color: #8B8378;             front-family: 'Times New Roman', Times, serif;             font-style: italic;             font-size: 14pt;             font-weight: normal;             text-align: center; } .shir {             color: #000000;             front-family: 'Times New Roman', Times, serif;             font-size: 14pt;             font-weight: 900;             text-align: center; } &lt;\/style&gt; &lt;\/head&gt; &lt;body&gt; &lt;div class=&quot;shir&quot;&gt; &lt;?php $host='localhost'; $database='otkritiya'; $user='root'; $pswd='sqlpass';  $dbh = mysql_connect($host, $user, $pswd); mysql_query('SET NAMES latin1'); mysql_select_db($database); $query = &quot;select * from ot where TO_DAYS(NOW()) - TO_DAYS(data) &lt;= 2 order by data asc limit 0,1&quot;; $res = mysql_query($query); while($row = mysql_fetch_array($res)) { $nom = $row['id']; $zak = $row['zakazchik']; $bre = $row['brend']; $gor = $row['gorod']; $adr = $row['adress']; $tic = $row['ticket']; $typ = $row['type']; $otk = $row['data']; }; echo '&lt;span class=&quot;color&quot;&gt;\u2116: &lt;\/span&gt;'; echo &quot;$nom |&quot;; echo '&lt;span class=&quot;color&quot;&gt;\u0417\u0430\u043a\u0430\u0437\u0447\u0438\u043a: &lt;\/span&gt;'; echo &quot;$zak |&quot;; echo '&lt;span class=&quot;color&quot;&gt;\u0411\u0440\u0435\u043d\u0434: &lt;\/span&gt;'; echo &quot;$bre |&quot;; echo '&lt;span class=&quot;color&quot;&gt;\u0413\u043e\u0440\u043e\u0434: &lt;\/span&gt;'; echo &quot;$gor |&quot;; echo '&lt;span class=&quot;color&quot;&gt;\u0410\u0434\u0440\u0435\u0441: &lt;\/span&gt;'; echo &quot;$adr |&quot;; echo '&lt;span class=&quot;color&quot;&gt;\u2116 \u0417\u0430\u044f\u0432\u043a\u0438: &lt;\/span&gt;'; echo &quot;&lt;a href='http:\/\/componysite.com\/task.jsp?id=&quot;.$tic.&quot;'&gt;&quot;.$tic.&quot;&lt;\/a&gt; |&quot;;  echo '&lt;span class=&quot;color&quot;&gt;\u0422\u0438\u043f \u0440\u0430\u0431\u043e\u0442: &lt;\/span&gt;'; echo &quot;$typ |&quot;; echo '&lt;span class=&quot;color&quot;&gt;\u041e\u0442\u043a\u0440\u044b\u0442\u0438\u0435: &lt;\/span&gt;'; echo &quot;$otk&quot;; ?&gt; &lt;\/div&gt; &lt;\/body&gt; &lt;\/html&gt; <\/code><\/pre>\n<pre><code class=\"bash\">echo &quot;&lt;a href='http:\/\/componysite.com\/task.jsp?id=&quot;.$tic.&quot;'&gt;&quot;.$tic.&quot;&lt;\/a&gt; |&quot;;<\/code><\/pre>\n<p> \u2014 \u0434\u0435\u043b\u0430\u0435\u043c \u043d\u043e\u043c\u0435\u0440 \u0437\u0430\u044f\u0432\u043a\u0438 \u0441\u0441\u044b\u043b\u0441\u043a\u043e\u0439 \u043d\u0430 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443.\u041d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0441\u043e \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u043e\u043c \u0438 \u0441\u0442\u0440\u043e\u043a\u043e\u0439 \u0434\u0430\u043d\u043d\u044b\u0445, \u043d\u043e \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u043e\u0432 \u0438 \u0441\u0442\u0440\u043e\u043a \u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u043d\u0435 \u043d\u0430\u0434\u043e \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 45 \u0448\u0442\u0443\u043a \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c 45 \u043a\u043e\u043f\u0438\u0439 \u0444\u0430\u0439\u043b\u043e\u0432 ololo.php, bebebe.php \u0438 countdown.js \u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u043c\u0438, \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432:<\/p>\n<p>  \u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435:<\/p>\n<pre><code class=\"bash\">#!\/bin\/bash for i in 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 do cp ololo.php ololo$i.php cp bebebe.php bebebe$i.php cp js\/countdown.js js\/countdown$i.js done <\/code><\/pre>\n<p>  \u0417\u0430\u043c\u0435\u043d\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f limit:  <\/p>\n<pre><code class=\"bash\">#!\/bin\/bash for i in 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45  do a=$(($i - 1)) b=$(($i + 100)) sed &quot;s\/0,1\/$a,1\/g&quot; bebebe.php &gt; bebebe$b.php && mv bebebe$b.php bebebe$i.php done <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0439\u0442\u0438 \u043d\u0430 \u0432\u0435\u0431 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 <a href=\"http:\/\/\u0432\u0430\u0448_ip\/\">\u0432\u0430\u0448_ip\/<\/a> \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442. \t\t\t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/213213\/\"> http:\/\/habrahabr.ru\/post\/213213\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t\u042f \u0440\u0430\u0431\u043e\u0442\u0430\u044e \u0432 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u0430\u0443\u0442\u0441\u043e\u0440\u0441\u0438\u043d\u0433\u043e\u043c \u043f\u043e \u0432\u0441\u0435\u0439 \u0420\u043e\u0441\u0441\u0438\u0438, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u043c\u043e\u043d\u0442\u0430\u0436\u043e\u043c \u0421\u041a\u0421 \u0432 \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0430\u0445 \u043d\u0430\u0448\u0438\u0445 \u0437\u0430\u043a\u0430\u0437\u0447\u0438\u043a\u043e\u0432. \u0417\u0430\u043a\u0430\u0437\u043e\u0432 \u043d\u0430 \u043c\u043e\u043d\u0442\u0430\u0436 \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0441\u0442\u0430\u043b\u043e \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0438 \u0431\u044b\u043b \u0441\u043e\u0437\u0434\u0430\u043d \u043d\u043e\u0432\u044b\u0439 \u043e\u0442\u0434\u0435\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u043e\u043c \u044d\u0442\u0438\u0445 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0439. \u041c\u043d\u0435 \u0431\u044b\u043b\u0430 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0441\u0430\u0439\u0442 \u0434\u043b\u044f \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0430\u0431\u043e\u0442. \u041d\u0430 \u0441\u0430\u0439\u0442\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0438 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u043e\u0442\u0447\u0435\u0442\u0430, \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0430, \u0441\u0442\u0440\u043e\u043a\u0430 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043e\u0431 \u044d\u0442\u043e\u043c \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0435 (\u0437\u0430\u043a\u0430\u0437\u0447\u0438\u043a, \u0431\u0440\u0435\u043d\u0434, \u0433\u043e\u0440\u043e\u0434, \u0430\u0434\u0440\u0435\u0441, \u043d\u043e\u043c\u0435\u0440 \u0437\u0430\u044f\u0432\u043a\u0438 \u0432 \u043d\u0430\u0448\u0435\u0439 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435, \u0442\u0438\u043f \u0440\u0430\u0431\u043e\u0442 \u0438 \u0434\u0430\u0442\u0430 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f), \u0430 \u0432\u0441\u044f \u044d\u0442\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u043d\u0430\u0445\u043e\u0434\u044f\u0449\u0438\u0439\u0441\u044f \u043d\u0430 Google docs.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-213213","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/213213","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=213213"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/213213\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=213213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=213213"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=213213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}