Posts Tagged ‘someone’

Watch Star Wars in Ascii via a telnet connection! :)

Sunday, October 23rd, 2011

By accident, I’ve come across Towel.blinkenlight.nl! You might be wondering what is so special with it? 😉 Well some crazy guy seems to have recreated a whole Star Wars movie in ascii art!!! 😉

To kill some time and enjoy some great ascii telnet to towel.blinkenlight.nl with a telnet client (movie shows great also even using a regular Windows telnet client).

As I’m a great ascii fan I enjoy a lot, hope more people will take the time to watch the re-created Star Wars Movie in ASCII !. I’m eager to see if someone knows of any similar kind of movies, demos or all kind of stuff streamed via telnet 🙂

To give you an idea on what you will see by telnetting to towel.blinenlight.nl, here is a short chop video:


 

How to add cron jobs from command line or bash scripts / Add crontab jobs in a script

Saturday, July 9th, 2011

I’m currently writting a script which is supposed to be adding new crontab jobs and do a bunch of other mambo jambo.

By so far I’ve been aware of only one way to add a cronjob non-interactively like so:

                  linux:~# echo '*/5 * * * * /root/myscript.sh' | crontab -

Though using the | crontab – would work it has one major pitfall, I did completely forgot | crontab – OVERWRITES CURRENT CRONTAB! with the crontab passed by with the echo command.
One must be extremely careful if he decides to use the above example as you might loose your crontab definitions permanently!

Thanksfully it seems there is another way to add crontabs non interactively via a script, as I couldn’t find any good blog which explained something different from the classical example with pipe to crontab –, I dropped by in the good old irc.freenode.net to consult the bash gurus there 😉

So I entered irc and asked the question how can I add a crontab via bash shell script without overwritting my old existing crontab definitions less than a minute later one guy with a nickname geirha was kind enough to explain me how to get around the annoying overwridding.

The solution to the ovewrite was expected, first you use crontab to dump current crontab lines to a file and then you append the new cron job as a new record in the file and finally you ask the crontab program to read and insert the crontab definitions from the newly created files.
So here is the exact code one could run inside a script to include new crontab jobs, next to the already present ones:

linux:~# crontab -l > file; echo '*/5 * * * * /root/myscript.sh >/dev/null 2>&1' >> file; crontab file

The above definition as you could read would make the new record of */5 * * * * /root/myscript.sh >/dev/null be added next to the existing crontab scheduled jobs.

Now I’ll continue with my scripting, in the mean time I hope this will be of use to someone out there 😉

Kolya a Czech film drama (my first Czech movie)

Monday, May 23rd, 2011

Kolya czech movie cover

Kolya is the first Czech movie, I see. The movie is really good and I would classify it as a really art movie.
It also bears the sad melancholic atmosphere that we hold on the Balkans. The movie might be a hard to grasp one for Western people but would definitely be easily understand by someone who lived in the realms of the USSR.
The movie is also a movie that presents realities of the decaying communism, the times before the year of the fall the Berlin Wall (1989).
What was really worthy and edifying for myself was the sad realities of a falling Union (a false idealistic empire built for more than half a century).

The movie starts with the main actor Louka, a middle-aged Czech man dedicated to music (a cellist funeral crematorium orchestra player and a self-employed cello instructor).
Louka has one major muse which helps him follow his music career, the pursuit of new love and sexual relations with woman.
As the situation with falling-communism is harsh and the economic in the Soviet Union is in downturn this kind of trend is even more seriously felt among people who are in art like Louka.
Most of the movie is happening in Golden Prague (One of the most beautiful cities in the world IMHO).

Louka is working a couple of part time jobs next to his music career in the orchestra in order to be able to pay his daily life and bills, one of his other ways to get extra cash is the gravestone inscriptions.

Even though Louka is trying hard to earn money to pay back his loans and get a normal living, he is unsuccessful in getting enough money to make a decent living.
Suddenly he gets into huge debts which he is not able to pay with his earned money. As Louka is single he is offered by one of his debtors to earn money by a small cheat (a false marriage) with a Russian woman who needs Czech citizenship in order to be able to later travel freely to the western part of Europe.
He is offered 30 000 of Czech crons which for that time is a really solid money, which will allow him to pay back his loans and even get a small car Trabant !

Even though Louka tries his best to resist the temptation to do the criminal marriage at certain point the offered money convince him to accept the offering and he merries the young Russian fictiously.
As marriages of this type are quite common in Czech in this days of communism decay, he lives with the promise by the Russian woman family that they will get divorced after 6 months time.

Louka gets married and gets his money, but just a 2 weeks later the Russian young lady emigrates in Germany to her German lover and leaves her young Russian boy Kolya behind under the care of her old mother.
The old mother being unable to accept the sudden escape of her young Russian daughter, gets insane and enters into a mental hospital.
Since Kolya (who speaks only Russian and has not even basic knowledge of Czech) does not a family to be placed in he is being brought to the apartment of his (father in law) Louka.

Louka enters into an unexpected hardships, where the policy could chase him for the illeagal fictious marriage and even worser with a foreign Russian child.
He has never before had any experience with children, so initially he faces the hell of taking care for a child.
To make things even worser the babushka (mentally unstable grandmother) of Kolya passes away after a heart attack in the Mental hospital.
Now Louka is the only “relative” who according to Czech law has to take care for the 5 year old kid Kolya !
The child suffers from suspected meningitis and has to be placed on a course of carefully monitored antibiotics. Louka is threatened with imprisonment for his suspect marriage …

The movie is a serious drama but is a really touching one as it presents the power of love and how love can change human lives as Louka’s gradual love for Kolya changes him for good.
Kolya is a wonderful piece of art movie and a real achievement for Czech cinema. Since it’s the first Czech movie I see I want to see a lot of more.
In the mean time just watch the movie as it’s a wonderful piece of all-time movie classic.

Universal way to configure a static IP address on ethernet lan (eth0) interface in Linux

Friday, April 29th, 2011

One of the most precious commands I ever learned to use in Linux is ifconfig and route .

They have saved my life in configuring the static IP based internet of numerous Desktop Linux computers & notebooks.

Though the usage is very much known by most of the people who are into Linux, I believe it’s likely that the newer people who entered the world of Linux or some Unix system administrators are still lacking the knowledge on how to manually configure their eth0 lan card, thus I thought it might be handy for someone to share it, I know that for most unix users & admins especially the advanced ones this post might be funny, so if you’re an advanced administrator just skip the post and don’t laught at it 😉

Now the universal commands (works on each and every Linux host) to configure manually static IP internet connection on Linux are:

linux:~# /sbin/ifconfig eth0 192.168.0.3 netmask 255.255.255.0
linux:~# /sbin/route add default gw 192.168.0.1
linux:~# echo 'nameserver 192.168.0.1' >> /etc/resolv.conf

I’ve used this simple commands on thousands ot Linux hosts and it’s still handy 🙂

In above example 192.168.0.3 is the static IP address provided by the ISP, netmask is the netmask and the second /sbin/route add default gw would set the default gateway to the example ip 192.168.0.1

The third final line would add up a resolver nameserver the Linux host would use.

Cheers 😉