<?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-2756269226941551749</id><updated>2024-08-28T06:12:30.389-07:00</updated><category term="linux"/><category term="net"/><category term="bash"/><category term="mysql"/><category term="php"/><category term="openERP"/><category term="git"/><category term="kvm"/><category term="streaming"/><category term="symfony"/><category term="vim"/><category term="virtualization"/><category term="Здоровье"/><category term="backup"/><category term="perfomance"/><category term="samba"/><category term="security"/><category term="web"/><category term="windows"/><category term="наука"/><category term="WordPress"/><category term="bazaar"/><category term="bookmarklets"/><category term="centos"/><category term="doctrine"/><category term="highlighting"/><category term="java"/><category term="metasploit"/><category term="openVPN"/><category term="openmeetings"/><category term="perl"/><category term="postgres"/><category term="prestashop"/><category term="redmine"/><category term="screen"/><category term="sed"/><category term="sql"/><category term="ssi"/><category term="xslt"/><category term="ДОТУ"/><category term="Интересно"/><category term="КОБ"/><category term="алкоголь"/><title type='text'>Всё о немногом и немного обо всём</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://all-abouts-all.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://all-abouts-all.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>bessangel</name><uri>http://www.blogger.com/profile/05578517812432198008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>115</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2756269226941551749.post-6237618962590990018</id><published>2015-08-25T06:04:00.002-07:00</published><updated>2015-08-25T06:04:57.082-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="vim"/><title type='text'>vim</title><content type='html'>\c is good to know when your working on other people&#39;s stations.&lt;br /&gt;
&lt;pre&gt;/\croot
&lt;/pre&gt;&lt;br /&gt;
:set ic&lt;br /&gt;
:set scs</content><link rel='replies' type='application/atom+xml' href='http://all-abouts-all.blogspot.com/feeds/6237618962590990018/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://all-abouts-all.blogspot.com/2015/08/vim.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/6237618962590990018'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/6237618962590990018'/><link rel='alternate' type='text/html' href='http://all-abouts-all.blogspot.com/2015/08/vim.html' title='vim'/><author><name>bessangel</name><uri>http://www.blogger.com/profile/05578517812432198008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2756269226941551749.post-4947707070926661960</id><published>2015-08-25T06:04:00.001-07:00</published><updated>2015-08-25T06:04:30.516-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="net"/><title type='text'>rsync speed</title><content type='html'>&lt;br /&gt;
-e &quot;ssh Ciphers=arcfour&quot;&lt;br /&gt;
&lt;span class=&quot;comment-copy&quot;&gt;&lt;code&gt;&quot;ssh Compression=no&quot;&lt;/code&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://all-abouts-all.blogspot.com/feeds/4947707070926661960/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://all-abouts-all.blogspot.com/2015/08/rsync-speed.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/4947707070926661960'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/4947707070926661960'/><link rel='alternate' type='text/html' href='http://all-abouts-all.blogspot.com/2015/08/rsync-speed.html' title='rsync speed'/><author><name>bessangel</name><uri>http://www.blogger.com/profile/05578517812432198008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2756269226941551749.post-1697191363053831847</id><published>2015-08-25T06:04:00.000-07:00</published><updated>2015-08-25T06:04:07.725-07:00</updated><title type='text'>Подключение к консоли через Serial port в Proxmox/KVM</title><content type='html'>Кратко, чтобы не забылось опишу настройку подключения к serial port для линукс гостя в Proxmox.&lt;br /&gt;
Подключение к сералпорту позволяет работать зайти в консоль виртуалки подобно как в OpenVZ: &lt;i&gt;vzctl enter &lt;/i&gt;&lt;i&gt;&amp;lt;CTID&amp;gt;&lt;/i&gt;&lt;br /&gt;
Включаю сериал консоль для виртуаки ид 101&lt;br /&gt;
&lt;br /&gt;
В хост системе&lt;br /&gt;
В файл&amp;nbsp; /etc/pve/qemu-server/101.conf&amp;nbsp; добавляю строку&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt; &lt;span style=&quot;background-color: #cccccc;&quot;&gt;args: -vnc 127.0.0.1:101,5959  &lt;b&gt;-serial unix:/var/run/qemu-server/101.serial,server,nowait&lt;/b&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
В виртуалке&lt;br /&gt;
&lt;br /&gt;
В файле /etc/default/grub изменить &lt;br /&gt;
&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;i&gt;GRUB_CMDLINE_LINUX_DEFAULT=&quot;console=ttyS0,115200n8&quot;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Для дебиана в /etc/inittab добавить строку&lt;br /&gt;
&lt;span style=&quot;background-color: #cccccc;&quot;&gt;6:2345:respawn:/sbin/getty -L ttyS0 115200 vt102&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Для убунту создать файл /etc/init/ttyS0.conf&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;start on stopped rc or RUNLEVEL=[12345]&lt;br /&gt;
stop on runlevel [!12345]&lt;br /&gt;
respawn&lt;br /&gt;
#exec /sbin/getty -l /usr/local/bin/autologin -n -L ttyS0 115200 vt102&lt;br /&gt;
exec /sbin/getty -L ttyS0 115200 vt102 &lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Далее для удобства подключения к консоли создаём файл &lt;b&gt;serial-connect-vd101.sh &lt;/b&gt;с содержанием&lt;br /&gt;
&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;i&gt;#!/bin/sh&lt;br /&gt;
&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;i&gt;socat unix-connect:/var/run/qemu-server/101.serial PTY,link=/tmp/pty-101 &amp;amp;&lt;br /&gt;
screen /tmp/pty-101&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
и сделам файл исполняемым&lt;i&gt;&amp;nbsp;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;chmod +x serial-connect-vd101.sh&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Готово.&lt;br /&gt;
&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://all-abouts-all.blogspot.com/feeds/1697191363053831847/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://all-abouts-all.blogspot.com/2015/08/serial-port-proxmoxkvm.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/1697191363053831847'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/1697191363053831847'/><link rel='alternate' type='text/html' href='http://all-abouts-all.blogspot.com/2015/08/serial-port-proxmoxkvm.html' title='Подключение к консоли через Serial port в Proxmox/KVM'/><author><name>bessangel</name><uri>http://www.blogger.com/profile/05578517812432198008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2756269226941551749.post-2696691379714071958</id><published>2015-08-25T06:03:00.000-07:00</published><updated>2015-08-25T06:03:37.360-07:00</updated><title type='text'>SoapUI - использование Groovy Script в TestCase и для установки свойств проекта</title><content type='html'>&lt;pre class=&quot;prettyprint&quot;&gt;import groovy.json.JsonSlurper;
  
