<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8144106216757341817</id><updated>2024-11-01T12:59:25.615+02:00</updated><category term="blogger"/><category term="compress"/><category term="config"/><category term="debian"/><category term="emacs"/><category term="etch"/><category term="howto"/><category term="lenny"/><category term="linux"/><category term="markdown"/><category term="openssh"/><category term="rar"/><category term="showdown"/><category term="support"/><title type='text'>0slice</title><subtitle type='html'>по*уй... это такое чувство!</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://0slice.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8144106216757341817/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://0slice.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>LMZ</name><uri>http://www.blogger.com/profile/03737373627678512372</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://farm2.static.flickr.com/1208/1058357209_04acf57d36_o.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8144106216757341817.post-465612585218828649</id><published>2008-08-26T16:29:00.002+03:00</published><updated>2008-08-26T16:37:16.092+03:00</updated><title type='text'>Init-script for php-cgi in external FASTCGI Mode (Daemon mode) или Заебали постить код в ворпрессах, суки!</title><content type='html'>&lt;p&gt;Устанавливаем php5-cgi (в деб/бунту, в остальных отстойниках не пробовал :D), далее &lt;a href=&quot;http://lists.alioth.debian.org/pipermail/pkg-php-maint/attachments/20070530/cc3f71e4/attachment.txt&quot;&gt;это файл&lt;/a&gt; в &lt;em&gt;/etc/init.d/php-fastcgi&lt;/em&gt;, &lt;a href=&quot;http://lists.alioth.debian.org/pipermail/pkg-php-maint/attachments/20070530/cc3f71e4/attachment-0001.txt&quot;&gt;этот&lt;/a&gt; в /etc/default/php-fastcgi.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ sudo chmod +x /etc/init.d/php-fastcgi
$ sudo update-rc.d php-fastcgi defaults
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;тестим:
    $ sudo /etc/init.d/php-fastcgi start&lt;/p&gt;

&lt;p&gt;и пиздец идём пить пиво и настраивать нгинкс =))&lt;/p&gt;

&lt;!--[markdown]
Устанавливаем php5-cgi (в деб/бунту, в остальных отстойниках не пробовал :D), далее [это файл][init.php-fastcgi] в */etc/init.d/php-fastcgi*, [этот][default.php-fastcgi] в /etc/default/php-fastcgi.

    $ sudo chmod +x /etc/init.d/php-fastcgi
    $ sudo update-rc.d php-fastcgi defaults

тестим:
    $ sudo /etc/init.d/php-fastcgi start

и пиздец идём пить пиво и настраивать нгинкс =))

  [init.php-fastcgi]: http://lists.alioth.debian.org/pipermail/pkg-php-maint/attachments/20070530/cc3f71e4/attachment.txt
  [default.php-fastcgi]: http://lists.alioth.debian.org/pipermail/pkg-php-maint/attachments/20070530/cc3f71e4/attachment-0001.txt
--&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8144106216757341817/posts/default/465612585218828649'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8144106216757341817/posts/default/465612585218828649'/><link rel='alternate' type='text/html' href='http://0slice.blogspot.com/2008/08/init-script-for-php-cgi-in-external.html' title='Init-script for php-cgi in external FASTCGI Mode (Daemon mode) или Заебали постить код в ворпрессах, суки!'/><author><name>LMZ</name><uri>http://www.blogger.com/profile/03737373627678512372</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://farm2.static.flickr.com/1208/1058357209_04acf57d36_o.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8144106216757341817.post-1101630893674993225</id><published>2008-08-26T14:08:00.004+03:00</published><updated>2008-08-29T20:06:12.673+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="compress"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="rar"/><title type='text'>Compressing a directory with rar on Linux</title><content type='html'>&lt;p&gt;You want to compress dir2 from /dir1/dir2, but still want directory to remain in archive.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;/$ cd dir1
/dir1$ rar a -R output.rar dir2/
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;That&#39;s is, have fun!&lt;/p&gt;

&lt;!--[markdown]
You want to compress dir2 from /dir1/dir2, but still want directory to remain in archive.

    /$ cd dir1
    /dir1$ rar a -R output.rar dir2/

That&#39;s is, have fun!


--&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8144106216757341817/posts/default/1101630893674993225'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8144106216757341817/posts/default/1101630893674993225'/><link rel='alternate' type='text/html' href='http://0slice.blogspot.com/2008/08/compressing-directory-with-rar-on-linux.html' title='Compressing a directory with rar on Linux'/><author><name>LMZ</name><uri>http://www.blogger.com/profile/03737373627678512372</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://farm2.static.flickr.com/1208/1058357209_04acf57d36_o.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8144106216757341817.post-3168114965540423494</id><published>2008-08-26T14:01:00.004+03:00</published><updated>2008-08-29T20:07:29.690+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="config"/><category scheme="http://www.blogger.com/atom/ns#" term="emacs"/><title type='text'>Emacs config file (~/.emacs)</title><content type='html'>&lt;p&gt;My current ~/.emacs file&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;;;; additional load path, for non-standard modules,
;;; comment out this, if you need this
;(setq load-path (cons &quot;~/share/emacs&quot; load-path))

