Nginx configuration for SSH tunnel

upstream tunnel {

server {
listen 80;
server_name dev.server.tld;

location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;

proxy_pass http://tunnel;

ssh -vnNT -R 3000:localhost:80 root@server.tld

ffmpeg on Raspbian – Raspberry Pi

First for all we need to build and install x264

# git clone --depth 1 git://
# cd x264
# ./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-opencl
# make -j 4
# sudo make install

For mp3 support
tar xzvf lame-3.99.tar.gz
cd lame-3.99
make install

For Hardware Encoding
1. add "--enable-omx --enable-omx-rpi" to ./configure options
2. compile
3. use encoder option "-c:v h264_omx"

Then build and make ffmpeg
# git clone --depth=1 git://
# cd ffmpeg
# ./configure --arch=armel --target-os=linux --enable-gpl --enable-libx264 --enable-libmp3lame --enable-nonfree --enable-omx --enable-omx-rpi
# make -j4
# sudo make install
# ldconfig

It takes just 25 minutes on a Raspberry Pi 3.
In case you are wondering v4l2 should work with this.

I provide a repository for this kind of stuff some day.
git clone
git clone

Applications that I use on iPhone

I have prepared a list of applications that I use on my iPhone; the following list does not include all applications I’m using, but only those which can seem to be interesting for some of you.


firefoxVery long-awaited iPhone app is Firefox, which is mostly valuable for its quick and easy synchronizing of browsing history, so I can continue my work on smartphone.


inboxEasy and intuitive way to receive and send e-mails. That project has been already interesting as it was in the testing phase. I was so excited when I got an invitation to become a beta tester!


skypeI think it’s the only application that hasn’t disappointed me in video calls; I can talk for long hours without any problems.

Tweetbot 4

tweetbotOne of the best applications for Twitter. After several years they’ve even released new version for the iPad. I’d say that this application is worth the money you have to spend on it.


telegramFor the last several months I’ve managed to persuade most of my friends to use Telegram. This app is simple, quick, grows up rapidly and seems to be safe.


softphoneI use Softphone for few years, it hasn’t ever failed – I can frankly recommend this app as the best application for VoIP.


lastpassMy friend recommended me some time ago LastPass – from that moment I use it for about four years. It’s the only one program in which I keep all my passwords; I use it both on PC and iPhone. This application really makes my life easier now.


pushoverWhen the postman passes by the letter box or washing machine finishes its work, I get push notification on my smartphone. Custom notifications for EVERYTHING – what more can be said?


ebayI don’t want to advertise eBay here, but it’s probably the only online shop, in which I can get everything I want. I use this app almost everyday.


wolframalphaThis application can calculate almost everything; on my studies it’s been the most used app ever. I’m thankful the author that he created such a powerful application.

Boxcar 2

boxcarFor a long time I had been looking for a comfortable and simple RSS reader and I finally – I found it. Boxcar is IMHO the best one – it has push notifications about new articles. I just wanna encourage you to try it.

OpenVPN Connect

openvpnWhen I’m using public hotspots, I care about my privacy – so thanks to the application OpenVPN I can safely connect to my server and use the internet just like I was at home.

Google Maps

googlemapsI owe a lot to Google Maps – this application allows me to search for a place in a foreign land (or even in my city) and not to get lost there. If it didn’t exist, I would be lost almost everyday. Thanks, Google!


number26A new, innovative bank that has more capabilities than common banks, option of fast paying and withdrawing money in groceries by bar code that you can generate in your smartphone. When you’ve got that bar code, the only thing is to give to cashier. There are also no fees for taking money from ATMs wherever you are. I would really recommend checking this bank to anyone.


coinbaseFor those, who are interested in Bitcoin, I can recommend CoinBase – it’s quick and easy way to buy and sell bitcoins, all you have to do ist just to connect your bank account or credit card – that’s it. Isn’t it easy?


spotifyAs we know, everyone needs some time to relax – and music is the best way to do this. I have been using Spotify since two years and it’s the only application I use everyday for several hours. I’ve tested Apple Music, but I’d rather keep listening to music on Spotify instead of on that fruity app.


netflixEvery single time I have, I spend on Netflix. Year ago I watched all the seasons of Dr. Who in only two weeks. No, I’m not a nolife! Maybe a bit… How much?

The Room 1,2 and 3

A wonderful puzzle game in which you can really feel the atmosphere and a great way to spend the evenings with a smartphone in your hands(no, you’re not gonna be nolife like me).

Probably the best Film with real Hacks

A few weeks ago I was in the cinema, during commercials and movie trailers were shown WhoAmI, trailer immediately spoke to me, So I found moments of time yesterday and go to the cinema.

It can not be described, everyone should watch this movie, keeps you in suspense from beginning to end, it’s probably one of the best movie made in Germany.
Small curio, in the film are shown real Hacks!


First LastPass service fail from a few years

lastpassThe first time today LastPass was not available for its users, as LastPass writes on his blog, migrated its data center to a new data center.
Disappointment, thoughts, worries about their passwords, the same thing I was going, I’m a premium user for 4 years, and yet never so LastPass did not disappoint me, but hopefully a good hope that LastPass will continue to do so very safe and comfortable and it is convenient. I use it on the desktop and on mobile devices.
I think that LastPass deserves a medal for convenience of use

On LastPass blog you can read about the incident

A this user in tweet writes what I thought himself

LastPass explains the reason

LastPass returned to work after a whole 4 hours

Let’s hope that does not stand for this any special offices 🙂

How to change the description of the Stream in Liquidsoap

output.icecast( %mp3(bitrate=96), mount="/radio-96.mp3", 
	description="ITUnix Radio Electronic Music", 
	name="ITUnix Radio", 
	password="PASSWORD", radio)

example 2

output.icecast( %mp3(stereo=false, bitrate=16, samplerate=22050),
	port = 80, password =  "xxxxxxxxx", genre="Scanner", 
	description="Scanner audio", mount="/xxxxxxxx", 
	name="Baltimore Maryland Police/Fire/EMS", user="source",
	url="", radio)

Setting up Nagios Server to Remotely Server on Debian

Step 1. Installing packages

We have one server for monitoring (eg. myoneserver). [client]

# aptitude install nagios-nrpe-server nagios-plugins

And one server to view statistics. [server]

# aptitude install nagios-nrpe-plugin nagios-plugins nagios3

Step 2. Configuring the server for monitoring [client]
Edit /etc/nagios/nrpe.conf.

# nano /etc/nagios/nrpe.conf

Set the server_address to the IP address you want NRPE to bind to on the Untangle server.  If you want it to bind to all addresses, leave this command commented out.


Change allowed_hosts to the IP address of the Nagios server:


Add a command to check the swap utilization:

command[check_sda1]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /dev/sda1

Save and quit /etc/nagios/nrpe.conf.

Restart the NRPE service:

/etc/init.d/nagios-nrpe-server restart

Step 3. Configure the Nagios Server
Create a file named /etc/nagios3/conf.d/myoneserver.cfg with the following contents:

#Host Definition
define host{
use                     generic-host
host_name               myoneserver
alias                   MyOneServer Server

# Service Definitions
define service{
use                     generic-service
host_name               myoneserver
service_description     CPU Load
check_command           check_nrpe_1arg!check_load

define service{
use                     generic-service
host_name               myoneserver
service_description     Swap Drive Usage
check_command           check_nrpe_1arg!check_swap

define service{
use                     generic-service
host_name               myoneserver
service_description     Free Disk Space
check_command           check_nrpe_1arg!check_sda1

define service{
use                     generic-service
host_name               myoneserver
service_description     Number of Users
check_command           check_nrpe_1arg!check_users

define service{
use                     generic-service
host_name               myoneserver
service_description     Number of Zombie Processes
check_command           check_nrpe_1arg!check_zombie_procs

define service{
use                     generic-service
host_name               myoneserver
service_description     Total Processes
check_command           check_nrpe_1arg!check_total_procs

Save and quit  /etc/nagios3/conf.d/myoneserver.cfg.

Edit /etc/nagios3/conf.d/hostgroups_nagios2.cfg and add the following section to define an

Server group. (optional)
define hostgroup {
hostgroup_name  myoneserver
alias           MyOneServer Servers
members         MyOneServer1, MyOneServer2 MyOneServer3

Restart the Nagios service to apply the changes:

/etc/init.d/nagios3 restart