def res = new JsonSlurper().parseText( context.expand( &#39;${&lt;b&gt;post-topic&lt;/b&gt;#response}&#39; ));
log.info &quot;topic id:&quot; + res.id;
testRunner.testCase.testSuite.project.setPropertyValue(&quot;topicId&quot;, &quot;${res.id}&quot; ) ;&lt;/pre&gt;&lt;br /&gt;
&lt;b&gt;post-topic&lt;/b&gt; - название шага в TestCase</content><link rel='replies' type='application/atom+xml' href='http://all-abouts-all.blogspot.com/feeds/2696691379714071958/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://all-abouts-all.blogspot.com/2015/08/soapui-groovy-script-testcase.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/2696691379714071958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/2696691379714071958'/><link rel='alternate' type='text/html' href='http://all-abouts-all.blogspot.com/2015/08/soapui-groovy-script-testcase.html' title='SoapUI - использование Groovy Script в TestCase и для установки свойств проекта'/><author><name>bessangel</name><uri>http://www.blogger.com/profile/05578517812432198008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2756269226941551749.post-721711479749237662</id><published>2014-03-10T14:22:00.000-07:00</published><updated>2014-03-10T14:22:20.734-07:00</updated><title type='text'>Кол-во активных подключений к серверу с определением региона (GeoIP)</title><content type='html'>&lt;pre class=&quot;prettyprint&quot;&gt;#!/usr/bin/python
# &#39;apt-get install python-geoip&#39; if needed
import GeoIP,os

stream = os.popen(&quot;netstat -tna | awk -F&#39; +|:&#39; &#39;/:80/ {print $6}&#39; | sort | uniq -c | sort -n &quot;)
gi = GeoIP.new(GeoIP.GEOIP_MEMORY_CACHE)
s=0
for line in stream.readlines():
    line = line.strip()
    l =line.split() # strip the last from the line
#    print l
    print l[0], &quot;\t&quot;,l[1],&quot;\t&quot;, gi.country_code_by_addr(l[1])
    s+=int(l[0])

print &#39;Total:&#39;,s
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://all-abouts-all.blogspot.com/feeds/721711479749237662/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://all-abouts-all.blogspot.com/2014/03/geoip.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/721711479749237662'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/721711479749237662'/><link rel='alternate' type='text/html' href='http://all-abouts-all.blogspot.com/2014/03/geoip.html' title='Кол-во активных подключений к серверу с определением региона (GeoIP)'/><author><name>bessangel</name><uri>http://www.blogger.com/profile/05578517812432198008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2756269226941551749.post-5015542048681560186</id><published>2013-12-06T11:30:00.001-08:00</published><updated>2013-12-06T11:30:51.945-08:00</updated><title type='text'>Печать буклета на принтер без двухсторонней печати</title><content type='html'>psnup -c -4 original.ps | psbook | psnup -l -pa4 -b27 -m10 -d -2 &gt; out.ps</content><link rel='replies' type='application/atom+xml' href='http://all-abouts-all.blogspot.com/feeds/5015542048681560186/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://all-abouts-all.blogspot.com/2013/12/blog-post.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/5015542048681560186'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/5015542048681560186'/><link rel='alternate' type='text/html' href='http://all-abouts-all.blogspot.com/2013/12/blog-post.html' title='Печать буклета на принтер без двухсторонней печати'/><author><name>bessangel</name><uri>http://www.blogger.com/profile/05578517812432198008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2756269226941551749.post-5114252452002363991</id><published>2012-11-05T11:00:00.000-08:00</published><updated>2012-11-05T11:00:31.869-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="virtualization"/><title type='text'>vzlist</title><content type='html'>vzlist -o laverage,hostname,ctid&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
vztop.sh&lt;br /&gt;
&lt;br /&gt;
#! /bin/bash&lt;br /&gt;# Usage: ovzps &amp;lt;CTID&amp;gt; [ps flags ...]&lt;br /&gt;&lt;br /&gt;ctid=${1:-0}&lt;br /&gt;shift&lt;br /&gt;&lt;br /&gt;ps $* -p $(grep -l &quot;^envID:[[:space:]]*$ctid\$&quot; /proc/[0-9]*/status | &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sed -e &#39;s=/proc/\([0-9]*\)/.*=\1=&#39;)</content><link rel='replies' type='application/atom+xml' href='http://all-abouts-all.blogspot.com/feeds/5114252452002363991/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://all-abouts-all.blogspot.com/2012/11/vzlist.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/5114252452002363991'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/5114252452002363991'/><link rel='alternate' type='text/html' href='http://all-abouts-all.blogspot.com/2012/11/vzlist.html' title='vzlist'/><author><name>bessangel</name><uri>http://www.blogger.com/profile/05578517812432198008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2756269226941551749.post-8786637541868124778</id><published>2012-10-21T14:40:00.004-07:00</published><updated>2012-10-21T14:42:06.221-07:00</updated><title type='text'>Error SSH: Read from socket failed: Connection reset by peer</title><content type='html'>&amp;nbsp;Проблема в новом клиенте SSH (OpenSSH_5.8p1 Debian-7ubuntu1, OpenSSL 1.0.0e 6 Sep 2011)&lt;br /&gt;
при коннекте получаю:&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Read from socket failed: Connection reset by peer&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Ошибка чиниться добавлением параметра при подключении&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;ssh root@host &lt;b&gt;-c aes256-ctr&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
или в /etc/ssh/ssh_config&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Host *&lt;br /&gt;&amp;nbsp;&amp;nbsp; Ciphers 3des-cbc&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
или же&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp; Ciphers aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Источник: &lt;a href=&quot;https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/708493&quot;&gt;https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/708493&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://all-abouts-all.blogspot.com/feeds/8786637541868124778/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://all-abouts-all.blogspot.com/2012/10/error-ssh-read-from-socket-failed.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/8786637541868124778'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/8786637541868124778'/><link rel='alternate' type='text/html' href='http://all-abouts-all.blogspot.com/2012/10/error-ssh-read-from-socket-failed.html' title='Error SSH: Read from socket failed: Connection reset by peer'/><author><name>bessangel</name><uri>http://www.blogger.com/profile/05578517812432198008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2756269226941551749.post-435910327957714784</id><published>2012-05-11T09:38:00.001-07:00</published><updated>2012-05-11T09:38:54.474-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><title type='text'>mysqlcheck</title><content type='html'>http://www.informit.com/articles/article.aspx?p=174365&amp;seqNum=5</content><link rel='replies' type='application/atom+xml' href='http://all-abouts-all.blogspot.com/feeds/435910327957714784/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://all-abouts-all.blogspot.com/2012/05/mysqlcheck.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/435910327957714784'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/435910327957714784'/><link rel='alternate' type='text/html' href='http://all-abouts-all.blogspot.com/2012/05/mysqlcheck.html' title='mysqlcheck'/><author><name>bessangel</name><uri>http://www.blogger.com/profile/05578517812432198008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2756269226941551749.post-7648019075535130418</id><published>2012-04-09T07:30:00.005-07:00</published><updated>2012-04-09T10:07:00.293-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="security"/><title type='text'>php disable_functions</title><content type='html'>&lt;pre class=&quot;prettyprint&quot; style=&quot;overflow: scroll;&quot;&gt;
disable_functions = &quot;apache_child_terminate, apache_setenv, define_syslog_variables, escapeshellarg, escapeshellcmd, eval, exec, fp, fput, ftp_connect, ftp_exec, ftp_get, ftp_login, ftp_nb_fput, ftp_put, ftp_raw, ftp_rawlist, highlight_file, ini_alter, ini_get_all, ini_restore, inject_code, openlog, passthru, php_uname, phpAds_remoteInfo, phpAds_XmlRpc, phpAds_xmlrpcDecode, phpAds_xmlrpcEncode, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, posix_setuid, posix_uname, proc_close, proc_get_status, proc_nice, proc_open, proc_terminate, shell_exec, syslog, system, xmlrpc_entity_decode,mail&quot;&lt;br /&gt;
&lt;/pre&gt;
or&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;
disable_functions= &quot;exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source &quot;
&lt;/pre&gt;

for VirtualMin
&lt;pre class=&quot;prettyprint&quot;&gt;
#!/bin/bash
cd /home

for i in `ls`; do
   dir=/home/$i/etc/php5
   if [ -d $dir ]; then

        cd  $dir
        lsattr php.ini
        chattr -i php.ini
        sed -i.bak -e &quot;s@\W*open_basedir\s*=.*@open_basedir = /home/$i@&quot; \
        -e &#39;s@\W*disable_functions\s*=.*@disable_functions = &quot;apache_child_terminate, apache_setenv, define_syslog_variables, escapeshellarg, escapeshellcmd, eval, exec, fp, fput, ftp_connect, ftp_exec, ftp_get, ftp_login, ftp_nb_fput, ftp_put, ftp_raw, ftp_rawlist, highlight_file, ini_alter, ini_get_all, ini_restore, inject_code, openlog, passthru, php_uname, phpAds_remoteInfo, phpAds_XmlRpc, phpAds_xmlrpcDecode, phpAds_xmlrpcEncode, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, posix_setuid, posix_uname, proc_close, proc_get_status, proc_nice, proc_open, proc_terminate, shell_exec, syslog, system, xmlrpc_entity_decode,mail&quot;@&#39; php.ini
        chattr +i php.ini
   else
        echo $i empty           
   fi;
done
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://all-abouts-all.blogspot.com/feeds/7648019075535130418/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://all-abouts-all.blogspot.com/2012/04/php-disablefunctions.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/7648019075535130418'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/7648019075535130418'/><link rel='alternate' type='text/html' href='http://all-abouts-all.blogspot.com/2012/04/php-disablefunctions.html' title='php disable_functions'/><author><name>bessangel</name><uri>http://www.blogger.com/profile/05578517812432198008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2756269226941551749.post-7085816501531262969</id><published>2012-03-31T07:25:00.000-07:00</published><updated>2012-03-31T07:25:37.866-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="openmeetings"/><title type='text'>openmeetings over proxy</title><content type='html'>Relevant section of openmeetings virtual host:&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;lt;VirtualHost *:80&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ServerAdmin developer@xxxxxxxxxxxx&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ServerName openmeetings.mydomain.com&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProxyPass / http://openmeetings.mydomain.com:5080/&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProxyPassReverse / http://openmeetings.mydomain.com:5080/&lt;br /&gt;&amp;nbsp;...&lt;br /&gt;&amp;nbsp;&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;Relevant section of openmeetings-rtmpt virtual host:&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;lt;VirtualHost *:80&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ServerAdmin developer@xxxxxxxxxxxx&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ServerName rtmpt.mydomain.com&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProxyPass /openmeetings http://openmeetings.mydomain.com:5080/openmeetings&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProxyPassReverse /openmeetings http://openmeetings.mydomain.com:5080/openmeetings&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProxyPass / http://openmeetings.mydomain.com:8088/&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProxyPassReverse / http://openmeetings.mydomain.com:8088/&lt;br /&gt;&amp;nbsp;...&lt;br /&gt;&amp;nbsp;&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;OpenMeetings config:&lt;br /&gt;&lt;br /&gt;&amp;nbsp;red5/webapps/openmeetings/config.xml:&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;lt;rtmphostlocal&amp;gt;rtmpt.mydomain.com&amp;lt;/rtmphostlocal&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;lt;rtmpTunnelport&amp;gt;80&amp;lt;/rtmpTunnelport&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;lt;red5httpport&amp;gt;80&amp;lt;/red5httpport&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;--</content><link rel='replies' type='application/atom+xml' href='http://all-abouts-all.blogspot.com/feeds/7085816501531262969/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://all-abouts-all.blogspot.com/2012/03/openmeetings-over-proxy.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/7085816501531262969'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/7085816501531262969'/><link rel='alternate' type='text/html' href='http://all-abouts-all.blogspot.com/2012/03/openmeetings-over-proxy.html' title='openmeetings over proxy'/><author><name>bessangel</name><uri>http://www.blogger.com/profile/05578517812432198008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2756269226941551749.post-6881541953812830748</id><published>2012-02-27T15:29:00.000-08:00</published><updated>2012-02-27T15:29:40.305-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="perfomance"/><title type='text'>программы и скрипты для мониторинга здоровья системы</title><content type='html'>top&lt;br /&gt;
htop&lt;br /&gt;
atop&lt;br /&gt;
iotop&lt;br /&gt;
sysstat: sar iostat&lt;br /&gt;
vmstat&lt;br /&gt;
ps .....&lt;br /&gt;
netstat .....&lt;br /&gt;
lsof&lt;br /&gt;
fuser&lt;br /&gt;
smem&lt;br /&gt;
pmap&lt;br /&gt;
ps -e -O rss,user | awk &#39;/php[^[]/{sum+=$2}END{print sum}&#39;</content><link rel='replies' type='application/atom+xml' href='http://all-abouts-all.blogspot.com/feeds/6881541953812830748/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://all-abouts-all.blogspot.com/2012/02/blog-post.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/6881541953812830748'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/6881541953812830748'/><link rel='alternate' type='text/html' href='http://all-abouts-all.blogspot.com/2012/02/blog-post.html' title='программы и скрипты для мониторинга здоровья системы'/><author><name>bessangel</name><uri>http://www.blogger.com/profile/05578517812432198008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2756269226941551749.post-2236395320175795336</id><published>2012-02-27T15:17:00.004-08:00</published><updated>2013-05-10T02:33:09.487-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="prestashop"/><category scheme="http://www.blogger.com/atom/ns#" term="sql"/><title type='text'>Prestashop multishop</title><content type='html'>1) make soft link of image folder from &lt;b&gt;main shop&lt;/b&gt; to &lt;b&gt;new shop&lt;/b&gt; &lt;br /&gt;
&lt;pre class=&quot;prettyprint sql&quot;&gt;ln -fs main_shop/img new_shop/img
&lt;/pre&gt;2)Rename &lt;b&gt;new_shop_db&lt;/b&gt; and &lt;b&gt;main_shop_db&lt;/b&gt; to your names in sql procedure and run sql script &lt;br /&gt;
&lt;pre class=&quot;prettyprint sql&quot;&gt;DELIMITER $$
DROP PROCEDURE if exists make_linked_tables $$

CREATE PROCEDURE make_linked_tables() 
BEGIN
DECLARE done INT DEFAULT FALSE;
DECLARE str VARCHAR(250);
DECLARE cur CURSOR FOR 
 SELECT table_name FROM information_schema.tables WHERE 
table_schema = &#39;new_shop_db&#39; AND (table_name LIKE &#39;ps_product%&#39;
OR  table_name LIKE &#39;ps_category%&#39;) 
UNION
SELECT &#39;ps_image&#39;
UNION
SELECT &#39;ps_image_lang&#39;
;
DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = TRUE;
OPEN cur;
REPEAT
 FETCH cur INTO str;
 SET @s = CONCAT(&quot;RENAME TABLE &quot;, str,&quot; TO &quot;);
 SET @s = CONCAT(@s,str,&quot;_orig&quot;);
 PREPARE sth FROM @s;
 EXECUTE sth;
 DEALLOCATE PREPARE sth;

 SET @s = CONCAT(&quot;CREATE VIEW &quot;,str,&quot; as SELECT * FROM main_shop_db.&quot;,str);
 PREPARE sth2 FROM @s;
 EXECUTE sth2;
 DEALLOCATE PREPARE sth2;

UNTIL done END REPEAT;
CLOSE cur;
END$$
DELIMITER ;
&lt;/pre&gt;3)Run procedure &lt;br /&gt;
&lt;pre class=&quot;prettyprint sql&quot;&gt;CALL make_linked_tables();
DROP PROCEDURE if exists make_linked_tables;&amp;nbsp;
&lt;/pre&gt;Manually customize categories list of new shop:&lt;br /&gt;
&lt;pre class=&quot;prettyprint sql&quot;&gt;drop table if exists ps_category;
create OR replace view ps_category AS
SELECT * FROM MAIN_SHOP_DB.`ps_category` WHERE 
id_category in ( 1,17,28,35) OR id_parent in (17,28,35);

drop table if exists ps_category_group;
create OR replace view ps_category_group AS
SELECT * FROM MAIN_SHOP_DB.`ps_category_group` WHERE 
id_category in ( SELECT id_category FROM `ps_category` ) ;

drop table if exists ps_category_lang;
create OR replace view ps_category_lang AS
SELECT * FROM MAIN_SHOP_DB.`ps_category_lang` WHERE 
id_category in ( SELECT id_category FROM `ps_category`);

drop table if exists ps_category_product;
create OR replace view ps_category_product AS
SELECT * FROM MAIN_SHOP_DB.`ps_category_product` WHERE 
id_category in ( SELECT id_category FROM `ps_category`) ;

There are&amp;nbsp; id_category = 1 - main category(required), 17(subcategory optional)&amp;nbsp; .... 
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://all-abouts-all.blogspot.com/feeds/2236395320175795336/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://all-abouts-all.blogspot.com/2012/02/prestashop-multishop.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/2236395320175795336'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/2236395320175795336'/><link rel='alternate' type='text/html' href='http://all-abouts-all.blogspot.com/2012/02/prestashop-multishop.html' title='Prestashop multishop'/><author><name>bessangel</name><uri>http://www.blogger.com/profile/05578517812432198008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2756269226941551749.post-9218229019021867428</id><published>2012-01-25T13:09:00.001-08:00</published><updated>2012-01-25T14:06:07.422-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>custom php.ini для fastcgi</title><content type='html'>php5.fcgi&amp;nbsp; :&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;
#!/bin/bash&lt;br /&gt;
PHPRC=$PWD/../etc/php5&lt;br /&gt;
#PHPINIDir=$PWD/../etc/php5&lt;br /&gt;
#PHP_INI_SCAN_DIR=$PWD/../etc/php5/conf.d&lt;br /&gt;
#export PHPINIDir&lt;br /&gt;
#export PHP_INI_SCAN_DIR&lt;br /&gt;
&lt;br /&gt;
export PHPINIDIR=$PWD/../etc/php5&lt;br /&gt;
export PHP_INI_PATH=$PWD/../etc/php5&lt;br /&gt;
&lt;br /&gt;
export PHPRC&lt;br /&gt;
umask 022 &lt;br /&gt;
export PHP_FCGI_CHILDREN&lt;br /&gt;
SCRIPT_FILENAME=$PATH_TRANSLATED&lt;br /&gt;
export SCRIPT_FILENAME&lt;br /&gt;
exec /usr/bin/php5-cgi
&lt;/pre&gt;

или же в php.ini раскоментировать строчку
&lt;pre&gt;
; Name for user-defined php.ini (.htaccess) files. Default is &quot;.user.ini&quot;
user_ini.filename = &quot;.user.ini&quot;
&lt;/pre&gt;
и в корневой вебдиректории можно создать файл&lt;i&gt; .user.ini&lt;/i&gt; и писать в него конфигурацию php</content><link rel='replies' type='application/atom+xml' href='http://all-abouts-all.blogspot.com/feeds/9218229019021867428/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://all-abouts-all.blogspot.com/2012/01/custom-phpini-fastcgi.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/9218229019021867428'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/9218229019021867428'/><link rel='alternate' type='text/html' href='http://all-abouts-all.blogspot.com/2012/01/custom-phpini-fastcgi.html' title='custom php.ini для fastcgi'/><author><name>bessangel</name><uri>http://www.blogger.com/profile/05578517812432198008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2756269226941551749.post-3337104453802648768</id><published>2012-01-25T07:16:00.001-08:00</published><updated>2012-01-25T07:16:40.844-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bash"/><title type='text'>bash Test</title><content type='html'>http://www.ibm.com/developerworks/library/l-bash-test/index.html</content><link rel='replies' type='application/atom+xml' href='http://all-abouts-all.blogspot.com/feeds/3337104453802648768/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://all-abouts-all.blogspot.com/2012/01/bash-test.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/3337104453802648768'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/3337104453802648768'/><link rel='alternate' type='text/html' href='http://all-abouts-all.blogspot.com/2012/01/bash-test.html' title='bash Test'/><author><name>bessangel</name><uri>http://www.blogger.com/profile/05578517812432198008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2756269226941551749.post-7272822248935606018</id><published>2012-01-25T06:34:00.000-08:00</published><updated>2012-01-25T06:34:22.964-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>установка Gimp 2.7 на Ubuntu</title><content type='html'>Ура! в GIMP 2.7 появилась наконец-то опция всё в одном окне.&lt;br /&gt;
Устанавливаю по инструкции&lt;br /&gt;
&lt;a href=&quot;http://www.gimpusers.com/tutorials/compiling-gimp-for-ubuntu&quot; target=&quot;_blank&quot;&gt;http://www.gimpusers.com/tutorials/compiling-gimp-for-ubuntu&lt;/a&gt; &lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://all-abouts-all.blogspot.com/feeds/7272822248935606018/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://all-abouts-all.blogspot.com/2012/01/gimp-27-ubuntu.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/7272822248935606018'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/7272822248935606018'/><link rel='alternate' type='text/html' href='http://all-abouts-all.blogspot.com/2012/01/gimp-27-ubuntu.html' title='установка Gimp 2.7 на Ubuntu'/><author><name>bessangel</name><uri>http://www.blogger.com/profile/05578517812432198008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2756269226941551749.post-317507256911703156</id><published>2012-01-25T05:41:00.000-08:00</published><updated>2012-01-25T05:41:27.739-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bash"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>манипуляция строками в bash</title><content type='html'>&lt;pre class=&quot;prettyprint&quot;&gt;a=&quot;aaa/bbbb.t&quot;
# удалить с начала строки макс. вхождений
echo &quot;${a##*/}&quot;
# удалить с начала строки мин. вхождений
echo &quot;${a#*/}&quot;
# удалить с конца строки мин. вхождений
echo &quot;${a%/}&quot;
# удалить с конца строки макс. вхождений
echo &quot;${a%%/}&quot;
# замена первой найденой подстроки
echo &quot;${a/a/_}&quot;
# замена всех найденых подстрок
echo &quot;${a//a/_}&quot;
&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
источник: &lt;a href=&quot;http://tldp.org/LDP/abs/html/string-manipulation.html&quot; target=&quot;_blank&quot;&gt;http://tldp.org/LDP/abs/html/string-manipulation.html&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://all-abouts-all.blogspot.com/feeds/317507256911703156/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://all-abouts-all.blogspot.com/2012/01/bash.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/317507256911703156'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/317507256911703156'/><link rel='alternate' type='text/html' href='http://all-abouts-all.blogspot.com/2012/01/bash.html' title='манипуляция строками в bash'/><author><name>bessangel</name><uri>http://www.blogger.com/profile/05578517812432198008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2756269226941551749.post-6228969794736268514</id><published>2012-01-25T05:23:00.000-08:00</published><updated>2012-01-25T05:23:42.489-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="git"/><title type='text'>Git INFO Common Commands</title><content type='html'>&lt;h3 class=&quot;post-title entry-title&quot;&gt;
&lt;/h3&gt;
&lt;div class=&quot;post-header&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;post-body entry-content&quot; id=&quot;post-body-368626326370188668&quot;&gt;
&lt;b&gt;Configure Git client options: &lt;/b&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;# show config options&lt;/span&gt;&lt;br /&gt;
git config --list  &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;# show all &lt;/span&gt;&lt;br /&gt;
git config --global --list  &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;# show only global &lt;/span&gt;&lt;br /&gt;
git config --local --list  &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;# show only local &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;# --global option impacts options at a global level&lt;br /&gt;
# --local option impacts options at a local level (.git/config)&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;# set username/email associated with client&lt;/span&gt;&lt;br /&gt;
git config --global user.email &quot;joe@example.com&quot;&lt;br /&gt;
git config --global user.name &quot;Joe Jaz&quot; &lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;# add color syntax highlighting&lt;/span&gt;&lt;br /&gt;
git config --global color.status auto &lt;br /&gt;
git config --global color.branch auto &lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;# set default pager and editor &lt;/span&gt;&lt;br /&gt;
git config --global core.editor vim  &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;# or set the GIT_EDITOR environment variable&lt;/span&gt;&lt;br /&gt;
git config --global core.pager less &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;# or set the GIT_PAGER environment variable &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt; # display an option value&lt;/span&gt;&lt;br /&gt;
git config &lt;i&gt;group.value&lt;/i&gt;&lt;br /&gt;
git config user.name&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Start a new repository and import:&lt;/b&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;# In the root folder to add to version control:&lt;/span&gt;&lt;br /&gt;
git init&lt;br /&gt;
git init --bare &amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;# creates a new repository (with no working copy)&lt;/span&gt;&lt;br /&gt;
git add .  &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;# add everything in directory to repo&lt;/span&gt;&lt;br /&gt;
git commit -m &#39;&lt;i&gt;initial commit&lt;/i&gt;&#39;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Making commits:&lt;/b&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;# commit specific files&lt;/span&gt;&lt;br /&gt;
git commit file1 file2 -m &#39;&lt;i&gt;comment&lt;/i&gt;&#39;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;# commit all &#39;added&#39; files&lt;/span&gt;&lt;br /&gt;
git commit -a -m &#39;&lt;i&gt;comment&lt;/i&gt;&#39;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;# change a commit message&lt;/span&gt;&lt;br /&gt;
git commit --amend -m &#39;&lt;i&gt;New Message&lt;/i&gt;&#39;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Create new repository by cloning existing one:&lt;/b&gt;&lt;br /&gt;
git clone --bare . &lt;i&gt;path_or_url_to_git_dir.git&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Setting the remote repository (to push and pull from):&lt;/b&gt;&lt;br /&gt;
git remote add&amp;nbsp;&lt;i&gt;short_name&lt;/i&gt; &lt;i&gt;path_or_url_to_git_dir.git&lt;/i&gt;&lt;br /&gt;
git remote add origin git://github.com/imagescape/iscape-authlog.git&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Show remote branches:&lt;/b&gt; &lt;br /&gt;
git ls-remote orig&lt;br /&gt;
git remote show orig &lt;br /&gt;
&lt;br /&gt;
&lt;a class=&quot;cssButton&quot; href=&quot;javascript:void(0)&quot; id=&quot;publishButton&quot; onclick=&quot;if (this.className.indexOf(&amp;quot;ubtn-disabled&amp;quot;) == -1) {var e = document[&#39;postingForm&#39;].publish;(e.length) ? e[0].click() : e.click(); if (window.event) window.event.cancelBubble = true; return false;}&quot; target=&quot;&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;cssButtonOuter&quot;&gt;
&lt;div class=&quot;cssButtonMiddle&quot;&gt;
&lt;div class=&quot;cssButtonInner&quot;&gt;
&lt;a class=&quot;cssButton&quot; href=&quot;javascript:void(0)&quot; id=&quot;publishButton&quot; onclick=&quot;if (this.className.indexOf(&amp;quot;ubtn-disabled&amp;quot;) == -1) {var e = document[&#39;postingForm&#39;].publish;(e.length) ? e[0].click() : e.click(); if (window.event) window.event.cancelBubble = true; return false;}&quot; target=&quot;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Show remote repositories available:&lt;/b&gt;&lt;br /&gt;
git remote&lt;br /&gt;
git remote -v &lt;span style=&quot;color: blue;&quot;&gt;# show the url &lt;/span&gt;&lt;br /&gt;
git remote show origin&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;# show detail information about origin &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Remove a remote repository:&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
git remove &lt;i&gt;repo_name&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Rename a remote repository:&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
git rename &lt;i&gt;old_repo_name new_repo_name&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Push and Pull from remote repository:&lt;/b&gt;&lt;br /&gt;
git push origin  # push recent commits to remote repository called &quot;origin&quot;&lt;br /&gt;
git pull origin # pull updates from origin&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Revert changes in working copy:&lt;/b&gt;&lt;br /&gt;
git clean -n &lt;br /&gt;
git clean --dry-run&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Show file differences:&lt;/b&gt; &lt;br /&gt;
git diff&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;# show differences between working copy and any files staged for commit&lt;/span&gt;&lt;br /&gt;
git diff --staged&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;# compares staged changes with last commit&lt;/span&gt;&lt;br /&gt;
git diff --cached&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;# same as above for git older than 1.6.1&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Show File/s History:&lt;/b&gt;&lt;br /&gt;
git log filename  &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;# Show single file versions &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;# Show number of lines changed in file/s&lt;/span&gt;&lt;br /&gt;
git log -stat  &lt;i&gt;filename&lt;/i&gt;  &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;# single file&lt;/span&gt;&lt;br /&gt;
git log -stat  &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;# multiple files&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;# show log summaries on one line&lt;/span&gt;&lt;br /&gt;
git log --pretty=oneline  &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;# Pre-defined format&lt;/span&gt;&lt;br /&gt;
git log --pretty=format:&quot;%h - %cD (%an) %s&quot;  &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;# custom format (see below)&lt;/span&gt;&lt;br /&gt;
git log --pretty=format:&quot;%h %s&quot; --graph&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; Pre-Defined Pretty formats:&lt;/b&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; oneline&lt;br /&gt;
&amp;nbsp; &amp;nbsp; short&lt;br /&gt;
&amp;nbsp; &amp;nbsp; medium&lt;br /&gt;
&amp;nbsp; &amp;nbsp; full&lt;br /&gt;
&amp;nbsp; &amp;nbsp; fuller&lt;br /&gt;
&amp;nbsp; &amp;nbsp; email &lt;br /&gt;
&amp;nbsp; &amp;nbsp; raw&lt;br /&gt;
&amp;nbsp; &amp;nbsp; format:string # where string is&lt;br /&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;b&gt;Format Strings&lt;/b&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #38761d;&quot;&gt;%H: commit hash&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #274e13;&quot;&gt;%h: abbreviated commit hash&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %T: tree hash&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %t: abbreviated tree hash&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %P: parent hashes&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %p: abbreviated parent hashes&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %an: author name&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %aN: author name (respecting .mailmap, see &lt;a href=&quot;http://www.kernel.org/pub/software/scm/git/docs/git-shortlog.html&quot;&gt;git-shortlog(1)&lt;/a&gt; or &lt;a href=&quot;http://www.kernel.org/pub/software/scm/git/docs/git-blame.html&quot;&gt;git-blame(1)&lt;/a&gt;)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %ae: author email&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %aE: author email (respecting .mailmap, see &lt;a href=&quot;http://www.kernel.org/pub/software/scm/git/docs/git-shortlog.html&quot;&gt;git-shortlog(1)&lt;/a&gt; or &lt;a href=&quot;http://www.kernel.org/pub/software/scm/git/docs/git-blame.html&quot;&gt;git-blame(1)&lt;/a&gt;)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %ad: author date (format respects --date= option)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %aD: author date, RFC2822 style&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %ar: author date, relative&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %at: author date, UNIX timestamp&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %ai: author date, ISO 8601 format&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #38761d;&quot;&gt;%cn: committer name&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %cN: committer name (respecting .mailmap, see &lt;a href=&quot;http://www.kernel.org/pub/software/scm/git/docs/git-shortlog.html&quot;&gt;git-shortlog(1)&lt;/a&gt; or &lt;a href=&quot;http://www.kernel.org/pub/software/scm/git/docs/git-blame.html&quot;&gt;git-blame(1)&lt;/a&gt;)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #38761d;&quot;&gt;%ce: committer email&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %cE: committer email (respecting .mailmap, see &lt;a href=&quot;http://www.kernel.org/pub/software/scm/git/docs/git-shortlog.html&quot;&gt;git-shortlog(1)&lt;/a&gt; or &lt;a href=&quot;http://www.kernel.org/pub/software/scm/git/docs/git-blame.html&quot;&gt;git-blame(1)&lt;/a&gt;)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #38761d;&quot;&gt;%cd: committer date&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %cD: committer date, RFC2822 style&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %cr: committer date, relative&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %ct: committer date, UNIX timestamp&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %ci: committer date, ISO 8601 format&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %d: ref names, like the --decorate option of &lt;a href=&quot;http://www.kernel.org/pub/software/scm/git/docs/git-log.html&quot;&gt;git-log(1)&lt;/a&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %e: encoding&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #38761d;&quot;&gt; %s: subject&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %f: sanitized subject line, suitable for a filename&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %b: body&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %B: raw body (unwrapped subject and body)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %N: commit notes&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %gD: reflog selector, e.g., refs/stash@{1}&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %gd: shortened reflog selector, e.g., stash@{1}&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %gs: reflog subject&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %Cred: switch color to red&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %Cgreen: switch color to green&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %Cblue: switch color to blue&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %Creset: reset color&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %C(…): color specification, as described in color.branch.* config option&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %m: left, right or boundary mark&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %n: newline&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %%: a raw %&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %x00: print a byte from a hex code&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %w([[,[,]]]): switch line wrapping, like the -w option of &lt;a href=&quot;http://www.kernel.org/pub/software/scm/git/docs/git-shortlog.html&quot;&gt;git-shortlog(1)&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Show git branches available:&lt;/b&gt;&lt;br /&gt;
git branch&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Show all branches including remote branches:&lt;/b&gt;&lt;br /&gt;
git branch -a&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Create new branch:&lt;/b&gt;&lt;br /&gt;
git branch new_branch&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Change branches:&lt;/b&gt;&lt;br /&gt;
git checkout new_branch&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Delete branch:&lt;/b&gt;&lt;br /&gt;
git branch -D new_branch&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Merge branch into current copy:&lt;/b&gt;&lt;br /&gt;
git merge branch_to_merge_in&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Resolve a Merge:&lt;/b&gt;&lt;br /&gt;
1) Edit file to resolve&lt;br /&gt;
2) git add conflict_file&lt;br /&gt;
3) git commit&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Undo a Merge: &amp;nbsp;&lt;/b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;# restores state to pre-merge&lt;/span&gt;&lt;br /&gt;
git reset --heard HEAD&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;b&gt;~/.gitignore&lt;/b&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;[color]
 diff = auto
 status = auto
 branch = auto
[user]
 name = Joe Jaz
 email = joe@example.com
[alias]
 st = status
 stu = status -uno
 ci = commit
 co = checkout
 br = branch -v
 tree = log --graph --pretty=oneline --abbrev-commit --decorate
[core]
 editor = vim
 pager = less
&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;References:&lt;/b&gt;&lt;br /&gt;
&lt;a href=&quot;http://jonas.nitro.dk/git/quick-reference.html&quot;&gt;&lt;i&gt;http://jonas.nitro.dk/git/quick-reference.html&lt;/i&gt;&lt;/a&gt;&lt;br /&gt;
&lt;i&gt;&lt;a href=&quot;http://www.vogella.de/articles/Git/article.html#git_stagingindex&quot;&gt;http://www.vogella.de/articles/Git/article.html#git_stagingindex&lt;/a&gt;&lt;/i&gt;&lt;br /&gt;
&lt;a href=&quot;http://book.git-scm.com/3_basic_branching_and_merging.html&quot;&gt;&lt;i&gt;http://book.git-scm.com/3_basic_branching_and_merging.html&lt;/i&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;post-footer-line post-footer-line-1&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;post-footer-line post-footer-line-1&quot;&gt;
&lt;span class=&quot;post-author vcard&quot;&gt;&lt;abbr&gt;source: &lt;a href=&quot;http://jazstudios.blogspot.com/2011/06/git-info-common-commands.html&quot; target=&quot;_blank&quot;&gt;http://jazstudios.blogspot.com/2011/06/git-info-common-commands.html&lt;/a&gt;&lt;/abbr&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;post-timestamp&quot;&gt;&lt;a class=&quot;timestamp-link&quot; href=&quot;http://jazstudios.blogspot.com/2011/06/git-info-common-commands.html&quot; rel=&quot;bookmark&quot; title=&quot;permanent link&quot;&gt;&lt;abbr class=&quot;published&quot; title=&quot;2011-06-02T23:52:00-05:00&quot;&gt;&lt;/abbr&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://all-abouts-all.blogspot.com/feeds/6228969794736268514/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://all-abouts-all.blogspot.com/2012/01/git-info-common-commands.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/6228969794736268514'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/6228969794736268514'/><link rel='alternate' type='text/html' href='http://all-abouts-all.blogspot.com/2012/01/git-info-common-commands.html' title='Git INFO Common Commands'/><author><name>bessangel</name><uri>http://www.blogger.com/profile/05578517812432198008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2756269226941551749.post-2534929174519146606</id><published>2012-01-22T07:33:00.000-08:00</published><updated>2012-01-22T07:34:39.795-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="redmine"/><title type='text'>redmine эмайл увидомления с приложениями</title><content type='html'>Патч добавляющий в тело эмайла ссылки на приложения к задачи&lt;br /&gt;
&lt;a href=&quot;http://pastebin.com/p0Esq3iP&quot;&gt;http://pastebin.com/p0Esq3iP&lt;/a&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;diff --git a/app/models/attachment.rb b/app/models/attachment.rb
index ff434d8..0a7e69a 100644
--- a/app/models/attachment.rb
+++ b/app/models/attachment.rb
@@ -116,6 +116,11 @@ class Attachment &amp;lt; ActiveRecord::Base
   def deletable?(user=User.current)
     container.attachments_deletable?(user)
   end
+  
+  # my fix for email attachment
+  def to_s
+        self.filename
+  end
 
   def image?
     self.filename =~ /\.(jpe?g|gif|png)$/i
diff --git a/app/views/mailer/_issue_text_html.rhtml b/app/views/mailer/_issue_text_html.rhtml
index 3d851d4..06f0aec 100644
--- a/app/views/mailer/_issue_text_html.rhtml
+++ b/app/views/mailer/_issue_text_html.rhtml
@@ -7,6 +7,16 @@
 &amp;lt;li&amp;gt;&amp;lt;%=l(:field_assigned_to)%&amp;gt;: &amp;lt;%=h issue.assigned_to %&amp;gt;&amp;lt;/li&amp;gt;
 &amp;lt;li&amp;gt;&amp;lt;%=l(:field_category)%&amp;gt;: &amp;lt;%=h issue.category %&amp;gt;&amp;lt;/li&amp;gt;
 &amp;lt;li&amp;gt;&amp;lt;%=l(:field_fixed_version)%&amp;gt;: &amp;lt;%=h issue.fixed_version %&amp;gt;&amp;lt;/li&amp;gt;
+&amp;lt;% if issue.attachments.size &amp;gt; 0 %&amp;gt;
+    &amp;lt;li&amp;gt;
+        &amp;lt;ul&amp;gt;
+           &amp;lt;%=l(:label_attachment)%&amp;gt;: 
+           &amp;lt;% issue.attachments.each do | c | %&amp;gt;
+               &amp;lt;li&amp;gt; &amp;lt;%= link_to(c.to_s(), &quot;http://redmine.tnt.it-solutions.cz/attachments/&quot;+ c.id.to_s() + &quot;/&quot; + c.to_s() ) %&amp;gt; &amp;lt;/li&amp;gt;
+        &amp;lt;% end %&amp;gt;
+        &amp;lt;/ul&amp;gt;
+    &amp;lt;/li&amp;gt;
+&amp;lt;% end %&amp;gt;
 &amp;lt;% issue.custom_field_values.each do |c| %&amp;gt;
   &amp;lt;li&amp;gt;&amp;lt;%=h c.custom_field.name %&amp;gt;: &amp;lt;%=h show_value(c) %&amp;gt;&amp;lt;/li&amp;gt;
 &amp;lt;% end %&amp;gt;
diff --git a/app/views/mailer/_issue_text_plain.rhtml b/app/views/mailer/_issue_text_plain.rhtml
index bea2a58..5e49b99 100644
--- a/app/views/mailer/_issue_text_plain.rhtml
+++ b/app/views/mailer/_issue_text_plain.rhtml
@@ -7,6 +7,7 @@
 &amp;lt;%=l(:field_assigned_to)%&amp;gt;: &amp;lt;%= issue.assigned_to %&amp;gt;
 &amp;lt;%=l(:field_category)%&amp;gt;: &amp;lt;%= issue.category %&amp;gt;
 &amp;lt;%=l(:field_fixed_version)%&amp;gt;: &amp;lt;%= issue.fixed_version %&amp;gt;
+&amp;lt;% if issue.attachments.size &amp;gt; 0 %&amp;gt;&amp;lt;%=l(:label_attachment)%&amp;gt;: &amp;lt;%= issue.attachments.join(&quot;, &quot;) %&amp;gt;&amp;lt;% end %&amp;gt;
 &amp;lt;% issue.custom_field_values.each do |c| %&amp;gt;&amp;lt;%= c.custom_field.name %&amp;gt;: &amp;lt;%= show_value(c) %&amp;gt;
 &amp;lt;% end %&amp;gt;
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://all-abouts-all.blogspot.com/feeds/2534929174519146606/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://all-abouts-all.blogspot.com/2012/01/redmine.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/2534929174519146606'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/2534929174519146606'/><link rel='alternate' type='text/html' href='http://all-abouts-all.blogspot.com/2012/01/redmine.html' title='redmine эмайл увидомления с приложениями'/><author><name>bessangel</name><uri>http://www.blogger.com/profile/05578517812432198008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2756269226941551749.post-6737435360659614381</id><published>2012-01-20T04:13:00.001-08:00</published><updated>2012-01-20T04:13:54.792-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="perl"/><title type='text'>perl oneliner</title><content type='html'>perl -n -e &#39;m/(?:[^\d.])((?:\d*)(?:(\.\d{0,2})?))(?:\s\&amp;euro)/ &amp;&amp; {print &quot;$1\n&quot;}&#39;</content><link rel='replies' type='application/atom+xml' href='http://all-abouts-all.blogspot.com/feeds/6737435360659614381/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://all-abouts-all.blogspot.com/2012/01/perl-oneliner.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/6737435360659614381'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/6737435360659614381'/><link rel='alternate' type='text/html' href='http://all-abouts-all.blogspot.com/2012/01/perl-oneliner.html' title='perl oneliner'/><author><name>bessangel</name><uri>http://www.blogger.com/profile/05578517812432198008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2756269226941551749.post-799800028133383345</id><published>2011-12-28T15:52:00.000-08:00</published><updated>2012-01-25T11:01:16.049-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><title type='text'>java</title><content type='html'>&lt;a href=&quot;http://zetcode.com/tutorials/jeetutorials/javaservers/&quot;&gt;http://zetcode.com/tutorials/jeetutorials/javaservers/&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.java2s.com/&quot;&gt;http://www.java2s.com/&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.vogella.de/java.html&quot;&gt;http://www.vogella.de/java.html&lt;/a&gt;&lt;br /&gt;
 &lt;a href=&quot;http://www.discursive.com/books/cjcook/reference/book-cjcook.html&quot;&gt;http://www.discursive.com/books/cjcook/reference/book-cjcook.html&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;a href=&quot;http://www.discursive.com/books/cjcook/reference/app-infra-sect-composite-config.html&quot;&gt;http://www.discursive.com/books/cjcook/reference/app-infra-sect-composite-config.html&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;a href=&quot;http://www.javafaq.nu/topics.html&quot;&gt;http://www.javafaq.nu/topics.html&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://all-abouts-all.blogspot.com/feeds/799800028133383345/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://all-abouts-all.blogspot.com/2011/12/java.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/799800028133383345'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/799800028133383345'/><link rel='alternate' type='text/html' href='http://all-abouts-all.blogspot.com/2011/12/java.html' title='java'/><author><name>bessangel</name><uri>http://www.blogger.com/profile/05578517812432198008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2756269226941551749.post-5188392614658941677</id><published>2011-12-14T06:50:00.000-08:00</published><updated>2011-12-14T06:50:20.688-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>Обновление Cyrus 2.1 на 2.2</title><content type='html'>После апгрейда убунты на 10,04 перестал запускаться cyrus. Вылитает ошибка:&lt;br /&gt;
&lt;pre&gt;/etc/init.d/cyrus2.2: Database backends mismatch! You must manually
/etc/init.d/cyrus2.2: verify and update the Cyrus databases to the
/etc/init.d/cyrus2.2: new backends.
/etc/init.d/cyrus2.2: Please refer to /usr/share/doc/cyrus-common-2.2/README.Debian
/etc/init.d/cyrus2.2: for instructions.
&lt;/pre&gt;Лекарство:&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;# делаем бекап системных файлов
cd /var/lib
tar cfvz cyrus-backup.tgz cyrus
# при необходимости бекап почтовых ящиков
tar cfvz cyrus-spool-backup.tgz /var/spool/cyrus

#
rm /usr/lib/cyrus/cyrus-db-types.active
sudo chown -R cyrus:mail /var/lib/cyrus
dpkg-reconfigure cyrus-common-2.2
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://all-abouts-all.blogspot.com/feeds/5188392614658941677/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://all-abouts-all.blogspot.com/2011/12/cyrus-21-22.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/5188392614658941677'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/5188392614658941677'/><link rel='alternate' type='text/html' href='http://all-abouts-all.blogspot.com/2011/12/cyrus-21-22.html' title='Обновление Cyrus 2.1 на 2.2'/><author><name>bessangel</name><uri>http://www.blogger.com/profile/05578517812432198008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2756269226941551749.post-2470771039459681171</id><published>2011-12-02T07:34:00.000-08:00</published><updated>2011-12-02T07:34:32.632-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="doctrine"/><category scheme="http://www.blogger.com/atom/ns#" term="symfony"/><title type='text'>Doctrine Versionable: получить все версии объекта</title><content type='html'>Процесс создания модели у которой ведётся сохрание изменений&lt;br /&gt;
&lt;a href=&quot;http://www.doctrine-project.org/documentation/manual/1_0/en/behaviors#core-behaviors:versionable&quot; target=&quot;_blank&quot;&gt;http://www.doctrine-project.org/documentation/manual/1_0/en/behaviors#core-behaviors:versionable&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
там описана возможность получить текущую версию объекта&lt;br /&gt;
&lt;pre&gt;$blogPost-&amp;gt;version;&lt;/pre&gt;&lt;br /&gt;
и откатить изменения при помощи метода&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;$blogPost-&amp;gt;revert(1);&lt;/code&gt;&lt;/pre&gt;Чтобы получить все версии $blogPost:&lt;br /&gt;
&lt;b&gt;$blogPost-&gt;getVersion()&lt;/b&gt;</content><link rel='replies' type='application/atom+xml' href='http://all-abouts-all.blogspot.com/feeds/2470771039459681171/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://all-abouts-all.blogspot.com/2011/12/doctrine-versionable.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/2470771039459681171'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/2470771039459681171'/><link rel='alternate' type='text/html' href='http://all-abouts-all.blogspot.com/2011/12/doctrine-versionable.html' title='Doctrine Versionable: получить все версии объекта'/><author><name>bessangel</name><uri>http://www.blogger.com/profile/05578517812432198008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2756269226941551749.post-3921319621664410332</id><published>2011-11-25T03:50:00.001-08:00</published><updated>2011-11-25T03:50:37.998-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><title type='text'>UTF 8 and my.cnf</title><content type='html'>Settings for mysql that will help ensure Unicode top to bottom.&lt;br /&gt;
&lt;br /&gt;
[mysqld]&lt;br /&gt;
default-character-set=utf8&lt;br /&gt;
default-collation=utf8_general_ci&lt;br /&gt;
character-set-server=utf8&lt;br /&gt;
collation-server=utf8_general_ci&lt;br /&gt;
init-connect=&#39;SET NAMES utf8&#39;&lt;br /&gt;
 &lt;br /&gt;
[client]&lt;br /&gt;
default-character-set=utf8</content><link rel='replies' type='application/atom+xml' href='http://all-abouts-all.blogspot.com/feeds/3921319621664410332/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://all-abouts-all.blogspot.com/2011/11/utf-8-and-mycnf.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/3921319621664410332'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/3921319621664410332'/><link rel='alternate' type='text/html' href='http://all-abouts-all.blogspot.com/2011/11/utf-8-and-mycnf.html' title='UTF 8 and my.cnf'/><author><name>bessangel</name><uri>http://www.blogger.com/profile/05578517812432198008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2756269226941551749.post-7943536524281170985</id><published>2011-11-22T10:42:00.000-08:00</published><updated>2011-11-22T10:42:42.343-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="web"/><title type='text'>Ubuntu/Debian downgrade php5.3 to 5.2</title><content type='html'>Делаю downgrade в Lucid только для следующих пакетов в версии из репозитария Hardy&lt;br /&gt;
&lt;br /&gt;
vim /etc/apt/preferences.d/php5-pin&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;Package: php5-cgi
Pin: release a=hardy
Pin-Priority: 1001

Package: libapache2-mod-php5
Pin: release a=hardy
Pin-Priority: 1001

Package: php5-common
Pin: release a=hardy
Pin-Priority: 1001

Package: php5-cli
Pin: release a=hardy
Pin-Priority: 1001

Package: php-auth
Pin: release a=hardy
Pin-Priority: 1001

Package: php-pear
Pin: release a=hardy
Pin-Priority: 1001

Package: php5-curl
Pin: release a=hardy
Pin-Priority: 1001

Package: php5-dev
Pin: release a=hardy
Pin-Priority: 1001

Package: php5-gd
Pin: release a=hardy
Pin-Priority: 1001

Package: php5-imagick
Pin: release a=hardy
Pin-Priority: 1001

Package: php5-imap
Pin: release a=hardy
Pin-Priority: 1001

Package: php5-mcrypt
Pin: release a=hardy
Pin-Priority: 1001

Package: php5-mysql
Pin: release a=hardy
Pin-Priority: 1001

Package: php5-sqlite
Pin: release a=hardy
Pin-Priority: 1001

Package: php5-tidy
Pin: release a=hardy
Pin-Priority: 1001

Package: php5-xmlrpc
Pin: release a=hardy
Pin-Priority: 1001

Package: php5-xsl
Pin: release a=hardy
Pin-Priority: 1001
&lt;/pre&gt;&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;aptitude install php5-cgi php-auth php-pear php5-cli php5-curl php5-dev php5-gd php5-imagick php5-imap php5-mcrypt php5-mysql php5-sqlite php5-tidy php5-xmlrpc php5-xsl
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://all-abouts-all.blogspot.com/feeds/7943536524281170985/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://all-abouts-all.blogspot.com/2011/11/ubuntudebian-downgrade-php53-to-52.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/7943536524281170985'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2756269226941551749/posts/default/7943536524281170985'/><link rel='alternate' type='text/html' href='http://all-abouts-all.blogspot.com/2011/11/ubuntudebian-downgrade-php53-to-52.html' title='Ubuntu/Debian downgrade php5.3 to 5.2'/><author><name>bessangel</name><uri>http://www.blogger.com/profile/05578517812432198008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>