Run programs in the screen at startup using systemd

systemd is very simple and easy to use, here you can see how to run the program in a screen with the specified user
create new file

# nano /etc/systemd/system/radio.service

and put it into a new file

[Unit]
Description=Radio DJ
After=network.target
 
[Service]
Type=oneshot
ExecStart=/usr/bin/screen -dmS screennameradio /etc/liquidsoap/radio-pro.liq
ExecStop=/usr/bin/screen -S screennameradio -X quit
RemainAfterExit=yes
User=radiodj
 
[Install]
WantedBy=multi-user.target

and, of course

#systemctl enable radio
#systemctl start radio

Nginx configuration for SSH tunnel

upstream tunnel {
  server 127.0.0.1:3000;
}
 
server {
  listen 80;
  server_name dev.server.tld www.dev.server.tld;
 
  #optional
  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://git.videolan.org/x264
# cd x264
# ./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-opencl
# make -j 4
# sudo make install

For mp3 support

wget http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.tar.gz
tar xzvf lame-3.99.tar.gz
cd lame-3.99
./configure
make
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://source.ffmpeg.org/ffmpeg.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 http://git.itunix.eu/git/x264/
git clone http://git.itunix.eu/git/ffmpeg/

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.

Firefox

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.

Inbox

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!

Skype

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.

Telegram

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.

Softphone

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

Lastpass

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.

Pushover

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?

eBay

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.

WolframAlpha

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!

Number26

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.

CoinBase

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?

Spotify

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.

Netflix

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

IMG_3094-0.JPG
Hacked!
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!

IMG_3097.PNG