<?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-5675160100054461720</id><updated>2026-10-23T03:20:46.250+03:00</updated><category term="fedora"/><category term="fedora 15"/><category term="fedora 16"/><category term="fedora 20"/><category term="fedora 17"/><category term="fedora 18"/><category term="fedora 19"/><category term="bash"/><category term="django"/><category term="python"/><category term="firefox"/><category term="gnome shell"/><category term="openSUSE"/><category term="Python27"/><category term="Windows XP"/><category term="git"/><category term="nvidia"/><category term="debian"/><category term="flask"/><category term="mitmproxy"/><category term="network"/><category term="postgresql"/><category term="lxd"/><category term="ssh"/><category term="ubuntu"/><category term="vagrant"/><category term="Навiны"/><category term="Pidgin"/><category term="PythonAnywhere"/><category term="byobu"/><category term="dnf"/><category term="dnsmasq"/><category term="grub"/><category term="komodo"/><category term="monitor"/><category term="mysql"/><category term="netstat"/><category term="simple blogger"/><category term="sqlalchemy"/><category term="systemd"/><category term="virtualbox"/><category term="vlc"/><category term="vscode"/><category term="wx"/><category term="AutoCAD"/><category term="Music"/><category term="OpenOffice"/><category term="SciPy"/><category term="apiary"/><category term="apt-get"/><category term="atom"/><category term="battery"/><category term="cheatsheet"/><category term="chrome"/><category term="curl"/><category term="dell"/><category term="dlna"/><category term="eclipse"/><category term="efi"/><category term="epiphany"/><category term="firewalld"/><category term="fonts"/><category term="gjs"/><category term="gmail"/><category term="gnome"/><category term="go"/><category term="gunicorn"/><category term="health"/><category term="hipchat"/><category term="http2"/><category term="intel"/><category term="isort"/><category term="javascript"/><category term="jhbuild"/><category term="jshint"/><category term="kindle"/><category term="log"/><category term="machine vision"/><category term="minidlnad"/><category term="nginx"/><category term="nunjucks"/><category term="pip"/><category term="pulseaudio"/><category term="pyqt"/><category term="redshift"/><category term="route"/><category term="rygel"/><category term="sh"/><category term="simplecv"/><category term="skype"/><category term="smartgit"/><category term="snap"/><category term="sqlite"/><category term="ssl"/><category term="suspend"/><category term="tagrider"/><category term="tar"/><category term="toshiba"/><category term="vim"/><category term="vpn"/><category term="websocket"/><category term="wifi"/><category term="windows"/><category term="wireshark"/><category term="x11"/><category term="yum"/><title type='text'>Tech Tips</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://jsn-techtips.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://jsn-techtips.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Yauhen Shulitski</name><uri>http://www.blogger.com/profile/15037212126832679606</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFLU6_drxcSCYppz9sL7AHMoJV3x5RNOCMdEF8YzEHoL9naAgaTTYP6rTbT4eRvb9uBv2qdPyskZijc1nTheJnwqUPRWM_ba86ZaC2q3FzS_h1bLqY8rrZm80fRi6yQg/s220/2013_prague.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>271</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5675160100054461720.post-107945097923025279</id><published>2020-06-14T23:27:00.001+03:00</published><updated>2020-06-14T23:27:48.562+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="go"/><category scheme="http://www.blogger.com/atom/ns#" term="vscode"/><title type='text'>Unable to rename in go projects in vscode</title><content type='html'>vscode used to use gorename to do the renames. However, gorename does not support go modules. gopls should be used instead. If it is not available to your project, try to add the following in your configuration file:
&lt;code&gt;
  &lt;pre&gt;
&quot;go.languageServerExperimentalFeatures&quot;: {
    &quot;rename&quot;: true
}
&lt;/pre&gt;
&lt;/code&gt;</content><link rel='replies' type='application/atom+xml' href='http://jsn-techtips.blogspot.com/feeds/107945097923025279/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jsn-techtips.blogspot.com/2020/06/unable-to-rename-in-go-projects-in.html#comment-form' title='12 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/107945097923025279'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/107945097923025279'/><link rel='alternate' type='text/html' href='http://jsn-techtips.blogspot.com/2020/06/unable-to-rename-in-go-projects-in.html' title='Unable to rename in go projects in vscode'/><author><name>Yauhen Shulitski</name><uri>http://www.blogger.com/profile/15037212126832679606</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFLU6_drxcSCYppz9sL7AHMoJV3x5RNOCMdEF8YzEHoL9naAgaTTYP6rTbT4eRvb9uBv2qdPyskZijc1nTheJnwqUPRWM_ba86ZaC2q3FzS_h1bLqY8rrZm80fRi6yQg/s220/2013_prague.png'/></author><thr:total>12</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5675160100054461720.post-7034903142423836169</id><published>2020-03-22T20:39:00.001+03:00</published><updated>2020-03-22T20:39:21.181+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="suspend"/><category scheme="http://www.blogger.com/atom/ns#" term="systemd"/><category scheme="http://www.blogger.com/atom/ns#" term="vpn"/><title type='text'>Run command on suspend</title><content type='html'>Create a file located in /usr/lib/systemd/system-sleep directory:
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class=&quot;ch&quot;&gt;#!/bin/sh&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;${&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&amp;quot;pre&amp;quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;then&lt;/span&gt;
  nordvpn d
