<?xml version="1.0" encoding="utf-8"?> 
<rss version="2.0"
  xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
  xmlns:atom="http://www.w3.org/2005/Atom">

<channel>

<title>Discover Docker, K8s and Hashicorp Nomad with Maksym Prokopov: posts tagged lifehack</title>
<link>https://blog.it-premium.com.ua/tags/lifehack/</link>
<description>The blog about containerisation, virtual machines and useful shell snippets and findings</description>
<author></author>
<language>en</language>
<generator>Aegea 11.3 (v4134)</generator>

<itunes:subtitle>The blog about containerisation, virtual machines and useful shell snippets and findings</itunes:subtitle>
<itunes:image href="" />
<itunes:explicit></itunes:explicit>

<item>
<title>find all and empty log files oneliner</title>
<guid isPermaLink="false">236</guid>
<link>https://blog.it-premium.com.ua/all/find-all-and-empty-log-files-oneliner/</link>
<pubDate>Fri, 17 Sep 2021 08:32:19 +0100</pubDate>
<author></author>
<comments>https://blog.it-premium.com.ua/all/find-all-and-empty-log-files-oneliner/</comments>
<description>
&lt;pre class="e2-text-code"&gt;&lt;code class=""&gt;find . -name *.log | xargs truncate -s0&lt;/code&gt;&lt;/pre&gt;</description>
</item>

<item>
<title>copy files having search string to the target folder</title>
<guid isPermaLink="false">230</guid>
<link>https://blog.it-premium.com.ua/all/copy-files-having-search-string-to-the-target-folder/</link>
<pubDate>Tue, 17 Nov 2020 17:06:45 +0100</pubDate>
<author></author>
<comments>https://blog.it-premium.com.ua/all/copy-files-having-search-string-to-the-target-folder/</comments>
<description>
&lt;p&gt;let’s say you have &lt;Active&gt;true&lt;/Active&gt; in the hundreds of files and you need to copy only those which contain this string, it is quite easy to do with Linux find utility&lt;/p&gt;
&lt;pre class="e2-text-code"&gt;&lt;code class=""&gt;grep -l -ri -m1 &amp;quot;Active&amp;gt;true&amp;quot; */*.xml | xargs -I {} cp {} target_folder&lt;/code&gt;&lt;/pre&gt;</description>
</item>

<item>
<title>rsync через ssh</title>
<guid isPermaLink="false">114</guid>
<link>https://blog.it-premium.com.ua/all/rsync-cherez-ssh-2/</link>
<pubDate>Tue, 12 Jul 2016 14:05:22 +0100</pubDate>
<author></author>
<comments>https://blog.it-premium.com.ua/all/rsync-cherez-ssh-2/</comments>
<description>
&lt;p&gt;Не знали, как запустить rsync через нестандартный порт (при работе через SSH, без ответного Rsync демона на сервере)?&lt;/p&gt;
&lt;p&gt;Теперь знайте:&lt;/p&gt;
&lt;p&gt;rsync -avz -e “ssh -p 12345” ./public_html/ username@yourserver.com:/var/www/html/&lt;br /&gt;
Здесь 12345 – номер порта, username – ваш логин и yourserver.com – доменное имя или IP вашего сервера.&lt;/p&gt;
&lt;p&gt;Пришлось немного повозиться с чтением манов и поэкспериментировать. Надеюсь, кому-то сэкономит время.&lt;/p&gt;
</description>
</item>

<item>
<title>rsync через ssh</title>
<guid isPermaLink="false">115</guid>
<link>https://blog.it-premium.com.ua/all/rsync-cherez-ssh/</link>
<pubDate>Mon, 23 May 2016 14:22:26 +0100</pubDate>
<author></author>
<comments>https://blog.it-premium.com.ua/all/rsync-cherez-ssh/</comments>
<description>
&lt;p&gt;Не знали, как запустить rsync через нестандартный порт (при работе через SSH, без ответного Rsync демона на сервере)?&lt;/p&gt;
&lt;p&gt;Теперь знайте:&lt;/p&gt;
&lt;pre class="e2-text-code"&gt;&lt;code class=""&gt;rsync -avz -e &amp;quot;ssh -p 12345&amp;quot; ./public_html/ username@yourserver.com:/var/www/html/&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Здесь 12345 – номер порта, username – ваш логин и yourserver.com – доменное имя или IP вашего сервера.&lt;/p&gt;
&lt;p&gt;Пришлось немного повозиться с чтением манов и поэкспериментировать. Надеюсь, кому-то сэкономит время.&lt;/p&gt;
</description>
</item>


</channel>
</rss>