<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Artur Smolarek Homepage</title>
	<atom:link href="http://artursmolarek.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://artursmolarek.com</link>
	<description></description>
	<lastBuildDate>Thu, 02 Feb 2012 15:16:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Krajowy Rejestr Pracowników i Pracodawców, czyli przynieś w zębach swoje 115 PLN</title>
		<link>http://artursmolarek.com/2011/07/05/krajowy-rejestr-pracownikow-i-pracodawcow-czyli-przynies-w-zebach-swoje-115-pln/</link>
		<comments>http://artursmolarek.com/2011/07/05/krajowy-rejestr-pracownikow-i-pracodawcow-czyli-przynies-w-zebach-swoje-115-pln/#comments</comments>
		<pubDate>Tue, 05 Jul 2011 13:29:46 +0000</pubDate>
		<dc:creator>Artur</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[krajowy]]></category>
		<category><![CDATA[pracodawca]]></category>
		<category><![CDATA[przedsiębiorca]]></category>
		<category><![CDATA[rejestr]]></category>

		<guid isPermaLink="false">http://artursmolarek.com/?p=61</guid>
		<description><![CDATA[Dzisiaj wyjątkowo po Polsku, chociaż kwestia, którą chciałbym poruszyć nie jest wyłącznie domeną polską i Polaków. I niestety będzie ona zbierała swoje żniwo dopóty, dopóki na świecie będą żyć ludzie, którzy na naszej niewiedzy spróbują zrobić świetny interes. Faktury, płatności&#8230; W dniu dzisiejszym listonosz do biura mojej firmy przyniósł &#8220;wezwanie&#8221; do zapłaty. Nic nadzwyczajnego, bowiem [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://artursmolarek.com/wp-content/uploads/2011/07/fuck_you-150x150.jpg" alt="Fuck You KRPiP" title="fuck_you" width="150" height="150" class="alignleft size-thumbnail wp-image-75" style="display: none;" />Dzisiaj wyjątkowo po Polsku, chociaż kwestia, którą chciałbym poruszyć nie jest wyłącznie domeną polską i Polaków. I niestety będzie ona zbierała swoje żniwo dopóty, dopóki na świecie będą żyć ludzie, którzy na naszej niewiedzy spróbują zrobić świetny interes.</p>
<h4>Faktury, płatności&#8230;</h4>
<p>W dniu dzisiejszym listonosz do biura mojej firmy przyniósł &#8220;wezwanie&#8221; do zapłaty. Nic nadzwyczajnego, bowiem czasami zagląda do nas z fakturami. Od samego początku moją uwagę przykuła nazwa nadawcy, szumnie określającego siebie &#8220;Krajowym Rejestrem Pracowników i Pracodawców&#8221;.</p>
<p>A w środku&#8230; </p>
<blockquote><p>prośba o uregulowanie opłaty w wysokości 115,00 PLN w nieprzekraczalnym terminie do 8 lipca 2011r.</p></blockquote>
<p>Całość wygląda jak urzędowy druczek, mniej więcej w ten sposób:</p>
<p><a href="http://artursmolarek.com/wp-content/uploads/2011/07/krpip.jpg"><img src="http://artursmolarek.com/wp-content/uploads/2011/07/krpip-200x300.jpg" alt="" title="krpip" width="200" height="300" class="aligncenter size-medium wp-image-103" /></a></p>
<h4>Płać albo płacz. Ale czy na pewno?</h4>
<p>Jak widzimy, na początku KRPiP rzuca kilkoma ustawami, na podstawie których możemy dowiedzieć się o tym, jak działają organy administracji publicznej oraz czym jest sam ów Rejestr. Na dokładkę czeka na nas informacja, że zgodnie z wewnętrzną uchwałą (nie mylić z ustawą) wpis takowy jest płatny i czasu na dokonanie płatności pozostało nam bardzo niewiele.</p>
<p>Tym razem jednak to nie państwo i urzędnicy sięgają do naszej kieszeni, ale prywatna firma zarejestrowana w Grudziądzu, 27 stycznia br.</p>
<h4>Czym jest KRPiP?</h4>
<p>W Polsce istnieją dwie firmy, prowadzące Krajowy Rejestr Pracowników i Pracodawców:</p>
<ul>
<li>EUROCOM S.C. prowadząca działalność pod adresem: http://krrip.pl</li>
<li>Krajowy Rejestr Pracowników i Pracodawców Sp. z o.o. prowadząca działalność pod adresem: http://krrip.com.pl</li>
</ul>
<p>Przy czym nadawca listu, to druga z wyżej wymienionych.<br />
Część danych z KRS na jej temat możemy znaleźć tutaj: <a href="http://www.imsig.pl/pozycja/2011/71/KRS/30530">http://www.imsig.pl/pozycja/2011/71/KRS/30530</a></p>
<p>Firma korzysta z wirtualnego biura, uzyskując w ten sposób możliwość zarejestrowania spółki pod warszawskim adresem. </p>
<h4>Co robić?</h4>
<p>Nie płać. Ustawy, którymi w piśmie posiłkuje się KRRiP nijak mają się do opłat za wpis do prywatnego rejestru firm, a całość listu ma jedynie formę prośby, a nie wezwania do zapłaty.</p>
<p>Pamiętaj, że oficjalny, a więc istniejący od dłuższego czasu KRRiP (<a href="http://krrip.pl">krrip.pl</a>) nie pobiera opłat z tytuły wpisu do swojego Rejestru.</p>
<p>Bądź czujny w przyszłości, ponieważ to nie pierwsza tego typu firma. Firma, która stosując nie do końca czyste zasady biznesowe, próbuje wyciągnąć od nas pieniądze.</p>
]]></content:encoded>
			<wfw:commentRss>http://artursmolarek.com/2011/07/05/krajowy-rejestr-pracownikow-i-pracodawcow-czyli-przynies-w-zebach-swoje-115-pln/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Non-www to www with wildcard in Nginx</title>
		<link>http://artursmolarek.com/2010/12/10/non-www-to-www-with-wildcard-in-nginx/</link>
		<comments>http://artursmolarek.com/2010/12/10/non-www-to-www-with-wildcard-in-nginx/#comments</comments>
		<pubDate>Fri, 10 Dec 2010 13:48:36 +0000</pubDate>
		<dc:creator>Artur</dc:creator>
				<category><![CDATA[Administration]]></category>

		<guid isPermaLink="false">http://artursmolarek.com/?p=52</guid>
		<description><![CDATA[There is solution:]]></description>
			<content:encoded><![CDATA[<p><img src="http://artursmolarek.com/wp-content/uploads/2010/12/geek-150x150.jpg" alt="" title="geek" width="150" height="150" class="alignleft size-thumbnail wp-image-99" style="display: none;" /></p>
<p>There is solution:</p>
<pre class="brush: bash; title: ; notranslate">
if ($host !~* www\.(.*)) {
        rewrite ^(.*)$ http://www.$host$1 permanent;
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://artursmolarek.com/2010/12/10/non-www-to-www-with-wildcard-in-nginx/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Nagios and free SMS alerts</title>
		<link>http://artursmolarek.com/2010/10/05/nagios-and-free-sms-alerts/</link>
		<comments>http://artursmolarek.com/2010/10/05/nagios-and-free-sms-alerts/#comments</comments>
		<pubDate>Tue, 05 Oct 2010 19:10:27 +0000</pubDate>
		<dc:creator>Artur</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[nagios]]></category>
		<category><![CDATA[sms]]></category>

		<guid isPermaLink="false">http://artursmolarek.com/?p=8</guid>
		<description><![CDATA[Every professional administrator need to be informed about each failure on his servers. Imagine that you are in the cinema, in the shop or for example sleeping. Suddenly one of your machines takes very hight load. Problem requires your intervention&#8230; but you do not know about it. Since now it is going to change&#8230; Components: [...]]]></description>
			<content:encoded><![CDATA[<p>Every professional administrator need to be informed about each failure on his servers. Imagine that you are in the cinema, in the shop or for example sleeping. Suddenly one of your machines takes very hight load. Problem requires your intervention&#8230; but you do not know about it. </p>
<p>Since now it is going to change&#8230;</p>
<p><br/></p>
<h3>Components:</h3>
<p>- 1 fresh <a href="http://www.nagios.org/">Nagios</a> (must be configured),<br />
- 1 &#8220;free Google sms gateway&#8221; script from <a href="http://www.nme.pl/2009/08/bramka-sms-od-google/">this</a> site,<br />
- 10 minutes of free time<br />
- 1 beer (or cup of good coffee <img src='http://artursmolarek.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ).</p>
<h3>Preparation:</h3>
<p>1. Connect Google Calendar with your mobile phone.</p>
<p>For this log in into Google Calendar: https://www.google.com/calendar/ and go to the
<pre class="brush: plain; title: ; notranslate">Settings -&gt; Calendar Settings</pre>
<p> option. Make sure that you had configured your <em>telephone number</em> on the <em>Mobile Setup</em> tab. Next go to <em>Calendars</em> tab and make sure that in the <em>Notifications</em> settings you set <em>&#8220;By default, remind me via SMS 1 minute before each event&#8221;</em>. </p>
<p>2. Download, install and configure script to send SMS using Google Calendar.</p>
<pre class="brush: bash; title: ; notranslate">cd /usr/bin/
wget http://artursmolarek.com/download/sendsms
chmod +x sendsms
</pre>
<p>Now you must edit downloaded script and change setting to your GMail account:</p>
<pre class="brush: bash; title: ; notranslate">nano sendsms</pre>
<pre class="brush: python; title: ; notranslate">login = 'username@gmail.com'
password = 'your_password'</pre>
<p>Install python libraries which have been used in the script:</p>
<pre class="brush: bash; title: ; notranslate">easy_install elementtree
easy_install gdata
</pre>
<p>Send test SMS to your phone:</p>
<pre class="brush: bash; title: ; notranslate">sendsms @company test</pre>
<p>3. Edit your Nagios configuration files:</p>
<p>- contacts.cfg should looks like:</p>
<pre class="brush: bash; title: ; notranslate">service_notification_options w,u,c,r
host_notification_options d,u,r
service_notification_commands notify-service-by-email,notify-service-by-sms
host_notification_commands notify-host-by-email,notify-host-by-sms</pre>
<p>- in the commands.cfg add:</p>
<pre class="brush: bash; title: ; notranslate"># 'notify-host-by-sms' command definition
    define command{
    command_name notify-host-by-sms
    command_line sendsms &quot;$NOTIFICATIONTYPE$: $HOSTNAME$ - $HOSTSTATE$&quot;
}

# 'notify-service-by-sms' command definition
    define command{
    command_name notify-service-by-sms
    command_line sendsms &quot;$NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ - $SERVICESTATE$&quot;
}</pre>
<p>4. Restart Nagios:</p>
<pre class="brush: bash; title: ; notranslate">/etc/init.d/nagios restart</pre>
<p>Now you can sleep peacefully. Every time Nagios will have problems, you receive SMS direct to your Phone. For free <img src='http://artursmolarek.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://artursmolarek.com/2010/10/05/nagios-and-free-sms-alerts/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>Munin under Nginx controll</title>
		<link>http://artursmolarek.com/2010/09/30/munin-under-nginx-controll/</link>
		<comments>http://artursmolarek.com/2010/09/30/munin-under-nginx-controll/#comments</comments>
		<pubDate>Thu, 30 Sep 2010 07:46:08 +0000</pubDate>
		<dc:creator>Artur</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[daemon]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[munin]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://artursmolarek.com/?p=5</guid>
		<description><![CDATA[Are you using Nginx on your own server? I will show you, how to integrate the Munin monitoring tool with you webserver. Munin is &#8220;networked resource monitoring tool&#8221; which can be used to automatic observation of your OS procs. The default setup provide following graphs: Disk usage Inode usage MySQL throughput MySQL queries MySQL slow [...]]]></description>
			<content:encoded><![CDATA[<p>Are you using Nginx on your own server? I will show you, how to integrate the Munin monitoring tool with you webserver.</p>
<p><a href="http://munin-monitoring.org/">Munin</a> is <em>&#8220;networked resource monitoring tool&#8221;</em> which can be used to automatic observation of your OS procs.</p>
<p>The default setup provide following graphs:</p>
<ul>
<li>Disk usage</li>
<li>Inode usage</li>
<li>MySQL throughput</li>
<li>MySQL queries</li>
<li>MySQL slow queries</li>
<li>MySQL threads</li>
<li>venet0 traffic</li>
<li>Fork rate</li>
<li>Number of Processes</li>
<li>VMstat</li>
<li>Sendmail queued mails</li>
<li>Sendmail email traffic</li>
<li>Sendmail email volumes</li>
<li>CPU usage</li>
<li>Available entropy</li>
<li>Interrupts &amp; context switches</li>
<li>Load average</li>
<li>Memory usage</li>
<li>File table usage</li>
<li>Inode table usage</li>
<li>Swap in/out</li>
</ul>
<h3>Installation</h3>
<p>If your OS is Debian then installation is very easy:</p>
<p>1. Download and install Nginx:</p>
<pre class="brush: bash; title: ; notranslate">cd /tmp
wget http://nginx.org/download/nginx-0.8.52.tar.gz
tar zxvf nginx-0.8.52.tar.gz
cd nginx-0.8.52
./configure --with-http_ssl_module --with-http_stub_status_module
make &amp;amp;&amp;amp; make install
cd ..
rm -fr nginx-0.8.52*</pre>
<p>2. Install munin from apt.</p>
<pre class="brush: bash; title: ; notranslate">apt-get install munin munin-node</pre>
<h3>Configuration</h3>
<p>All configuration files are store in the <code>/etc/munin</code> directory. Default settings are OK but we want to add Munin plugin to observe our Nginx http server.</p>
<p>1. Create Nginx vhost configuration. Add this, to <code>/usr/local/nginx/conf/nginx.conf</code> (<code>http</code> section):</p>
<pre class="brush: bash; title: ; notranslate">server {
    listen   80;
    server_name  localhost;

    location / {
        root                    /var/www/munin/;
        index                   index.html;
        auth_basic              &quot;Restricted&quot;;
        auth_basic_user_file    /var/www/munin/htpasswd;
    }

    location /nginx_status {
        stub_status             on;
        access_log              off;
        allow                   127.0.0.1;
        deny                    all;
    }
}</pre>
<p>2. Protect Munin access (default statistics are available for all users):</p>
<pre class="brush: bash; title: ; notranslate">mkdir /var/www/munin -p
cd /var/www/munin
htpasswd -b htpasswd YourLogin YourPassword</pre>
<p>3. Download plugins nginx_status and nginx_request:</p>
<pre class="brush: bash; title: ; notranslate">cd /etc/munin/plugins
wget http://exchange.munin-monitoring.org/plugins/nginx_status/version/3/download -O nginx_status
wget http://exchange.munin-monitoring.org/plugins/nginx_request/version/2/download -O nginx_request
chmod +x nginx_*</pre>
<p>4. Configure plugins in Munin`s node:</p>
<p>In the <code>/etc/munin/plugin-conf.d/munin-node</code> file add this two lines:</p>
<pre class="brush: bash; title: ; notranslate">[nginx*]
env.url http://localhost/nginx_status</pre>
<p>5. Restart <code>munin-node</code> and <code>nginx</code></p>
<pre class="brush: bash; title: ; notranslate">/etc/init.d/munin-node restart
/etc/init.d/nginx restart</pre>
]]></content:encoded>
			<wfw:commentRss>http://artursmolarek.com/2010/09/30/munin-under-nginx-controll/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: artursmolarek.com @ 2012-02-22 20:07:51 -->
