<?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-2344356294223010471</id><updated>2026-05-01T22:08:36.802+02:00</updated><category term="I"/><title type='text'>MY Experiences</title><subtitle type='html'>No Description</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://mtehrani30.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://mtehrani30.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Tehrani</name><uri>http://www.blogger.com/profile/01679148143953185957</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>216</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2344356294223010471.post-2806738234111615329</id><published>2020-07-08T16:17:00.003+02:00</published><updated>2020-07-08T16:17:21.080+02:00</updated><title type='text'>Find Size of all files with certain extensions</title><content type='html'>You can find the size with this find command:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;find . -iregex &quot;.*\.\(&lt;span style=&quot;color: #cc0000;&quot;&gt;jpg&lt;/span&gt;\|&lt;span style=&quot;color: #cc0000;&quot;&gt;gif&lt;/span&gt;\|&lt;span style=&quot;color: #cc0000;&quot;&gt;png&lt;/span&gt;\|&lt;span style=&quot;color: #cc0000;&quot;&gt;jpeg&lt;/span&gt;\)&quot;&amp;nbsp; -exec du -ch {} + | grep total$&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;iregex&lt;/b&gt; means case-insensitive. </content><link rel='replies' type='application/atom+xml' href='http://mtehrani30.blogspot.com/feeds/2806738234111615329/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2344356294223010471/2806738234111615329?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/2806738234111615329'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/2806738234111615329'/><link rel='alternate' type='text/html' href='http://mtehrani30.blogspot.com/2020/07/find-size-of-all-files-with-certain.html' title='Find Size of all files with certain extensions'/><author><name>Tehrani</name><uri>http://www.blogger.com/profile/01679148143953185957</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-2344356294223010471.post-2021953735578601530</id><published>2020-05-07T09:39:00.005+02:00</published><updated>2020-05-07T09:39:52.146+02:00</updated><title type='text'>Use different backend based on HTTP Header in Nginx</title><content type='html'>To do this, you can use this configuration:&lt;br /&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;upstream production {
     server 10.0.0.1:80;
}

upstream stage {
     server 10.0.0.2:80;
}


# map to different upstream backends based on header
map $http_x_which_deployment $pool {
     default &quot;production&quot;;
     stage &quot;stage&quot;;
}