; general
(setq inhibit-startup-message t)

; enable Transient Mark mode
(transient-mark-mode 1); In Transient Mark mode, the region is active only temporarily, and it is highlighted while it is active

; enable Ctrl+C, Ctrl+V, Ctrl+X hotkeys
(cua-mode t)
(transient-mark-mode 1) ;; No region when it is not highlighted
(setq cua-keep-region-after-copy t) ;; Standard Windows behaviour

; stop inserting tab characters and insert spaces instead
(setq-default indent-tabs-mode nil)

; set standard indent to 4
(setq standard-indent 4)

(require &#39;blank-mode)
(global-blank-mode 1)

; automatically indent after a return
(global-set-key &quot;\C-m&quot; &#39;newline-and-indent)

; Make emacs highlight bracket pairs:
(show-paren-mode t)

; Stop emacs from doing jumps when scrolling.
(setq scroll-step 1)

; Preventing the creation of backup files
(setq make-backup-files nil)
&lt;/code&gt;&lt;/pre&gt;

&lt;!--[markdown]
My current ~/.emacs file

    ;;; additional load path, for non-standard modules,
    ;;; comment out this, if you need this
    ;(setq load-path (cons &quot;~/share/emacs&quot; load-path))

    ; general
    (setq inhibit-startup-message t)

    ; enable Transient Mark mode
    (transient-mark-mode 1); In Transient Mark mode, the region is active only temporarily, and it is highlighted while it is active

    ; enable Ctrl+C, Ctrl+V, Ctrl+X hotkeys
    (cua-mode t)
    (transient-mark-mode 1) ;; No region when it is not highlighted
    (setq cua-keep-region-after-copy t) ;; Standard Windows behaviour

    ; stop inserting tab characters and insert spaces instead
    (setq-default indent-tabs-mode nil)

    ; set standard indent to 4
    (setq standard-indent 4)

    (require &#39;blank-mode)
    (global-blank-mode 1)

    ; automatically indent after a return
    (global-set-key &quot;\C-m&quot; &#39;newline-and-indent)

    ; Make emacs highlight bracket pairs:
    (show-paren-mode t)

    ; Stop emacs from doing jumps when scrolling.
    (setq scroll-step 1)

    ; Preventing the creation of backup files
    (setq make-backup-files nil)



--&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8144106216757341817/posts/default/3168114965540423494'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8144106216757341817/posts/default/3168114965540423494'/><link rel='alternate' type='text/html' href='http://0slice.blogspot.com/2008/08/emacs-config-file-emacs.html' title='Emacs config file (~/.emacs)'/><author><name>LMZ</name><uri>http://www.blogger.com/profile/03737373627678512372</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://farm2.static.flickr.com/1208/1058357209_04acf57d36_o.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8144106216757341817.post-1422486935227948411</id><published>2008-08-23T19:56:00.002+03:00</published><updated>2008-08-23T19:57:50.939+03:00</updated><title type='text'>Mootools skeleton class</title><content type='html'>&lt;p&gt;Mootools skeleton class&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;var SomeClass = new Class({
    Implements: [Events, Options],

    version: 0.1, //some version

    options :
    {
        option1: &quot;&quot;,
        option2: 5,
        option3: null,
    },

    // constructor
    initialize: function(obj, options)
    {
        this.obj = obj;
        this.setOptions(options);

    someFunction: function()
    {
        // body goes here
    },
});

SomeClass.implement(new Events, new Options);
&lt;/code&gt;&lt;/pre&gt;

&lt;!--[markdown]
Mootools skeleton class

    var SomeClass = new Class({
        Implements: [Events, Options],

        version: 0.1, //some version

        options :
        {
            option1: &quot;&quot;,
            option2: 5,
            option3: null,
        },

        // constructor
        initialize: function(obj, options)
        {
            this.obj = obj;
            this.setOptions(options);

        someFunction: function()
        {
            // body goes here
        },
    });

    SomeClass.implement(new Events, new Options);

--&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8144106216757341817/posts/default/1422486935227948411'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8144106216757341817/posts/default/1422486935227948411'/><link rel='alternate' type='text/html' href='http://0slice.blogspot.com/2008/08/mootools-skeleton-class.html' title='Mootools skeleton class'/><author><name>LMZ</name><uri>http://www.blogger.com/profile/03737373627678512372</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://farm2.static.flickr.com/1208/1058357209_04acf57d36_o.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8144106216757341817.post-5054984952623321186</id><published>2008-08-21T23:18:00.004+03:00</published><updated>2008-08-25T22:53:20.091+03:00</updated><title type='text'>First 15 minutes in Hardy</title><content type='html'>&lt;p&gt;First things I need to do after fresh install of Hardy (maybe any other *buntu distro)&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;go to aptitude (&lt;code&gt;$ sudo aptitude&lt;/code&gt;) and disable installing recommended packages (Top Menu -&gt; Options-&gt; Preferences-&gt; disable &quot;Install recommended packages automatically&quot; option)&lt;/li&gt;
&lt;/ol&gt;

&lt;!--[markdown]
First things I need to do after fresh install of Hardy (maybe any other *buntu distro)

  1. go to aptitude (`$ sudo aptitude`) and disable installing recommended packages (Top Menu -&gt; Options-&gt; Preferences-&gt; disable &quot;Install recommended packages automatically&quot; option)


--&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8144106216757341817/posts/default/5054984952623321186'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8144106216757341817/posts/default/5054984952623321186'/><link rel='alternate' type='text/html' href='http://0slice.blogspot.com/2008/08/first-15-minutes-in-hardy.html' title='First 15 minutes in Hardy'/><author><name>LMZ</name><uri>http://www.blogger.com/profile/03737373627678512372</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://farm2.static.flickr.com/1208/1058357209_04acf57d36_o.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8144106216757341817.post-3290492099730751665</id><published>2008-08-19T11:35:00.007+03:00</published><updated>2008-08-29T20:08:29.508+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="debian"/><category scheme="http://www.blogger.com/atom/ns#" term="etch"/><category scheme="http://www.blogger.com/atom/ns#" term="howto"/><category scheme="http://www.blogger.com/atom/ns#" term="lenny"/><category scheme="http://www.blogger.com/atom/ns#" term="openssh"/><title type='text'>How to install last OpenSSH (5) in etch or lenny</title><content type='html'>&lt;p&gt;Simple as eat an apple =)&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ sudo apt-get build-dep openssh-server
$ sudo aptitude install fakeroot
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;after installing all these packages. Download sources of &lt;a href=&quot;http://packages.debian.org/source/sid/openssh&quot;&gt;openssh&lt;/a&gt;. at the bottom of the page, something like &lt;em&gt;openssh_5.1p1-2.dsc&lt;/em&gt;, &lt;em&gt;openssh_5.1p1.orig.tar.gz&lt;/em&gt;, &lt;em&gt;openssh_5.1p1-2.diff.gz&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Next... &lt;a href=&quot;http://www.debian.org/doc/manuals/reference/ch-system.en.html#s-sourcebuild&quot;&gt;RTFM&lt;/a&gt; =). And you are done! Have fun!&lt;/p&gt;

&lt;!--[markdown]
Simple as eat an apple =)

    $ sudo apt-get build-dep openssh-server
    $ sudo aptitude install fakeroot

after installing all these packages. Download sources of [openssh]. at the bottom of the page, something like *openssh_5.1p1-2.dsc*, *openssh_5.1p1.orig.tar.gz*, *openssh_5.1p1-2.diff.gz*.

Next... [RTFM] =). And you are done! Have fun!

  [openssh]: http://packages.debian.org/source/sid/openssh
  [RTFM]:    http://www.debian.org/doc/manuals/reference/ch-system.en.html#s-sourcebuild


--&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8144106216757341817/posts/default/3290492099730751665'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8144106216757341817/posts/default/3290492099730751665'/><link rel='alternate' type='text/html' href='http://0slice.blogspot.com/2008/08/how-to-install-last-openssh-5-in-etch.html' title='How to install last OpenSSH (5) in etch or lenny'/><author><name>LMZ</name><uri>http://www.blogger.com/profile/03737373627678512372</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://farm2.static.flickr.com/1208/1058357209_04acf57d36_o.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8144106216757341817.post-1005807046545979658</id><published>2008-08-18T11:26:00.009+03:00</published><updated>2008-08-29T20:08:55.921+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="blogger"/><category scheme="http://www.blogger.com/atom/ns#" term="markdown"/><category scheme="http://www.blogger.com/atom/ns#" term="showdown"/><category scheme="http://www.blogger.com/atom/ns#" term="support"/><title type='text'>Blogger Markdown support user script (via showdown)</title><content type='html'>&lt;p&gt;You don&#39;t need to transform blog post to html (via Markdown link (forgot to delete it :D )). Also when you editting, you pretty markdown, &lt;strong&gt;STILL!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Have fun!&lt;/p&gt;

&lt;!--[markdown]
You don&#39;t need to transform blog post to html (via Markdown link (forgot to delete it :D )). Also when you editting, you pretty markdown, **STILL!**

Have fun!
--&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8144106216757341817/posts/default/1005807046545979658'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8144106216757341817/posts/default/1005807046545979658'/><link rel='alternate' type='text/html' href='http://0slice.blogspot.com/2008/08/blogger-markdown-support-user-script.html' title='Blogger Markdown support user script (via showdown)'/><author><name>LMZ</name><uri>http://www.blogger.com/profile/03737373627678512372</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://farm2.static.flickr.com/1208/1058357209_04acf57d36_o.gif'/></author></entry></feed>