&lt;span class=&quot;k&quot;&gt;elif&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;${&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&amp;quot;post&amp;quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;then&lt;/span&gt;
  &lt;span class=&quot;nb&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&amp;quot;Hello&amp;quot;&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;fi&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jsn-techtips.blogspot.com/feeds/7034903142423836169/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jsn-techtips.blogspot.com/2020/03/run-command-on-suspend.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/7034903142423836169'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/7034903142423836169'/><link rel='alternate' type='text/html' href='http://jsn-techtips.blogspot.com/2020/03/run-command-on-suspend.html' title='Run command on suspend'/><author><name>Yauhen Shulitski</name><uri>http://www.blogger.com/profile/15037212126832679606</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFLU6_drxcSCYppz9sL7AHMoJV3x5RNOCMdEF8YzEHoL9naAgaTTYP6rTbT4eRvb9uBv2qdPyskZijc1nTheJnwqUPRWM_ba86ZaC2q3FzS_h1bLqY8rrZm80fRi6yQg/s220/2013_prague.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5675160100054461720.post-7477537150643736919</id><published>2020-03-03T18:21:00.001+03:00</published><updated>2020-03-03T18:21:50.584+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="route"/><title type='text'>Debug route table</title><content type='html'>List all routes in system:
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;route -n
&lt;/pre&gt;&lt;/div&gt;
Get route for a specific IP:
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;ip route get &lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;.1.1.1
&lt;/pre&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jsn-techtips.blogspot.com/feeds/7477537150643736919/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jsn-techtips.blogspot.com/2020/03/debug-route-table.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/7477537150643736919'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/7477537150643736919'/><link rel='alternate' type='text/html' href='http://jsn-techtips.blogspot.com/2020/03/debug-route-table.html' title='Debug route table'/><author><name>Yauhen Shulitski</name><uri>http://www.blogger.com/profile/15037212126832679606</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFLU6_drxcSCYppz9sL7AHMoJV3x5RNOCMdEF8YzEHoL9naAgaTTYP6rTbT4eRvb9uBv2qdPyskZijc1nTheJnwqUPRWM_ba86ZaC2q3FzS_h1bLqY8rrZm80fRi6yQg/s220/2013_prague.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5675160100054461720.post-68270601603145531</id><published>2020-03-03T13:21:00.001+03:00</published><updated>2020-03-03T13:21:54.037+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="firewalld"/><title type='text'>Log denied connections in firewalld</title><content type='html'>Edit filr /etc/sysconfig/firewalld:
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;FIREWALLD_ARGS&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;--debug&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;10&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jsn-techtips.blogspot.com/feeds/68270601603145531/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jsn-techtips.blogspot.com/2020/03/log-denied-connections-in-firewalld.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/68270601603145531'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/68270601603145531'/><link rel='alternate' type='text/html' href='http://jsn-techtips.blogspot.com/2020/03/log-denied-connections-in-firewalld.html' title='Log denied connections in firewalld'/><author><name>Yauhen Shulitski</name><uri>http://www.blogger.com/profile/15037212126832679606</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFLU6_drxcSCYppz9sL7AHMoJV3x5RNOCMdEF8YzEHoL9naAgaTTYP6rTbT4eRvb9uBv2qdPyskZijc1nTheJnwqUPRWM_ba86ZaC2q3FzS_h1bLqY8rrZm80fRi6yQg/s220/2013_prague.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5675160100054461720.post-4009088620840656576</id><published>2020-02-14T18:13:00.001+03:00</published><updated>2020-02-14T18:13:36.163+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bash"/><category scheme="http://www.blogger.com/atom/ns#" term="network"/><category scheme="http://www.blogger.com/atom/ns#" term="ssh"/><title type='text'>Wait until able to connect</title><content type='html'>&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;while&lt;/span&gt; ! nc -w5 -z &lt;span class=&quot;m&quot;&gt;10&lt;/span&gt;.0.0.100 &lt;span class=&quot;m&quot;&gt;22&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&amp;quot;hello&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;done&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jsn-techtips.blogspot.com/feeds/4009088620840656576/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jsn-techtips.blogspot.com/2020/02/wait-until-able-to-connect.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/4009088620840656576'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/4009088620840656576'/><link rel='alternate' type='text/html' href='http://jsn-techtips.blogspot.com/2020/02/wait-until-able-to-connect.html' title='Wait until able to connect'/><author><name>Yauhen Shulitski</name><uri>http://www.blogger.com/profile/15037212126832679606</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFLU6_drxcSCYppz9sL7AHMoJV3x5RNOCMdEF8YzEHoL9naAgaTTYP6rTbT4eRvb9uBv2qdPyskZijc1nTheJnwqUPRWM_ba86ZaC2q3FzS_h1bLqY8rrZm80fRi6yQg/s220/2013_prague.png'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5675160100054461720.post-8722095328450038598</id><published>2020-02-14T18:12:00.001+03:00</published><updated>2020-02-14T18:12:00.745+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bash"/><title type='text'>Log executed command</title><content type='html'>&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;14&lt;/span&gt;:27 $ &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;set&lt;/span&gt; -x&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; sleep &lt;span class=&quot;m&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; sleep &lt;span class=&quot;m&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
+ sleep &lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;
+ sleep &lt;span class=&quot;m&quot;&gt;2&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jsn-techtips.blogspot.com/feeds/8722095328450038598/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jsn-techtips.blogspot.com/2020/02/log-executed-command.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/8722095328450038598'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/8722095328450038598'/><link rel='alternate' type='text/html' href='http://jsn-techtips.blogspot.com/2020/02/log-executed-command.html' title='Log executed command'/><author><name>Yauhen Shulitski</name><uri>http://www.blogger.com/profile/15037212126832679606</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFLU6_drxcSCYppz9sL7AHMoJV3x5RNOCMdEF8YzEHoL9naAgaTTYP6rTbT4eRvb9uBv2qdPyskZijc1nTheJnwqUPRWM_ba86ZaC2q3FzS_h1bLqY8rrZm80fRi6yQg/s220/2013_prague.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5675160100054461720.post-1488887123792949321</id><published>2020-01-30T15:46:00.001+03:00</published><updated>2020-01-30T15:46:26.814+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="fedora"/><category scheme="http://www.blogger.com/atom/ns#" term="netstat"/><category scheme="http://www.blogger.com/atom/ns#" term="network"/><title type='text'>Check and modify connection mtu</title><content type='html'>To check:
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;root@lxd-node3 ~&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;# netstat -i&lt;/span&gt;
Kernel Interface table
Iface             MTU    RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP TX-OVR Flg
ens10            &lt;span class=&quot;m&quot;&gt;1450&lt;/span&gt;      &lt;span class=&quot;m&quot;&gt;455&lt;/span&gt;      &lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;      &lt;span class=&quot;m&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;           &lt;span class=&quot;m&quot;&gt;671&lt;/span&gt;      &lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;      &lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;      &lt;span class=&quot;m&quot;&gt;0&lt;/span&gt; BMRU
eth0             &lt;span class=&quot;m&quot;&gt;1500&lt;/span&gt;       &lt;span class=&quot;m&quot;&gt;28&lt;/span&gt;      &lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;      &lt;span class=&quot;m&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;            &lt;span class=&quot;m&quot;&gt;32&lt;/span&gt;      &lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;      &lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;      &lt;span class=&quot;m&quot;&gt;0&lt;/span&gt; BMRU
lo              &lt;span class=&quot;m&quot;&gt;65536&lt;/span&gt;        &lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;      &lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;      &lt;span class=&quot;m&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;             &lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;      &lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;      &lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;      &lt;span class=&quot;m&quot;&gt;0&lt;/span&gt; LRU
&lt;/pre&gt;&lt;/div&gt;
Modify temporarily:
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;ifconfig eth0 mtu &lt;span class=&quot;m&quot;&gt;1450&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
Permanently: edit /etc/sysconfig/network-scripts/ifcfg-eth0 file and add:
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;MTU&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;1450&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


</content><link rel='replies' type='application/atom+xml' href='http://jsn-techtips.blogspot.com/feeds/1488887123792949321/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jsn-techtips.blogspot.com/2020/01/check-and-modify-connection-mtu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/1488887123792949321'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/1488887123792949321'/><link rel='alternate' type='text/html' href='http://jsn-techtips.blogspot.com/2020/01/check-and-modify-connection-mtu.html' title='Check and modify connection mtu'/><author><name>Yauhen Shulitski</name><uri>http://www.blogger.com/profile/15037212126832679606</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFLU6_drxcSCYppz9sL7AHMoJV3x5RNOCMdEF8YzEHoL9naAgaTTYP6rTbT4eRvb9uBv2qdPyskZijc1nTheJnwqUPRWM_ba86ZaC2q3FzS_h1bLqY8rrZm80fRi6yQg/s220/2013_prague.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5675160100054461720.post-129707089676339119</id><published>2020-01-23T14:52:00.001+03:00</published><updated>2020-01-23T14:52:49.170+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="lxd"/><category scheme="http://www.blogger.com/atom/ns#" term="snap"/><title type='text'>lxd: Fix version in snap</title><content type='html'>&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt; snap refresh lxd --channel&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;3&lt;/span&gt;.18
&lt;/pre&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jsn-techtips.blogspot.com/feeds/129707089676339119/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jsn-techtips.blogspot.com/2020/01/lxd-fix-version-in-snap.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/129707089676339119'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/129707089676339119'/><link rel='alternate' type='text/html' href='http://jsn-techtips.blogspot.com/2020/01/lxd-fix-version-in-snap.html' title='lxd: Fix version in snap'/><author><name>Yauhen Shulitski</name><uri>http://www.blogger.com/profile/15037212126832679606</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFLU6_drxcSCYppz9sL7AHMoJV3x5RNOCMdEF8YzEHoL9naAgaTTYP6rTbT4eRvb9uBv2qdPyskZijc1nTheJnwqUPRWM_ba86ZaC2q3FzS_h1bLqY8rrZm80fRi6yQg/s220/2013_prague.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5675160100054461720.post-1467510040604892870</id><published>2020-01-23T00:16:00.001+03:00</published><updated>2020-01-23T00:16:43.256+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="dnf"/><category scheme="http://www.blogger.com/atom/ns#" term="fedora"/><title type='text'>fedora: Lockdown a kernel version</title><content type='html'>Fedora typically keeps 3 latest kernel versions. However, what if you want to keep an old specific kernel version which is known to work well with your system?

First, we need to install a dnf plugin that allows us to keep a specific version of any package:
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;sudo dnf install python3-dnf-plugins-extras-versionlock
&lt;/pre&gt;&lt;/div&gt;

Lets find all available kernel versions for your system:
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;sudo dnf list kernel --showduplicates
&lt;/pre&gt;&lt;/div&gt;

Install that specific version of the kernel:
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;sudo dnf install kernel-5.3.7-301.fc31
&lt;/pre&gt;&lt;/div&gt;

And lock it:
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;sudo dnf versionlock add kernel-5.3.7-301.fc31
&lt;/pre&gt;&lt;/div&gt;

To remove the lock:
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;sudo dnf versionlock delete kernel-5.3.7-301.fc31
&lt;/pre&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jsn-techtips.blogspot.com/feeds/1467510040604892870/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jsn-techtips.blogspot.com/2020/01/fedora-lockdown-kernel-version_23.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/1467510040604892870'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/1467510040604892870'/><link rel='alternate' type='text/html' href='http://jsn-techtips.blogspot.com/2020/01/fedora-lockdown-kernel-version_23.html' title='fedora: Lockdown a kernel version'/><author><name>Yauhen Shulitski</name><uri>http://www.blogger.com/profile/15037212126832679606</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFLU6_drxcSCYppz9sL7AHMoJV3x5RNOCMdEF8YzEHoL9naAgaTTYP6rTbT4eRvb9uBv2qdPyskZijc1nTheJnwqUPRWM_ba86ZaC2q3FzS_h1bLqY8rrZm80fRi6yQg/s220/2013_prague.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5675160100054461720.post-7034746052327486199</id><published>2020-01-02T18:10:00.001+03:00</published><updated>2020-01-02T18:10:21.670+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="battery"/><category scheme="http://www.blogger.com/atom/ns#" term="dell"/><category scheme="http://www.blogger.com/atom/ns#" term="fedora"/><title type='text'>Dell Precision 5540 - Battery drains in sleep mode</title><content type='html'>Run the following command to check the suspend mode:
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;cat /sys/power/mem_sleep 
&lt;/pre&gt;&lt;/div&gt;
If the output looks like this:
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;s2idle&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt; deep
&lt;/pre&gt;&lt;/div&gt;
It means that very inefficient suspend mode is active (drains battery from 100% to 0 in 9 hours).

To enable  &quot;deep&quot; mode, edit file /etc/default/grub and append &quot;mem_sleep_default=deep&quot; to GRUB_CMDLINE_LINUX:
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;GRUB_TIMEOUT&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;5&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;GRUB_DISTRIBUTOR&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;$(&lt;/span&gt;sed &lt;span class=&quot;s1&quot;&gt;&amp;#39;s, release .*$,,g&amp;#39;&lt;/span&gt; /etc/system-release&lt;span class=&quot;k&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;GRUB_DEFAULT&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;saved
&lt;span class=&quot;nv&quot;&gt;GRUB_DISABLE_SUBMENU&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;true&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;GRUB_TERMINAL_OUTPUT&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;console&amp;quot;&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;GRUB_CMDLINE_LINUX&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap rhgb quiet mem_sleep_default=deep&amp;quot;&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;GRUB_DISABLE_RECOVERY&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;true&amp;quot;&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;GRUB_ENABLE_BLSCFG&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;true&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
Apply changes:
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
&lt;/pre&gt;&lt;/div&gt;
Restart your laptop and verify changes:
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;$ cat /sys/power/mem_sleep 
s2idle &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;deep&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


</content><link rel='replies' type='application/atom+xml' href='http://jsn-techtips.blogspot.com/feeds/7034746052327486199/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jsn-techtips.blogspot.com/2020/01/dell-precision-5540-battery-drains-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/7034746052327486199'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/7034746052327486199'/><link rel='alternate' type='text/html' href='http://jsn-techtips.blogspot.com/2020/01/dell-precision-5540-battery-drains-in.html' title='Dell Precision 5540 - Battery drains in sleep mode'/><author><name>Yauhen Shulitski</name><uri>http://www.blogger.com/profile/15037212126832679606</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFLU6_drxcSCYppz9sL7AHMoJV3x5RNOCMdEF8YzEHoL9naAgaTTYP6rTbT4eRvb9uBv2qdPyskZijc1nTheJnwqUPRWM_ba86ZaC2q3FzS_h1bLqY8rrZm80fRi6yQg/s220/2013_prague.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5675160100054461720.post-3872087578158195194</id><published>2019-12-23T16:02:00.001+03:00</published><updated>2019-12-23T16:02:20.134+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="lxd"/><title type='text'>Increase storage of a lxd container</title><content type='html'>By default lxd stopped to assign root (disk) device to a container. To modify storage volume of a container add a device like this:
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;lxc config device add surflyc root disk &lt;span class=&quot;nv&quot;&gt;pool&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;default &lt;span class=&quot;nv&quot;&gt;path&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;/ &lt;span class=&quot;nv&quot;&gt;size&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;15GB
&lt;/pre&gt;&lt;/div&gt;
Restart the container to apply changes.


</content><link rel='replies' type='application/atom+xml' href='http://jsn-techtips.blogspot.com/feeds/3872087578158195194/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jsn-techtips.blogspot.com/2019/12/increase-storage-of-lxd-container.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/3872087578158195194'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/3872087578158195194'/><link rel='alternate' type='text/html' href='http://jsn-techtips.blogspot.com/2019/12/increase-storage-of-lxd-container.html' title='Increase storage of a lxd container'/><author><name>Yauhen Shulitski</name><uri>http://www.blogger.com/profile/15037212126832679606</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFLU6_drxcSCYppz9sL7AHMoJV3x5RNOCMdEF8YzEHoL9naAgaTTYP6rTbT4eRvb9uBv2qdPyskZijc1nTheJnwqUPRWM_ba86ZaC2q3FzS_h1bLqY8rrZm80fRi6yQg/s220/2013_prague.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5675160100054461720.post-3194357616409371712</id><published>2019-12-23T15:38:00.001+03:00</published><updated>2019-12-23T15:41:26.661+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="dnsmasq"/><category scheme="http://www.blogger.com/atom/ns#" term="network"/><title type='text'>Log quireis in dnsmasq</title><content type='html'>Add the following line to dnsmasq configuration file:
log-queries</content><link rel='replies' type='application/atom+xml' href='http://jsn-techtips.blogspot.com/feeds/3194357616409371712/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jsn-techtips.blogspot.com/2019/12/log-quireis-in-dnsmasq.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/3194357616409371712'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/3194357616409371712'/><link rel='alternate' type='text/html' href='http://jsn-techtips.blogspot.com/2019/12/log-quireis-in-dnsmasq.html' title='Log quireis in dnsmasq'/><author><name>Yauhen Shulitski</name><uri>http://www.blogger.com/profile/15037212126832679606</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFLU6_drxcSCYppz9sL7AHMoJV3x5RNOCMdEF8YzEHoL9naAgaTTYP6rTbT4eRvb9uBv2qdPyskZijc1nTheJnwqUPRWM_ba86ZaC2q3FzS_h1bLqY8rrZm80fRi6yQg/s220/2013_prague.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5675160100054461720.post-703866037832171525</id><published>2019-11-22T01:36:00.001+03:00</published><updated>2019-11-22T01:36:26.050+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="fedora"/><category scheme="http://www.blogger.com/atom/ns#" term="lxd"/><title type='text'>Lxd on Fedora 31</title><content type='html'>Fedora 31 has started to use cgroups v2 by default. According to &lt;a href=&quot;https://fedoraproject.org/wiki/Common_F31_bugs#Docker_package_no_longer_available_and_will_not_run_by_default_.28due_to_switch_to_cgroups_v2.29&quot;&gt;Common F31 bugs&lt;/a&gt; it doesn&#39;t play nice with Docker, lxd and others. To make fedora switch back to the old cgroups:
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;sudo grubby --update-kernel&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;ALL --args&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;systemd.unified_cgroup_hierarchy=0&amp;quot;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jsn-techtips.blogspot.com/feeds/703866037832171525/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jsn-techtips.blogspot.com/2019/11/lxd-on-fedora-31.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/703866037832171525'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/703866037832171525'/><link rel='alternate' type='text/html' href='http://jsn-techtips.blogspot.com/2019/11/lxd-on-fedora-31.html' title='Lxd on Fedora 31'/><author><name>Yauhen Shulitski</name><uri>http://www.blogger.com/profile/15037212126832679606</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFLU6_drxcSCYppz9sL7AHMoJV3x5RNOCMdEF8YzEHoL9naAgaTTYP6rTbT4eRvb9uBv2qdPyskZijc1nTheJnwqUPRWM_ba86ZaC2q3FzS_h1bLqY8rrZm80fRi6yQg/s220/2013_prague.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5675160100054461720.post-7375735106054467255</id><published>2019-11-22T01:32:00.001+03:00</published><updated>2019-11-22T01:32:57.219+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="efi"/><category scheme="http://www.blogger.com/atom/ns#" term="grub"/><title type='text'>How to regenerate grub configuration</title><content type='html'>&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
&lt;/pre&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jsn-techtips.blogspot.com/feeds/7375735106054467255/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jsn-techtips.blogspot.com/2019/11/how-to-regenerate-grub-configuration.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/7375735106054467255'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/7375735106054467255'/><link rel='alternate' type='text/html' href='http://jsn-techtips.blogspot.com/2019/11/how-to-regenerate-grub-configuration.html' title='How to regenerate grub configuration'/><author><name>Yauhen Shulitski</name><uri>http://www.blogger.com/profile/15037212126832679606</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFLU6_drxcSCYppz9sL7AHMoJV3x5RNOCMdEF8YzEHoL9naAgaTTYP6rTbT4eRvb9uBv2qdPyskZijc1nTheJnwqUPRWM_ba86ZaC2q3FzS_h1bLqY8rrZm80fRi6yQg/s220/2013_prague.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5675160100054461720.post-5184400412850551215</id><published>2019-10-04T15:05:00.001+03:00</published><updated>2019-10-04T15:05:08.529+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="wifi"/><title type='text'>wifi utils</title><content type='html'>List used wifi frequences
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;sudo iwlist wlp1s0 scan &lt;span class=&quot;p&quot;&gt;|&lt;/span&gt; grep Frequency &lt;span class=&quot;p&quot;&gt;|&lt;/span&gt; sort &lt;span class=&quot;p&quot;&gt;|&lt;/span&gt; uniq -c &lt;span class=&quot;p&quot;&gt;|&lt;/span&gt; sort -n
&lt;/pre&gt;&lt;/div&gt;

List available channels
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;iwlist channel
&lt;/pre&gt;&lt;/div&gt;

List wifi networks
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;nmcli d wifi
&lt;/pre&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jsn-techtips.blogspot.com/feeds/5184400412850551215/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jsn-techtips.blogspot.com/2019/10/wifi-utils.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/5184400412850551215'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/5184400412850551215'/><link rel='alternate' type='text/html' href='http://jsn-techtips.blogspot.com/2019/10/wifi-utils.html' title='wifi utils'/><author><name>Yauhen Shulitski</name><uri>http://www.blogger.com/profile/15037212126832679606</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFLU6_drxcSCYppz9sL7AHMoJV3x5RNOCMdEF8YzEHoL9naAgaTTYP6rTbT4eRvb9uBv2qdPyskZijc1nTheJnwqUPRWM_ba86ZaC2q3FzS_h1bLqY8rrZm80fRi6yQg/s220/2013_prague.png'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5675160100054461720.post-5953401187484000756</id><published>2019-09-25T12:56:00.000+03:00</published><updated>2019-09-25T12:56:10.050+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="isort"/><category scheme="http://www.blogger.com/atom/ns#" term="python"/><category scheme="http://www.blogger.com/atom/ns#" term="vscode"/><title type='text'>Fix isort in vscode for python2</title><content type='html'>Go to the vscode Python extension folder:
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;cd&lt;/span&gt; ~/.vscode/extensions/ms-python.python-2019.9.34911
&lt;/pre&gt;&lt;/div&gt;
Install latest version that is known to work with python 2:
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;pip2 install -t ./pythonFiles/lib/python --upgrade &lt;span class=&quot;nv&quot;&gt;isort&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;4&lt;/span&gt;.3.17
&lt;/pre&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jsn-techtips.blogspot.com/feeds/5953401187484000756/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jsn-techtips.blogspot.com/2019/09/fix-isort-in-vscode-for-python2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/5953401187484000756'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/5953401187484000756'/><link rel='alternate' type='text/html' href='http://jsn-techtips.blogspot.com/2019/09/fix-isort-in-vscode-for-python2.html' title='Fix isort in vscode for python2'/><author><name>Yauhen Shulitski</name><uri>http://www.blogger.com/profile/15037212126832679606</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFLU6_drxcSCYppz9sL7AHMoJV3x5RNOCMdEF8YzEHoL9naAgaTTYP6rTbT4eRvb9uBv2qdPyskZijc1nTheJnwqUPRWM_ba86ZaC2q3FzS_h1bLqY8rrZm80fRi6yQg/s220/2013_prague.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5675160100054461720.post-1096456774384374769</id><published>2018-03-11T02:28:00.001+03:00</published><updated>2018-03-11T02:28:10.601+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="django"/><category scheme="http://www.blogger.com/atom/ns#" term="python"/><title type='text'>python: Django-like testrunner</title><content type='html'>Django-like testrunner for non-django projects:
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class=&quot;ch&quot;&gt;#!/usr/bin/env python&lt;/span&gt;

&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;argparse&lt;/span&gt;
&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;collections&lt;/span&gt;
&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;unittest&lt;/span&gt;
&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;sys&lt;/span&gt;


&lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;main&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;():&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;parser&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;argparse&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ArgumentParser&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;description&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&amp;#39;Django-like testrunner&amp;#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;parser&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;add_argument&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&amp;#39;specific_test&amp;#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;metavar&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&amp;#39;&amp;#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;str&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;nargs&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&amp;#39;?&amp;#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;help&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&amp;#39;Specifc test&amp;#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;parser&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;add_argument&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;--failfast&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;action&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;store_true&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;parser&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;add_argument&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;--verbosity&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;int&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;default&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

    &lt;span class=&quot;n&quot;&gt;args&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;parser&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;parse_args&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;

    &lt;span class=&quot;n&quot;&gt;loader&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;unittest&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;TestLoader&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;all_tests&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;loader&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;discover&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&amp;#39;.&amp;#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;top_level_dir&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;./&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;suite&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;unittest&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;TestSuite&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;

    &lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;args&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;specific_test&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;

        &lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;walk_tests&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tests&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
            &lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;isinstance&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tests&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;collections&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Iterable&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
                &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;item&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;tests&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;
                    &lt;span class=&quot;n&quot;&gt;walk_tests&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;item&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
                &lt;span class=&quot;k&quot;&gt;return&lt;/span&gt;
            &lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;tests&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;startswith&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;args&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;specific_test&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
                &lt;span class=&quot;n&quot;&gt;suite&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;addTest&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tests&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
            &lt;span class=&quot;k&quot;&gt;elif&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;not&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;str&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tests&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;startswith&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;test&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
                &lt;span class=&quot;n&quot;&gt;sys&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;exit&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;Error in file &lt;/span&gt;&lt;span class=&quot;si&quot;&gt;%s&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;%&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;tests&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

        &lt;span class=&quot;n&quot;&gt;walk_tests&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;all_tests&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;k&quot;&gt;else&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;
        &lt;span class=&quot;n&quot;&gt;suite&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;addTests&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;all_tests&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

    &lt;span class=&quot;n&quot;&gt;unittest&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;TextTestRunner&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;verbosity&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;args&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;verbosity&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;failfast&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;args&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;failfast&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;run&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;suite&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;


&lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;vm&quot;&gt;__name__&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&amp;quot;__main__&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;main&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jsn-techtips.blogspot.com/feeds/1096456774384374769/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jsn-techtips.blogspot.com/2018/03/python-django-like-testrunner.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/1096456774384374769'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/1096456774384374769'/><link rel='alternate' type='text/html' href='http://jsn-techtips.blogspot.com/2018/03/python-django-like-testrunner.html' title='python: Django-like testrunner'/><author><name>Yauhen Shulitski</name><uri>http://www.blogger.com/profile/15037212126832679606</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFLU6_drxcSCYppz9sL7AHMoJV3x5RNOCMdEF8YzEHoL9naAgaTTYP6rTbT4eRvb9uBv2qdPyskZijc1nTheJnwqUPRWM_ba86ZaC2q3FzS_h1bLqY8rrZm80fRi6yQg/s220/2013_prague.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5675160100054461720.post-8567326069196916914</id><published>2018-03-11T02:23:00.001+03:00</published><updated>2018-03-11T02:23:56.165+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="fedora"/><category scheme="http://www.blogger.com/atom/ns#" term="ssl"/><title type='text'>fedora: SSL certificate viewer</title><content type='html'>GUI to view certificate:
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;gcr-viewer cert.pem
&lt;/pre&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jsn-techtips.blogspot.com/feeds/8567326069196916914/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jsn-techtips.blogspot.com/2018/03/fedora-ssl-certificate-viewer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/8567326069196916914'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/8567326069196916914'/><link rel='alternate' type='text/html' href='http://jsn-techtips.blogspot.com/2018/03/fedora-ssl-certificate-viewer.html' title='fedora: SSL certificate viewer'/><author><name>Yauhen Shulitski</name><uri>http://www.blogger.com/profile/15037212126832679606</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFLU6_drxcSCYppz9sL7AHMoJV3x5RNOCMdEF8YzEHoL9naAgaTTYP6rTbT4eRvb9uBv2qdPyskZijc1nTheJnwqUPRWM_ba86ZaC2q3FzS_h1bLqY8rrZm80fRi6yQg/s220/2013_prague.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5675160100054461720.post-3309928115273462271</id><published>2018-03-11T02:22:00.001+03:00</published><updated>2018-03-11T02:22:13.562+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bash"/><category scheme="http://www.blogger.com/atom/ns#" term="network"/><title type='text'>linux: List all IP addresses in a network</title><content type='html'>To list ip addresses of all connected to the network devices, use this command:
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;nmap -sn &lt;span class=&quot;m&quot;&gt;192&lt;/span&gt;.168.0.0/24
&lt;/pre&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jsn-techtips.blogspot.com/feeds/3309928115273462271/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jsn-techtips.blogspot.com/2018/03/linux-list-all-ip-addresses-in-network.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/3309928115273462271'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/3309928115273462271'/><link rel='alternate' type='text/html' href='http://jsn-techtips.blogspot.com/2018/03/linux-list-all-ip-addresses-in-network.html' title='linux: List all IP addresses in a network'/><author><name>Yauhen Shulitski</name><uri>http://www.blogger.com/profile/15037212126832679606</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFLU6_drxcSCYppz9sL7AHMoJV3x5RNOCMdEF8YzEHoL9naAgaTTYP6rTbT4eRvb9uBv2qdPyskZijc1nTheJnwqUPRWM_ba86ZaC2q3FzS_h1bLqY8rrZm80fRi6yQg/s220/2013_prague.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5675160100054461720.post-4979818955035968003</id><published>2018-03-11T02:20:00.001+03:00</published><updated>2018-03-11T02:20:27.268+03:00</updated><title type='text'>linux: CPU benchmark</title><content type='html'>&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;$ sysbench cpu run --time&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;m&quot;&gt;5&lt;/span&gt;
sysbench &lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;.0.9 &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;using system LuaJIT &lt;span class=&quot;m&quot;&gt;2&lt;/span&gt;.1.0-beta3&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;

Running the &lt;span class=&quot;nb&quot;&gt;test&lt;/span&gt; with following options:
Number of threads: &lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;
Initializing random number generator from current &lt;span class=&quot;nb&quot;&gt;time&lt;/span&gt;


Prime numbers limit: &lt;span class=&quot;m&quot;&gt;10000&lt;/span&gt;

Initializing worker threads...

Threads started!

CPU speed:
    events per second:  &lt;span class=&quot;m&quot;&gt;1157&lt;/span&gt;.88

General statistics:
    total time:                          &lt;span class=&quot;m&quot;&gt;5&lt;/span&gt;.0008s
    total number of events:              &lt;span class=&quot;m&quot;&gt;5792&lt;/span&gt;

Latency &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;ms&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;:
         min:                                  &lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;.80
         avg:                                  &lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;.86
         max:                                  &lt;span class=&quot;m&quot;&gt;3&lt;/span&gt;.74
         95th percentile:                      &lt;span class=&quot;m&quot;&gt;1&lt;/span&gt;.06
         sum:                               &lt;span class=&quot;m&quot;&gt;4998&lt;/span&gt;.26

Threads fairness:
    events &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;avg/stddev&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;:           &lt;span class=&quot;m&quot;&gt;5792&lt;/span&gt;.0000/0.00
    execution &lt;span class=&quot;nb&quot;&gt;time&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;avg/stddev&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;:   &lt;span class=&quot;m&quot;&gt;4&lt;/span&gt;.9983/0.00
&lt;/pre&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jsn-techtips.blogspot.com/feeds/4979818955035968003/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jsn-techtips.blogspot.com/2018/03/linux-cpu-benchmark.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/4979818955035968003'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/4979818955035968003'/><link rel='alternate' type='text/html' href='http://jsn-techtips.blogspot.com/2018/03/linux-cpu-benchmark.html' title='linux: CPU benchmark'/><author><name>Yauhen Shulitski</name><uri>http://www.blogger.com/profile/15037212126832679606</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFLU6_drxcSCYppz9sL7AHMoJV3x5RNOCMdEF8YzEHoL9naAgaTTYP6rTbT4eRvb9uBv2qdPyskZijc1nTheJnwqUPRWM_ba86ZaC2q3FzS_h1bLqY8rrZm80fRi6yQg/s220/2013_prague.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5675160100054461720.post-8631593975610647680</id><published>2018-03-11T02:19:00.001+03:00</published><updated>2018-03-11T02:19:14.530+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bash"/><title type='text'>bash: How to check what hides behind an alias</title><content type='html'>To check what command is assigned to the alias use type command:
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;$ &lt;span class=&quot;nb&quot;&gt;type&lt;/span&gt; gl
gl is aliased to &lt;span class=&quot;sb&quot;&gt;`&lt;/span&gt;git log --oneline&lt;span class=&quot;err&quot;&gt;&amp;#39;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jsn-techtips.blogspot.com/feeds/8631593975610647680/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jsn-techtips.blogspot.com/2018/03/bash-how-to-check-what-hides-behind.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/8631593975610647680'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/8631593975610647680'/><link rel='alternate' type='text/html' href='http://jsn-techtips.blogspot.com/2018/03/bash-how-to-check-what-hides-behind.html' title='bash: How to check what hides behind an alias'/><author><name>Yauhen Shulitski</name><uri>http://www.blogger.com/profile/15037212126832679606</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFLU6_drxcSCYppz9sL7AHMoJV3x5RNOCMdEF8YzEHoL9naAgaTTYP6rTbT4eRvb9uBv2qdPyskZijc1nTheJnwqUPRWM_ba86ZaC2q3FzS_h1bLqY8rrZm80fRi6yQg/s220/2013_prague.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5675160100054461720.post-234016174205028657</id><published>2017-11-16T16:31:00.001+03:00</published><updated>2017-11-16T16:31:10.974+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="fedora"/><category scheme="http://www.blogger.com/atom/ns#" term="firefox"/><title type='text'>fedora: Install flashplayer in Firefox</title><content type='html'>&lt;p&gt;I have flashplayer installed on my system from the official Adobe repository, but Firefox for some reason does not have flash plugin installed. You can check if your browser supports flash by navigating to this &lt;a href=&quot;http://isflashinstalled.com/&quot;&gt;url&lt;/a&gt;&lt;/p&gt;

&lt;p&gt; To make Firefox aware of flashplugin, try to create a symlink here:
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;cd&lt;/span&gt; http://isflashinstalled.com/ &lt;span class=&quot;o&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; ln -s /usr/lib64/flash-plugin/libflashplayer.so .
&lt;/pre&gt;&lt;/div&gt;
&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://jsn-techtips.blogspot.com/feeds/234016174205028657/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jsn-techtips.blogspot.com/2017/11/fedora-install-flashplayer-in-firefox.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/234016174205028657'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/234016174205028657'/><link rel='alternate' type='text/html' href='http://jsn-techtips.blogspot.com/2017/11/fedora-install-flashplayer-in-firefox.html' title='fedora: Install flashplayer in Firefox'/><author><name>Yauhen Shulitski</name><uri>http://www.blogger.com/profile/15037212126832679606</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFLU6_drxcSCYppz9sL7AHMoJV3x5RNOCMdEF8YzEHoL9naAgaTTYP6rTbT4eRvb9uBv2qdPyskZijc1nTheJnwqUPRWM_ba86ZaC2q3FzS_h1bLqY8rrZm80fRi6yQg/s220/2013_prague.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5675160100054461720.post-630254801796231238</id><published>2017-11-02T16:23:00.001+03:00</published><updated>2017-11-02T16:23:48.859+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bash"/><category scheme="http://www.blogger.com/atom/ns#" term="monitor"/><title type='text'>Monitor process with top</title><content type='html'>One liner to monitor a process with the name /wshub:
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;top -p &lt;span class=&quot;s2&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;$(&lt;/span&gt;pgrep -f /wshub&lt;span class=&quot;k&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jsn-techtips.blogspot.com/feeds/630254801796231238/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jsn-techtips.blogspot.com/2017/11/monitor-process-with-top.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/630254801796231238'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/630254801796231238'/><link rel='alternate' type='text/html' href='http://jsn-techtips.blogspot.com/2017/11/monitor-process-with-top.html' title='Monitor process with top'/><author><name>Yauhen Shulitski</name><uri>http://www.blogger.com/profile/15037212126832679606</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFLU6_drxcSCYppz9sL7AHMoJV3x5RNOCMdEF8YzEHoL9naAgaTTYP6rTbT4eRvb9uBv2qdPyskZijc1nTheJnwqUPRWM_ba86ZaC2q3FzS_h1bLqY8rrZm80fRi6yQg/s220/2013_prague.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5675160100054461720.post-4470341831684194026</id><published>2017-10-31T17:20:00.001+03:00</published><updated>2017-10-31T17:20:08.195+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="debian"/><title type='text'>Run command as a different user</title><content type='html'>Command runuser allows to run a command as a different user. You must be root to be able to run that command:
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;sudo runuser -l vagrant -c &lt;span class=&quot;s2&quot;&gt;&amp;quot;GH=1 env&amp;quot;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jsn-techtips.blogspot.com/feeds/4470341831684194026/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jsn-techtips.blogspot.com/2017/10/run-command-as-different-user.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/4470341831684194026'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/4470341831684194026'/><link rel='alternate' type='text/html' href='http://jsn-techtips.blogspot.com/2017/10/run-command-as-different-user.html' title='Run command as a different user'/><author><name>Yauhen Shulitski</name><uri>http://www.blogger.com/profile/15037212126832679606</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFLU6_drxcSCYppz9sL7AHMoJV3x5RNOCMdEF8YzEHoL9naAgaTTYP6rTbT4eRvb9uBv2qdPyskZijc1nTheJnwqUPRWM_ba86ZaC2q3FzS_h1bLqY8rrZm80fRi6yQg/s220/2013_prague.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5675160100054461720.post-7640118363581500761</id><published>2017-10-13T00:35:00.001+03:00</published><updated>2017-10-13T00:35:21.701+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bash"/><category scheme="http://www.blogger.com/atom/ns#" term="monitor"/><title type='text'>Monitor cpu and memory usage of the process</title><content type='html'>&lt;p&gt;Print every second cpu and memory usage of the process:&lt;/p&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
    &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqzD7kl0BCrwUXjn-O69H1dkfmB0jYCdZ-JxWaXLFrGtET46BCOiiqQMC7PWmXqux3BigdDCxWFCGico9SyDrZba9SPO2wAfe55DpTttahg6dPVeiQvxqvglpsFVmVdlYvVJH8GUoGLxg/s0/Screenshot+from+2017-10-12+23-34-02.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;
        &lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqzD7kl0BCrwUXjn-O69H1dkfmB0jYCdZ-JxWaXLFrGtET46BCOiiqQMC7PWmXqux3BigdDCxWFCGico9SyDrZba9SPO2wAfe55DpTttahg6dPVeiQvxqvglpsFVmVdlYvVJH8GUoGLxg/s450/Screenshot+from+2017-10-12+23-34-02.png&quot;/&gt;
    &lt;/a&gt;
&lt;/div&gt;


&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;watch -n &lt;span class=&quot;m&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&amp;quot;ps -eo pid,pcpu,pmem,args | kazy -i xnotitle -e kazy&amp;quot;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jsn-techtips.blogspot.com/feeds/7640118363581500761/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jsn-techtips.blogspot.com/2017/10/monitor-cpu-and-memory-usage-of-process.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/7640118363581500761'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5675160100054461720/posts/default/7640118363581500761'/><link rel='alternate' type='text/html' href='http://jsn-techtips.blogspot.com/2017/10/monitor-cpu-and-memory-usage-of-process.html' title='Monitor cpu and memory usage of the process'/><author><name>Yauhen Shulitski</name><uri>http://www.blogger.com/profile/15037212126832679606</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFLU6_drxcSCYppz9sL7AHMoJV3x5RNOCMdEF8YzEHoL9naAgaTTYP6rTbT4eRvb9uBv2qdPyskZijc1nTheJnwqUPRWM_ba86ZaC2q3FzS_h1bLqY8rrZm80fRi6yQg/s220/2013_prague.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqzD7kl0BCrwUXjn-O69H1dkfmB0jYCdZ-JxWaXLFrGtET46BCOiiqQMC7PWmXqux3BigdDCxWFCGico9SyDrZba9SPO2wAfe55DpTttahg6dPVeiQvxqvglpsFVmVdlYvVJH8GUoGLxg/s72-c/Screenshot+from+2017-10-12+23-34-02.png" height="72" width="72"/><thr:total>0</thr:total></entry></feed>