server {
     listen 80;
     server_name _;
     location / {
            proxy_pass http://$pool;
            proxy_set_header X-Real-IP  $remote_addr;
            proxy_set_header X-Forwarded-For $http_true_client_ip;
            proxy_set_header Host $host;
            proxy_connect_timeout       600;
            proxy_send_timeout          600;
            proxy_read_timeout          600;
            send_timeout                600;     }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then if you add &quot;X-Which-Deployment&quot; header and set it to &quot;stage&quot;, you will be pointed to &quot;Stage Server&quot; (here 10.0.0.2).</content><link rel='replies' type='application/atom+xml' href='http://mtehrani30.blogspot.com/feeds/2021953735578601530/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2344356294223010471/2021953735578601530?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/2021953735578601530'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/2021953735578601530'/><link rel='alternate' type='text/html' href='http://mtehrani30.blogspot.com/2020/05/use-different-backend-based-on-http.html' title='Use different backend based on HTTP Header in Nginx'/><author><name>Tehrani</name><uri>http://www.blogger.com/profile/01679148143953185957</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-2344356294223010471.post-8215190405264510087</id><published>2020-04-08T14:44:00.005+02:00</published><updated>2020-04-08T14:45:51.157+02:00</updated><title type='text'>Elasticsearch flood stage disk watermark error</title><content type='html'>&lt;br /&gt;
If your disk is full, you must first empty it and then run these two curl commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;curl -XPUT -H&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&quot;Content-Type: application/json&quot;&lt;/span&gt; &lt;span style=&quot;color: #0b5394;&quot;&gt;http: //localhost:9200/_cluster/settings&lt;/span&gt; -d &lt;span style=&quot;color: red;&quot;&gt;&#39;{ &quot;transient&quot;: { &quot;cluster.routing.allocation.disk.threshold_enabled&quot;: false } }&#39;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;curl -XPUT -H&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&quot;Content-Type: application/json&quot;&lt;/span&gt; &lt;span style=&quot;color: #0b5394;&quot;&gt;http: //localhost:9200/_all/_settings&lt;/span&gt; -d &lt;span style=&quot;color: red;&quot;&gt;&#39;{&quot;index.blocks.read_only_allow_delete&quot;: null}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://mtehrani30.blogspot.com/feeds/8215190405264510087/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2344356294223010471/8215190405264510087?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/8215190405264510087'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/8215190405264510087'/><link rel='alternate' type='text/html' href='http://mtehrani30.blogspot.com/2020/04/elasticsearch-flood-stage-disk.html' title='Elasticsearch flood stage disk watermark error'/><author><name>Tehrani</name><uri>http://www.blogger.com/profile/01679148143953185957</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-2344356294223010471.post-5351279673521920119</id><published>2015-11-18T10:40:00.001+01:00</published><updated>2015-11-18T10:40:23.798+01:00</updated><title type='text'>Debian 8 and Varnish 4 Problem</title><content type='html'>The Varnish service was starting OK but it wasn&#39;t using any of the 
parameters, set in &lt;span style=&quot;color: #38761d;&quot;&gt;/etc/default/varnish&lt;/span&gt;. &lt;br /&gt;&lt;br /&gt;For example, set the
 listening port to be 80, but Varnish would always start with port 6081.&lt;br /&gt;
&lt;br /&gt;
The Varnish service (&lt;span style=&quot;color: #38761d;&quot;&gt;/lib/systemd/system/varnish.service&lt;/span&gt;) wasn&#39;t using 
any parameter files - instead it was hard coded to start with the 
default values only.&lt;br /&gt;
&lt;br /&gt;
The temporary fix is to edit the varnish.service file and manually configure the parameters to match your needs.&lt;br /&gt;
&lt;br /&gt;
reference: &lt;a href=&quot;https://www.varnish-cache.org/forum/topic/5206&quot;&gt;https://www.varnish-cache.org/forum/topic/5206&lt;/a&gt; </content><link rel='replies' type='application/atom+xml' href='http://mtehrani30.blogspot.com/feeds/5351279673521920119/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2344356294223010471/5351279673521920119?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/5351279673521920119'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/5351279673521920119'/><link rel='alternate' type='text/html' href='http://mtehrani30.blogspot.com/2015/11/debian-8-and-varnish-4-problem.html' title='Debian 8 and Varnish 4 Problem'/><author><name>Tehrani</name><uri>http://www.blogger.com/profile/01679148143953185957</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-2344356294223010471.post-8135736857564000860</id><published>2015-11-12T15:59:00.001+01:00</published><updated>2015-11-12T16:00:00.269+01:00</updated><title type='text'>Disable MySQL Strict mode in Debian 8 permanently</title><content type='html'>All blogs say:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;for turning off strict mode you must add following line to &lt;span style=&quot;color: red;&quot;&gt;/etc/mysql/my.cnf&lt;/span&gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;sql_mode=&quot;&quot;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
and restart the mysql server.&lt;br /&gt;
&lt;br /&gt;
That was not working me.&lt;br /&gt;
&lt;br /&gt;
I have found another setting file for mysql: &lt;span style=&quot;color: red;&quot;&gt;/usr/my.cnf&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
and in this file exists &lt;span style=&quot;color: #38761d;&quot;&gt;sql_mode&lt;/span&gt; parameter too.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
this line must be commented out too:&lt;br /&gt;
&lt;br /&gt;
#&lt;span style=&quot;color: blue;&quot;&gt;sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Don&#39;t forget to restart the mysql server.</content><link rel='replies' type='application/atom+xml' href='http://mtehrani30.blogspot.com/feeds/8135736857564000860/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2344356294223010471/8135736857564000860?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/8135736857564000860'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/8135736857564000860'/><link rel='alternate' type='text/html' href='http://mtehrani30.blogspot.com/2015/11/disable-mysql-strict-mode-in-debian-8.html' title='Disable MySQL Strict mode in Debian 8 permanently'/><author><name>Tehrani</name><uri>http://www.blogger.com/profile/01679148143953185957</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-2344356294223010471.post-288221026601155723</id><published>2015-07-23T15:15:00.004+02:00</published><updated>2015-07-23T15:15:32.240+02:00</updated><title type='text'>Checking SSL Certifcate on Plesk Mail Server</title><content type='html'>&lt;br /&gt;
Run this command (&lt;span style=&quot;color: red;&quot;&gt;mail.DOMAIN.de&lt;/span&gt; is the MX-Record):&lt;br /&gt;
&lt;br /&gt;
SMTP:&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;openssl s_client -starttls smtp -crlf -connect &lt;span style=&quot;color: red;&quot;&gt;mail.DOMAIN.de&lt;/span&gt;:25&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
POP3:&lt;br /&gt;
 &lt;span style=&quot;color: #38761d;&quot;&gt;openssl s_client -starttls pop3 -crlf -connect &lt;span style=&quot;color: red;&quot;&gt;mail.DOMAIN.de&lt;/span&gt;:110&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
IMAP:&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;openssl s_client -starttls imap -crlf -connect &lt;span style=&quot;color: red;&quot;&gt;mail.DOMAIN.de&lt;/span&gt;:143&lt;/span&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As result you can see your certificate if it installed correctly:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-55ae605c5fb8b655439032-2&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Certificate chain&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-55ae605c5fb8b655439032-3&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt; 0 s:/description=FmJdZEx3lsXPoIXv/C=DE/CN=mail.DOMAIN.de/emailAddress=hostmaster@DOMAIN.de&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-55ae605c5fb8b655439032-4&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; i:/C=IL/O=StartCom Ltd./OU=Secure Digital Certificate Signing/CN=StartCom Class 1 Primary Intermediate Server CA&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-55ae605c5fb8b655439032-5&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt; 1 s:/C=IL/O=StartCom Ltd./OU=Secure Digital Certificate Signing/CN=StartCom Class 1 Primary Intermediate Server CA&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-55ae605c5fb8b655439032-6&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; i:/C=IL/O=StartCom Ltd./OU=Secure Digital Certificate Signing/CN=StartCom Certification Authority&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-55ae605c5fb8b655439032-7&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;---&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://mtehrani30.blogspot.com/feeds/288221026601155723/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2344356294223010471/288221026601155723?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/288221026601155723'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/288221026601155723'/><link rel='alternate' type='text/html' href='http://mtehrani30.blogspot.com/2015/07/checking-ssl-certifcate-on-plesk-mail.html' title='Checking SSL Certifcate on Plesk Mail Server'/><author><name>Tehrani</name><uri>http://www.blogger.com/profile/01679148143953185957</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-2344356294223010471.post-635129102917974349</id><published>2015-07-23T15:08:00.005+02:00</published><updated>2015-07-23T15:08:36.494+02:00</updated><title type='text'>How to downgrade Openssl on CentOS?</title><content type='html'>&lt;br /&gt;&lt;br /&gt;List the available versions by running this command: &lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;yum --showduplicates list openssl&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;you should see these lines:&lt;br /&gt;&lt;br /&gt;Installed package: &lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;openssl.x86_641:1.0.1e42.el7.9&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Available packages:&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;openssl.x86_64 - 1:1.0.1e-42.el7  - base&lt;br /&gt;openssl.x86_64 - 1:1.0.1e-42.el7_1.5 - updates&lt;br /&gt;openssl.x86_64 - 1:1.0.1e-42.el7.4 - updates&lt;br /&gt;openssl.x86_64 - 1:1.0.1e-42.el7.6 - updates&lt;br /&gt;openssl.x86_64 - 1:1.0.1e-42.el7.8 - updates&lt;br /&gt;openssl.x86_64 - 1:1.0.1e-42.el7.9 - updates&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
then doing:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;yum downgrade openssl-1.0.1e-42.el7_1.5&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
it will downgrade openssl to 7_1.5 version. &lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://mtehrani30.blogspot.com/feeds/635129102917974349/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2344356294223010471/635129102917974349?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/635129102917974349'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/635129102917974349'/><link rel='alternate' type='text/html' href='http://mtehrani30.blogspot.com/2015/07/how-to-downgrade-openssl-on-centos.html' title='How to downgrade Openssl on CentOS?'/><author><name>Tehrani</name><uri>http://www.blogger.com/profile/01679148143953185957</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-2344356294223010471.post-4649928474427087530</id><published>2015-03-27T16:01:00.004+01:00</published><updated>2015-03-27T16:01:48.674+01:00</updated><title type='text'>Rollback to previous package version after bad upgrade with Debian</title><content type='html'>&lt;pre&gt;&lt;span id=&quot;L-1&quot;&gt;This will show all the versions of the package in the cache:
&lt;/span&gt;&lt;span id=&quot;L-2&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;L-2&quot;&gt;&lt;/a&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;apt-cache show &lt;span style=&quot;color: red;&quot;&gt;[package name]&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;span id=&quot;L-3&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;L-3&quot;&gt;&lt;/a&gt;
&lt;/span&gt;&lt;span id=&quot;L-4&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;L-4&quot;&gt;&lt;/a&gt;This will install an older version of the package
&lt;/span&gt;&lt;span id=&quot;L-5&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;L-5&quot;&gt;&lt;/a&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;apt-get install &lt;span style=&quot;color: red;&quot;&gt;[package name]&lt;/span&gt;=&lt;span style=&quot;color: red;&quot;&gt;[version]&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://mtehrani30.blogspot.com/feeds/4649928474427087530/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2344356294223010471/4649928474427087530?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/4649928474427087530'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/4649928474427087530'/><link rel='alternate' type='text/html' href='http://mtehrani30.blogspot.com/2015/03/rollback-to-previous-package-version.html' title='Rollback to previous package version after bad upgrade with Debian'/><author><name>Tehrani</name><uri>http://www.blogger.com/profile/01679148143953185957</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-2344356294223010471.post-6494367687750367986</id><published>2014-11-11T17:43:00.003+01:00</published><updated>2014-11-11T17:45:02.071+01:00</updated><title type='text'>RSYNC using filter to include some files</title><content type='html'>use rsync with Filter option to include some files.&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;rsync -auvz -f&#39;+ [&lt;span style=&quot;color: red;&quot;&gt;Aa&lt;/span&gt;][&lt;span style=&quot;color: red;&quot;&gt;Mm&lt;/span&gt;]*&#39;&amp;nbsp; -f&#39;+ */&#39; -f&#39;- *&#39;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;/SOURCE-Folder/ /TARGET-Folder/&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It means: exclude all files and include only files beginning with A and M (insensitive).</content><link rel='replies' type='application/atom+xml' href='http://mtehrani30.blogspot.com/feeds/6494367687750367986/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2344356294223010471/6494367687750367986?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/6494367687750367986'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/6494367687750367986'/><link rel='alternate' type='text/html' href='http://mtehrani30.blogspot.com/2014/11/rsync-using-filter-to-include-some-files.html' title='RSYNC using filter to include some files'/><author><name>Tehrani</name><uri>http://www.blogger.com/profile/01679148143953185957</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-2344356294223010471.post-6702867884117890166</id><published>2014-11-05T10:53:00.002+01:00</published><updated>2014-11-05T10:53:32.140+01:00</updated><title type='text'>Add line to the beginning of a file in Bash</title><content type='html'>&lt;pre class=&quot;lang-bsh prettyprint prettyprinted&quot;&gt;&lt;code&gt;&lt;span class=&quot;pln&quot;&gt;To add a line to the beginning of a file, use this command: &lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;lang-bsh prettyprint prettyprinted&quot;&gt;&lt;code&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;lang-bsh prettyprint prettyprinted&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;code&gt;&lt;span class=&quot;pln&quot;&gt;sed &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;i &lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&#39;1s/^/&lt;span style=&quot;color: red;&quot;&gt;YOUR NEW LINE&lt;/span&gt;\n/&#39;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;span style=&quot;color: red;&quot;&gt;YOUR-FILE.TXT&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://mtehrani30.blogspot.com/feeds/6702867884117890166/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2344356294223010471/6702867884117890166?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/6702867884117890166'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/6702867884117890166'/><link rel='alternate' type='text/html' href='http://mtehrani30.blogspot.com/2014/11/add-line-to-beginning-of-file-in-bash.html' title='Add line to the beginning of a file in Bash'/><author><name>Tehrani</name><uri>http://www.blogger.com/profile/01679148143953185957</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-2344356294223010471.post-7944964334875329622</id><published>2014-10-30T11:40:00.000+01:00</published><updated>2014-10-30T11:40:22.927+01:00</updated><title type='text'>Mysql 5.5 Innodb slow insert query issue</title><content type='html'>An upgrade MySQL from version 5.1 to 5.5 has very slowed Typo3 instances. &lt;br /&gt;&lt;br /&gt;The reason was very slow insert queries in InnoDB tables. &lt;br /&gt;&lt;br /&gt;In order to save you some distress, for a possible solution, add following line to my.cnf and restart the mysql:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;lang-sql prettyprint prettyprinted&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;code&gt;&lt;span class=&quot;pln&quot;&gt;innodb_flush_log_at_trx_commit&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;lit&quot;&gt;0&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://mtehrani30.blogspot.com/feeds/7944964334875329622/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2344356294223010471/7944964334875329622?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/7944964334875329622'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/7944964334875329622'/><link rel='alternate' type='text/html' href='http://mtehrani30.blogspot.com/2014/10/mysql-55-innodb-slow-insert-query-issue.html' title='Mysql 5.5 Innodb slow insert query issue'/><author><name>Tehrani</name><uri>http://www.blogger.com/profile/01679148143953185957</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-2344356294223010471.post-3126332887991594246</id><published>2014-10-15T15:35:00.003+02:00</published><updated>2014-10-15T15:35:23.257+02:00</updated><title type='text'>Disable SSLv2 and SSLv3 in Apache</title><content type='html'>The best way to disable both SSLv2 and SSLv3 and only enable TLS 1.0-1.2 is to use this configuration in your Apache configuration file:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;SSLProtocol TLSv1&lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;
&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;Example:&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;color: blue;&quot;&gt;SSLEngine On
&lt;b&gt;SSLProtocol TLSv1&lt;/b&gt;
SSLCertificateFile      domain.crt
SSLCertificateKeyFile   domain.key&lt;/span&gt;&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://mtehrani30.blogspot.com/feeds/3126332887991594246/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2344356294223010471/3126332887991594246?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/3126332887991594246'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/3126332887991594246'/><link rel='alternate' type='text/html' href='http://mtehrani30.blogspot.com/2014/10/disable-sslv2-and-sslv3-in-apache.html' title='Disable SSLv2 and SSLv3 in Apache'/><author><name>Tehrani</name><uri>http://www.blogger.com/profile/01679148143953185957</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-2344356294223010471.post-4507593596326715172</id><published>2014-10-15T15:31:00.006+02:00</published><updated>2014-10-15T15:31:44.998+02:00</updated><title type='text'>Testing your SSL Version</title><content type='html'>if you want to test your ssl version details of perticular host use the following command:
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;openssl s_client -connect &lt;span style=&quot;color: #cc0000;&quot;&gt;YOURDOMAIN&lt;/span&gt;:443&lt;/span&gt;&lt;br /&gt;

&lt;br /&gt;
You need to replace &lt;span style=&quot;color: #cc0000;&quot;&gt;YOURDOMAIN&lt;/span&gt; to your website hostname Output looks like below:&lt;br /&gt;
&lt;br /&gt;
Server public key is 2048 bit&lt;br /&gt;Secure Renegotiation IS supported&lt;br /&gt;Compression: NONE&lt;br /&gt;Expansion: NONE&lt;br /&gt;SSL-Session:&lt;br /&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Protocol&amp;nbsp; : TLSv1&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cipher&amp;nbsp;&amp;nbsp;&amp;nbsp; : ....&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Session-ID: ....</content><link rel='replies' type='application/atom+xml' href='http://mtehrani30.blogspot.com/feeds/4507593596326715172/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2344356294223010471/4507593596326715172?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/4507593596326715172'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/4507593596326715172'/><link rel='alternate' type='text/html' href='http://mtehrani30.blogspot.com/2014/10/testing-your-ssl-version.html' title='Testing your SSL Version'/><author><name>Tehrani</name><uri>http://www.blogger.com/profile/01679148143953185957</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-2344356294223010471.post-7786724773258868908</id><published>2014-09-24T15:29:00.000+02:00</published><updated>2014-09-24T15:29:03.430+02:00</updated><title type='text'>Checking Varnish configuration syntax</title><content type='html'>If you have updated your Varnish configuration and want to check it,&lt;br /&gt;run this command:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;code class=&quot;shell plain&quot; style=&quot;background: none repeat scroll 0% 0% transparent ! important; border-radius: 0px ! important; border: 0px none ! important; bottom: auto ! important; box-sizing: content-box ! important; float: none ! important; font-family: Consolas,&amp;quot;Bitstream Vera Sans Mono&amp;quot;,&amp;quot;Courier New&amp;quot;,Courier,monospace ! important; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; height: auto ! important; left: auto ! important; letter-spacing: normal; line-height: 17.6px; margin: 0px ! important; min-height: inherit ! important; outline: 0px none ! important; overflow: visible ! important; padding: 0px ! important; position: static ! important; right: auto ! important; text-align: left; text-indent: 0px; text-transform: none; top: auto ! important; vertical-align: baseline ! important; white-space: pre; width: auto ! important; word-spacing: 0px;&quot;&gt;varnishd -C -f &lt;/code&gt;&lt;code class=&quot;shell plain&quot; style=&quot;background: none repeat scroll 0% 0% transparent ! important; border-radius: 0px ! important; border: 0px none ! important; bottom: auto ! important; box-sizing: content-box ! important; float: none ! important; font-family: Consolas,&amp;quot;Bitstream Vera Sans Mono&amp;quot;,&amp;quot;Courier New&amp;quot;,Courier,monospace ! important; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; height: auto ! important; left: auto ! important; letter-spacing: normal; line-height: 17.6px; margin: 0px ! important; min-height: inherit ! important; outline: 0px none ! important; overflow: visible ! important; padding: 0px ! important; position: static ! important; right: auto ! important; text-align: left; text-indent: 0px; text-transform: none; top: auto ! important; vertical-align: baseline ! important; white-space: pre; width: auto ! important; word-spacing: 0px;&quot;&gt;/etc/varnish/&lt;span style=&quot;color: red;&quot;&gt;default&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;code class=&quot;shell plain&quot; style=&quot;background: none repeat scroll 0% 0% transparent ! important; border-radius: 0px ! important; border: 0px none ! important; bottom: auto ! important; box-sizing: content-box ! important; float: none ! important; font-family: Consolas,&amp;quot;Bitstream Vera Sans Mono&amp;quot;,&amp;quot;Courier New&amp;quot;,Courier,monospace ! important; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; height: auto ! important; left: auto ! important; letter-spacing: normal; line-height: 17.6px; margin: 0px ! important; min-height: inherit ! important; outline: 0px none ! important; overflow: visible ! important; padding: 0px ! important; position: static ! important; right: auto ! important; text-align: left; text-indent: 0px; text-transform: none; top: auto ! important; vertical-align: baseline ! important; white-space: pre; width: auto ! important; word-spacing: 0px;&quot;&gt;.vcl&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
if everything is correct, Varnish will dump out the genrated configuration, otherwise you will get an error message pointing you to a specific line number.</content><link rel='replies' type='application/atom+xml' href='http://mtehrani30.blogspot.com/feeds/7786724773258868908/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2344356294223010471/7786724773258868908?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/7786724773258868908'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/7786724773258868908'/><link rel='alternate' type='text/html' href='http://mtehrani30.blogspot.com/2014/09/checking-varnish-configuration-syntax.html' title='Checking Varnish configuration syntax'/><author><name>Tehrani</name><uri>http://www.blogger.com/profile/01679148143953185957</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-2344356294223010471.post-4157594351680847437</id><published>2014-09-23T18:00:00.003+02:00</published><updated>2014-09-23T18:00:48.027+02:00</updated><title type='text'>Benchmarking LAN Network Connectivity in Linux</title><content type='html'>Using netcat:&lt;br /&gt;
&lt;br /&gt;
on destination machine run this command:&lt;br /&gt;
(This tells netcat to open port &lt;span style=&quot;color: #0b5394;&quot;&gt;20000&lt;/span&gt; and listen for connections.) &lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;nc -l &lt;span style=&quot;color: #0b5394;&quot;&gt;20000&lt;/span&gt; &amp;gt; /dev/null&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
on source machine execute this command:&lt;br /&gt;
(This command will transfer 30MB of data over the network (a blocksize of
 1MB, and 30 blocks, is 30MB)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;dd if=/dev/zero bs=1M count=30 | nc&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;HERE.COMES.DEST.IP&lt;/span&gt; &lt;span style=&quot;color: #0b5394;&quot;&gt;20000&lt;/span&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;Once all data is transferred, you’ll get 
the output from the &lt;span class=&quot;linuxInlineCommand&quot;&gt;dd&lt;/span&gt; command, showing throughput:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;30+0 records in&lt;br /&gt;
30+0 records out&lt;br /&gt;
31457280 bytes (31 MB) copied, 5.40742 s, 5.8 MB/s &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt; &lt;br /&gt;
&lt;br /&gt; &lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;source: &lt;a href=&quot;http://techthrob.com/2014/01/benchmarking-lan-network-connectivity-in-linux/&quot;&gt;http://techthrob.com/2014/01/benchmarking-lan-network-connectivity-in-linux/&lt;/a&gt;&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://mtehrani30.blogspot.com/feeds/4157594351680847437/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2344356294223010471/4157594351680847437?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/4157594351680847437'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/4157594351680847437'/><link rel='alternate' type='text/html' href='http://mtehrani30.blogspot.com/2014/09/benchmarking-lan-network-connectivity.html' title='Benchmarking LAN Network Connectivity in Linux'/><author><name>Tehrani</name><uri>http://www.blogger.com/profile/01679148143953185957</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-2344356294223010471.post-8062389466176360560</id><published>2014-09-19T15:35:00.000+02:00</published><updated>2014-09-19T15:38:57.724+02:00</updated><title type='text'>TYPO3 extension manger won&#39;t work in XAMPP under Windows</title><content type='html'>Add these lines to all three apache configuration files (&lt;span style=&quot;color: #0b5394;&quot;&gt;http.conf&lt;/span&gt;, &lt;span style=&quot;color: #0b5394;&quot;&gt;http-ssl.conf&lt;/span&gt;,&lt;span style=&quot;color: #0b5394;&quot;&gt;http-xampp.conf&lt;/span&gt;):&lt;br /&gt;
&lt;br /&gt;
&lt;ifmodule mpm_winnt_module=&quot;&quot;&gt; &lt;/ifmodule&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;code&gt;&amp;lt;&lt;/code&gt;IfModule mpm_winnt_module&lt;code&gt;&amp;gt;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;ThreadStackSize 8388608 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;code&gt;&amp;lt;&lt;/code&gt;/IfModule&lt;code&gt;&amp;gt;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
then restart the apache.</content><link rel='replies' type='application/atom+xml' href='http://mtehrani30.blogspot.com/feeds/8062389466176360560/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2344356294223010471/8062389466176360560?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/8062389466176360560'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/8062389466176360560'/><link rel='alternate' type='text/html' href='http://mtehrani30.blogspot.com/2014/09/typo3-extension-manger-wont-work-in.html' title='TYPO3 extension manger won&#39;t work in XAMPP under Windows'/><author><name>Tehrani</name><uri>http://www.blogger.com/profile/01679148143953185957</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-2344356294223010471.post-3181563196947335907</id><published>2014-09-18T10:51:00.000+02:00</published><updated>2014-09-18T10:52:57.289+02:00</updated><title type='text'>Getting HTTP HEAD from command line</title><content type='html'>Install libwww-perl (Debian) / perl-libwww-perl (CentOS):&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;Debian:&lt;/span&gt; &lt;span style=&quot;color: #38761d;&quot;&gt;apt-get install&amp;nbsp; libwww-perl&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;CentOS:&lt;/span&gt; &lt;span style=&quot;color: #38761d;&quot;&gt;yum install perl-libwww-perl&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Run this command:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;GET -Used http://&lt;span style=&quot;color: red;&quot;&gt;YOUR-WEBSITE.COM&lt;/span&gt;/&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://mtehrani30.blogspot.com/feeds/3181563196947335907/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2344356294223010471/3181563196947335907?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/3181563196947335907'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/3181563196947335907'/><link rel='alternate' type='text/html' href='http://mtehrani30.blogspot.com/2014/09/getting-http-head-from-command-line.html' title='Getting HTTP HEAD from command line'/><author><name>Tehrani</name><uri>http://www.blogger.com/profile/01679148143953185957</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-2344356294223010471.post-302326600668974759</id><published>2014-09-15T16:41:00.003+02:00</published><updated>2014-09-15T16:41:36.630+02:00</updated><title type='text'>MySQL Database Benchmark</title><content type='html'>Installing sysbench:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;apt-get install sysbench&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Preparing the Test Database:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;sysbench --test=oltp --oltp-table-size=1000000 --db-driver=mysql --mysql-db=test --mysql-user=&lt;span style=&quot;color: red;&quot;&gt;ADMIN-USER&lt;/span&gt; --mysql-password=&lt;span style=&quot;color: red;&quot;&gt;ADMIN-PASSWORD&lt;/span&gt; prepare&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Running Test:&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;sysbench --test=oltp --oltp-table-size=1000000 --db-driver=mysql --mysql-db=test --mysql-user=&lt;span style=&quot;color: red;&quot;&gt;ADMIN-USER&lt;/span&gt; --mysql-password=&lt;span style=&quot;color: red;&quot;&gt;ADMIN-PASSWORD&lt;/span&gt; prepare&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Cleaning test Databse:&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;sysbench --test=oltp --mysql-db=test --mysql-user=&lt;/span&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;ADMIN-USER&lt;/span&gt;&lt;/span&gt; --mysql-password= &lt;/span&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;ADMIN-PASSWORD&lt;/span&gt;&lt;/span&gt;cleanup &lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://mtehrani30.blogspot.com/feeds/302326600668974759/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2344356294223010471/302326600668974759?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/302326600668974759'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/302326600668974759'/><link rel='alternate' type='text/html' href='http://mtehrani30.blogspot.com/2014/09/mysql-database-benchmark.html' title='MySQL Database Benchmark'/><author><name>Tehrani</name><uri>http://www.blogger.com/profile/01679148143953185957</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-2344356294223010471.post-4102130464070884789</id><published>2014-05-08T12:03:00.003+02:00</published><updated>2014-05-08T12:05:26.646+02:00</updated><title type='text'>Add locale to Ubuntu</title><content type='html'>&lt;div class=&quot;post-text&quot;&gt;
&lt;div class=&quot;post-text&quot;&gt;
check which locales are supported:&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;code&gt;less /usr/share/i18n/SUPPORTED&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class=&quot;post-text&quot;&gt;
Add locale (for example German) to list of generated:&amp;nbsp;&lt;code&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;post-text&quot;&gt;
&lt;code&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;echo &lt;span style=&quot;color: #cc0000;&quot;&gt;de_DE.UTF8&lt;/span&gt; &amp;gt;&amp;gt; /var/lib/locales/supported.d/local&lt;/span&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Regenerate list (it will invoke locale-gen...):&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;sudo dpkg-reconfigure locales&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://mtehrani30.blogspot.com/feeds/4102130464070884789/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2344356294223010471/4102130464070884789?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/4102130464070884789'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/4102130464070884789'/><link rel='alternate' type='text/html' href='http://mtehrani30.blogspot.com/2014/05/add-locale-to-ubuntu.html' title='Add locale to Ubuntu'/><author><name>Tehrani</name><uri>http://www.blogger.com/profile/01679148143953185957</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-2344356294223010471.post-2751890092237638945</id><published>2014-01-03T11:19:00.006+01:00</published><updated>2014-01-03T11:22:28.306+01:00</updated><title type='text'>How to download entire Youtube channel using commands in ubuntu</title><content type='html'>Use &lt;span style=&quot;color: blue;&quot;&gt;youtube-dl&lt;/span&gt; command to download videos straight off of YouTube. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install it:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;apt-get install youtube-dl&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To download an entire channel&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;youtube-dl -citw ytuser:&lt;span style=&quot;color: red;&quot;&gt;USER&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;user&gt;&lt;/user&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To download all videos on a playlist:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;youtube-dl -citw &lt;span style=&quot;color: red;&quot;&gt;PLAYLIST-URL&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; &lt;playlist url=&quot;&quot;&gt;&lt;/playlist&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://mtehrani30.blogspot.com/feeds/2751890092237638945/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2344356294223010471/2751890092237638945?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/2751890092237638945'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/2751890092237638945'/><link rel='alternate' type='text/html' href='http://mtehrani30.blogspot.com/2014/01/how-to-download-entire-youtube-channel.html' title='How to download entire Youtube channel using commands in ubuntu'/><author><name>Tehrani</name><uri>http://www.blogger.com/profile/01679148143953185957</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-2344356294223010471.post-3909817208389079769</id><published>2013-10-24T14:06:00.000+02:00</published><updated>2013-10-24T14:08:03.015+02:00</updated><title type='text'>QMail Changing send IP</title><content type='html'>The default IP for outgoing connections can be set using the &quot;&lt;span style=&quot;color: #38761d;&quot;&gt;ip&lt;/span&gt;&quot; utility. Check how routing is configured on the server:&lt;br /&gt;
&lt;br /&gt;
assume we have two network interfaces &lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;vnet0:0&lt;/span&gt; &lt;/span&gt;(&lt;span style=&quot;color: red;&quot;&gt;192.168.175.100&lt;/span&gt;)&amp;nbsp; and &lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;vnet0:1&lt;/span&gt; &lt;/span&gt;(&lt;span style=&quot;color: red;&quot;&gt;192.168.175.200&lt;/span&gt;) and &lt;span style=&quot;color: red;&quot;&gt;192.168.175.1&lt;/span&gt; is gateway:&lt;br /&gt;
&lt;br /&gt;
[root@server]#&lt;span style=&quot;color: #38761d;&quot;&gt;/sbin/ip route&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;192.168.175.0/24 dev venet0&amp;nbsp;&amp;nbsp;scope host&lt;br /&gt;
169.254.0.0/16 dev venet0&amp;nbsp;&amp;nbsp;scope link&lt;br /&gt;
default via 199.168.175.1 dev venet0&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If no &quot;src&quot; is listed in the &quot;&lt;span style=&quot;color: #38761d;&quot;&gt;ip&lt;/span&gt;&quot; output for the default route, the main IP on the interface is used for outgoing connections.&lt;br /&gt;
&lt;br /&gt;
To change Plesk default Mail IP address, check &lt;span style=&quot;color: #38761d;&quot;&gt;ifconfig&lt;/span&gt; on the server first as :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;lo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Link encap:Lokale Schleife&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inet Adresse:127.0.0.1&amp;nbsp; Maske:255.0.0.0&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inet6 Adresse: ::1/128 Gültigkeitsbereich:Maschine&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UP LOOPBACK RUNNING&amp;nbsp; MTU:16436&amp;nbsp; Metric:1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RX packets:898825 errors:0 dropped:0 overruns:0 frame:0&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TX packets:898825 errors:0 dropped:0 overruns:0 carrier:0&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; collisions:0 Sendewarteschlangenlänge:0 &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RX bytes:2333074597 (2224.9 Mb)&amp;nbsp; TX bytes:2333074597 (2224.9 Mb)&lt;br /&gt;&lt;br /&gt;venet0&amp;nbsp;&amp;nbsp;&amp;nbsp; Link encap:UNSPEC&amp;nbsp; Hardware Adresse 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inet Adresse:127.0.0.1&amp;nbsp; P-z-P:127.0.0.1&amp;nbsp; Bcast:0.0.0.0&amp;nbsp; Maske:255.255.255.255&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UP BROADCAST PUNKTZUPUNKT RUNNING NOARP&amp;nbsp; MTU:1500&amp;nbsp; Metric:1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RX packets:69429506 errors:0 dropped:0 overruns:0 frame:0&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TX packets:109230137 errors:0 dropped:0 overruns:0 carrier:0&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; collisions:0 Sendewarteschlangenlänge:0 &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RX bytes:19231956377 (18341.0 Mb)&amp;nbsp; TX bytes:136258969119 (129946.6 Mb)&lt;br /&gt;&lt;br /&gt;venet0:0&amp;nbsp; Link encap:UNSPEC&amp;nbsp; Hardware Adresse 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inet Adresse:&lt;span style=&quot;color: blue;&quot;&gt;192.168.175.100&lt;/span&gt;&amp;nbsp; P-z-P:&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;92.168.175.100&lt;/span&gt;&amp;nbsp; Bcast:0.0.0.0&amp;nbsp; Maske:255.255.255.255&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UP BROADCAST PUNKTZUPUNKT RUNNING NOARP&amp;nbsp; MTU:1500&amp;nbsp; Metric:1&lt;br /&gt;&lt;br /&gt;venet0:1&amp;nbsp; Link encap:UNSPEC&amp;nbsp; Hardware Adresse 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inet Adresse:&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;192.168.175.&lt;span style=&quot;font-size: x-small;&quot;&gt;2&lt;/span&gt;00&lt;/span&gt;&lt;/span&gt;&amp;nbsp; P-z-P:&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;92.168.175.200&lt;/span&gt;&amp;nbsp; Bcast:0.0.0.0&amp;nbsp; Maske:255.255.255.255&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UP BROADCAST PUNKTZUPUNKT RUNNING NOARP&amp;nbsp; MTU:1500&amp;nbsp; Metric:1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Change the mail IP address through following command as :&lt;br /&gt;
&lt;br /&gt;
[root@server]#&lt;span style=&quot;color: #38761d;&quot;&gt;/sbin/ip route change default via &lt;span style=&quot;color: red;&quot;&gt;192.168.175.1&lt;/span&gt; dev venet0:1 src &lt;span style=&quot;color: red;&quot;&gt;192.168.175.200&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
now verify the mail IP address :&lt;br /&gt;
&lt;br /&gt;
[root@server]#&lt;span style=&quot;color: #38761d;&quot;&gt;/sbin/ip route&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;192.168.175.0/24 dev venet0&amp;nbsp;&amp;nbsp;scope host&lt;br /&gt;
169.254.0.0/16 dev venet0&amp;nbsp;&amp;nbsp;scope link&lt;br /&gt;default via 192.168.175.1 dev venet0&amp;nbsp;&amp;nbsp;src192.168.175.200&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If &quot;&lt;span style=&quot;color: #38761d;&quot;&gt;ip route&lt;/span&gt;&quot; command says nothing about gateway or gateway is 0.0.0.0, for example like this one:&lt;br /&gt;
&lt;br /&gt;
[root@server]#&lt;span style=&quot;color: #38761d;&quot;&gt;/sbin/ip route&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;127.0.0.0/8 dev lo&amp;nbsp; scope link &lt;br /&gt;default dev venet0&amp;nbsp; scope link&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
you can use this command:&lt;br /&gt;
&lt;br /&gt;
[root@server]#&lt;span style=&quot;color: #38761d;&quot;&gt;/sbin/ip route change default via &lt;span style=&quot;color: red;&quot;&gt;192.168.175.100&lt;/span&gt; dev venet0 src &lt;span style=&quot;color: red;&quot;&gt;192.168.175.200&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://mtehrani30.blogspot.com/feeds/3909817208389079769/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2344356294223010471/3909817208389079769?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/3909817208389079769'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/3909817208389079769'/><link rel='alternate' type='text/html' href='http://mtehrani30.blogspot.com/2013/10/qmail-changing-send-ip.html' title='QMail Changing send IP'/><author><name>Tehrani</name><uri>http://www.blogger.com/profile/01679148143953185957</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-2344356294223010471.post-2397540993627684466</id><published>2013-09-05T15:28:00.002+02:00</published><updated>2014-01-03T11:24:40.576+01:00</updated><title type='text'>Useful commands with ffmpeg </title><content type='html'>&lt;span style=&quot;color: #0b5394;&quot;&gt;Converting mp4 to flv:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;ffmpeg -i&lt;/span&gt; &lt;span style=&quot;color: #cc0000;&quot;&gt;INPUT.mp4&lt;/span&gt; &lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;-vcodec copy -acodec aac -strict experimental -ac 2 -ar 44100 -ab 192k&lt;/span&gt; &lt;span style=&quot;color: #cc0000;&quot;&gt;OUTPUT.flv&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;Deleting logo from video:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;ffmpeg -sameq -i &lt;/span&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;INPUT.flv&lt;/span&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;  -vf &quot;delogo=x=&lt;/span&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;:y=&lt;/span&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;:w=&lt;/span&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;80&lt;/span&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;:h=&lt;/span&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;60&lt;/span&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;:band=&lt;/span&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;80&lt;/span&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;:show=&lt;/span&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&quot; -vcodec flv -acodec copy &lt;/span&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;OUTPUT.flv&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
this command deletes the logo which exists at &lt;span style=&quot;color: #cc0000;&quot;&gt;x=10&lt;/span&gt; and &lt;span style=&quot;color: #cc0000;&quot;&gt;y=10&lt;/span&gt; (x=0 and y=0 is top left). &lt;span style=&quot;color: #cc0000;&quot;&gt;h&lt;/span&gt; is height and &lt;span style=&quot;color: #cc0000;&quot;&gt;w&lt;/span&gt; is width. You can use &lt;span style=&quot;color: #cc0000;&quot;&gt;show=1&lt;/span&gt; to see the location of deleted logo.&lt;br /&gt;
&lt;br /&gt;
Crop video:&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;ffmpeg -sameq -i &lt;/span&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;INPUT.flv&lt;/span&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;  -vf &quot;crop=&lt;span style=&quot;color: #cc0000;&quot;&gt;WIDTH:HEIGHT&lt;/span&gt;&quot; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;OUTPUT.flv&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://mtehrani30.blogspot.com/feeds/2397540993627684466/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2344356294223010471/2397540993627684466?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/2397540993627684466'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/2397540993627684466'/><link rel='alternate' type='text/html' href='http://mtehrani30.blogspot.com/2013/09/useful-commands-with-ffmpeg.html' title='Useful commands with ffmpeg '/><author><name>Tehrani</name><uri>http://www.blogger.com/profile/01679148143953185957</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-2344356294223010471.post-6561662050979207409</id><published>2013-07-11T15:15:00.001+02:00</published><updated>2013-07-11T15:22:43.312+02:00</updated><title type='text'>Amazon AWS - Changing dynamically Apache Log File name based on Hostname</title><content type='html'>Change your vhost apache config as follow (the LogFormat writes correct client IPs to log):&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;&lt;span style=&quot;color: #45818e;&quot;&gt;LogFormat&lt;/span&gt; &lt;span style=&quot;color: #cc0000;&quot;&gt;&quot;\&quot;%{X-Forwarded-For}i\&quot; %l %u %t \&quot;%r\&quot; %&amp;gt;s %b \&quot;%{Referer}i\&quot; \&quot;%{User-Agent}i\&quot;&quot;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;combined_new&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;&lt;code&gt;&lt;span style=&quot;color: #45818e;&quot;&gt;CustomLog&lt;/span&gt; &lt;span style=&quot;color: #cc0000;&quot;&gt;&quot;|cat &amp;gt;&amp;gt; /shared/log/apache2/`hostname`-access.log&quot;&lt;/span&gt; &lt;/code&gt;&lt;/code&gt;&lt;code&gt;&lt;span style=&quot;color: blue;&quot;&gt;combined_new&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://mtehrani30.blogspot.com/feeds/6561662050979207409/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2344356294223010471/6561662050979207409?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/6561662050979207409'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/6561662050979207409'/><link rel='alternate' type='text/html' href='http://mtehrani30.blogspot.com/2013/07/amazon-aws-changing-dynamically-apache.html' title='Amazon AWS - Changing dynamically Apache Log File name based on Hostname'/><author><name>Tehrani</name><uri>http://www.blogger.com/profile/01679148143953185957</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-2344356294223010471.post-5915775818001804342</id><published>2013-07-02T14:20:00.003+02:00</published><updated>2013-07-02T14:20:14.436+02:00</updated><title type='text'>Mysqldump only tables with certain prefix / Mysqldump wildcards</title><content type='html'>This commans will dump the tables with prefix PREFIX:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;mysql &lt;span style=&quot;color: red;&quot;&gt;DATABASE&lt;/span&gt; -u &lt;span style=&quot;color: red;&quot;&gt;USERNAME&lt;/span&gt; -p -e &#39;show tables like &quot;&lt;span style=&quot;color: red;&quot;&gt;PREFIX&lt;/span&gt;%&quot;&#39; | grep -v Tables_in | xargs mysqldump &lt;span style=&quot;color: red;&quot;&gt;DATABASE&lt;/span&gt; -u &lt;span style=&quot;color: red;&quot;&gt;USERNAME&lt;/span&gt; -p &amp;gt; &lt;span style=&quot;color: red;&quot;&gt;DUMP.sql&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://mtehrani30.blogspot.com/feeds/5915775818001804342/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2344356294223010471/5915775818001804342?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/5915775818001804342'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/5915775818001804342'/><link rel='alternate' type='text/html' href='http://mtehrani30.blogspot.com/2013/07/mysqldump-only-tables-with-certain.html' title='Mysqldump only tables with certain prefix / Mysqldump wildcards'/><author><name>Tehrani</name><uri>http://www.blogger.com/profile/01679148143953185957</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-2344356294223010471.post-4158397299473645261</id><published>2013-06-17T17:06:00.002+02:00</published><updated>2013-06-17T17:06:50.082+02:00</updated><title type='text'>Install ia32-libs in Debian Wheezy</title><content type='html'>&lt;div class=&quot;post-text&quot;&gt;
Since Wheezy introduces multiarch, the &lt;span style=&quot;color: blue;&quot;&gt;&lt;code&gt;ia32-libs&lt;/code&gt;&lt;/span&gt; package in now deprecated. It is now possible to install &lt;span style=&quot;color: red;&quot;&gt;32bit&lt;/span&gt; packages directly:&lt;code&gt; &lt;/code&gt;&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;dpkg --add-architecture i386&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;# enable multi-arch&lt;/span&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;apt-get update
apt-get install libc6:i386&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;# install base 32bit libraries&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://mtehrani30.blogspot.com/feeds/4158397299473645261/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2344356294223010471/4158397299473645261?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/4158397299473645261'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2344356294223010471/posts/default/4158397299473645261'/><link rel='alternate' type='text/html' href='http://mtehrani30.blogspot.com/2013/06/install-ia32-libs-in-debian-wheezy.html' title='Install ia32-libs in Debian Wheezy'/><author><name>Tehrani</name><uri>http://www.blogger.com/profile/01679148143953185957</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>