Fun with shell scripting

All though the title of this blog says Tech Talk with Abhi, I haven’t posted anything technical as of now which is a really bad sign. But just hang in there and you will know some cool stuff I’ve been working on. The start is here.

Frankly speaking, this post is a home task that I should be doing as part of the dgplug summer training I’m undertaking (details mentioned here). Although I did a course on Unix shell programming the last semester I was completely bewildered at my ignorance of a few essential commands.

Most of the commands I found out using the net but there were some tricky ones that needed the combination of two or more commands. When I wrote them I thought they were right but my follow up session proved me entirely wrong.

I did certainly learn something cool (like in every other session) and that’s the xkill command. When you use this command, your cursor changes into a skull or an “X” mark. You can hover over any window or process and just click on it and puff! your process vanishes. Essentially what happens is you are killing processes using a GUI model.

In practice, Linux is giving a gun to you and allowing you to shoot people whom you don’t like or people who just don’t do anything. So cool, right?

If using the terminal is your sweet spot then you could always use $kill -9 pid. There was a really useful command by name $lsusb which allows you to list all connected devices to your system. This one is a real gift because at times, your phone doesn’t detect itself automatically and this becomes the only way you can check if your phone is connected or not (through data-cable).

Another very interesting command is the $ifconfig command. I can go on harping about this one for pages but there’s one most important information it gives you, and that’s your IP address. I used it a lot of times to set up my local server and it allowed people to access files from my system provided we’re connected on the same network.

I do know that other commands are pretty useful too but I haven’t had the time to check them out.

Either ways I’ve hosted my code here on BitBucket. Check out, share, modify, improvise and use! (Philosophy of FOSS in a nutshell 😉 )


MozCoffeeBlr is on cloud 9!

What started as sessions primarily to energize the Mozilla developer community and update each other as to what works each one is involved with in the beginning, has now grown to become extremely purposeful in Bangalore.

MozCoffee Logo by Cosmin Stahiescu

What is MozCoffee? “This is a small scale informal meetup of up to 20 persons where a report is given of recent activities and upcoming projects of a community as well as get ideas and feedback from the general public. The idea for this event is to be easily reproducible and as frequent as possible, serving as a meeting point and reference event for local communities.” says the official wiki page. MozCofeeBlr v7.0 Well that’s exactly what happens at MozCoffeeBlr. This time around, we had a special surprise. For those who came in for version 7.0, it was a dream come true. Well for those who didn’t, hard luck. Three brand new Firefox OS keon devices (popularly known as geeksphones) were unboxed thanks to Galaxy who has been a constant Santa-Claus (though not yet Christmas time) for all of us!

Unboxing the devices!

Un-boxing the devices

“Ah, the smell of new phones!”, you must be wondering. I was particularly ecstatic because until now I had to run all my apps and never had tested an app on an actual Firefox OS phone. Now I had the chance to really understand how my app’s users feel. We all sat together and immediately started hacking on the three available devices. Kaustav  and Deb showed us the trips and tricks about how to push our apps on the devices.

Can't get enough of the new phones. ;)

Can’t get enough of the new phones. 😉

We went on to discuss about the various plans for the launch of Firefox OS in India which is anytime soon.  Considering that the Web Maker month has officially started, plans were made to conduct maker Maker Party in Bangalore.  All in all, it was a great MozCoffee once again and every time such events happen, it feels great to be a Mozillian and renews hope in the entire FOSS culture.

Getting my hands on the new device

And yes, I finally got my hands on it!


PS: For more pictures, click here. A word of caution, they might make you jealous!

#dgplug and the enormous help it’s doing to me

Last time I heard about Durgapur, I was like “What? Where’s the place!?”. But off late, my entire vacation has surrounded  around people from over there. I haven’t been around much but I did learn a lot about rST (Re-structured text) in the first session that I attended and the next one was about various blogging platforms.

Screenshot from 2014-07-14 18:58:40

The tag is insanely catchy. So is the presentation, Summer Training.

Hoping to learn more in the coming days! <eof> 😛