Share your knowledge at the LQ Wiki.
Go Back > Blogs > sumeet inani
User Name


Uncategorized Entries with no category

downloading videos from youtube via online java websites

Posted 07-25-2013 at 09:59 AM by sumeet inani

I keep a collection of videos available at and

You can catch the videos from or
Then I use this script for continuous downloading
while true
	echo 'enter URL (q to quit):'
	read   downloadlink
	if [ "$downloadlink"
Posted in Uncategorized
Views 273 Comments 0 sumeet inani is offline

base 64 encoding via c

Posted 07-25-2013 at 09:04 AM by sumeet inani

I came across some anti-virus in windows that detect programs like cmdow , fgdump etc. as threat & quarantine/remove it without asking.

So I wrote this c program that takes a byte from input-binary & writes it to ascii-hex-text-file while encoding .
In decoding takes two alphanumeric characters from input-text & writes it as single char to output-binary.

Compile it in your distro using
gcc program-file-name.c

Here is the code...
Posted in Uncategorized
Views 231 Comments 0 sumeet inani is offline

calculating write speed

Posted 07-05-2013 at 08:22 AM by sumeet inani
Updated 07-05-2013 at 08:23 AM by sumeet inani (clarity)

Hi ,
I wrote this script for any normal distro
This calculates data written in 10 seconds to get average.
Also monitors copying process , if possible , to know when to stop monitoring
echo PID is $processid
if [ "$1" = "--help" ]
	echo USAGE
	echo ./general \<device_name\> \<PID\>
	echo mention PID as \'no\' \(without
Posted in Uncategorized
Views 3089 Comments 4 sumeet inani is offline

restart process if killed improperly

Posted 06-27-2013 at 10:00 AM by sumeet inani

Hi , i am using qbittorrent in fedora 17
It frequently happens that
Catching SIGSEGV, please report a bug at
and provide the following backtrace:
qBittorrent version: v3.0.9
stack trace:
[4]+  Segmentation fault      (core dumped) qbittorrent  (wd: ~/sumeet)
So I ran this script which works well
until qbittorrent; do
    echo "Server 'qbittorrent' crashed with exit code $?.  Respawning.."
Posted in Uncategorized
Views 269 Comments 0 sumeet inani is offline

grabbing videos from youtube

Posted 12-09-2011 at 09:20 PM by sumeet inani
Updated 12-09-2011 at 09:34 PM by sumeet inani (explanation)

There are lots of full length movies ( on youtube . You cannot grab that video as it is drm encrypted . So I decided to use ffmpeg
I took a screenshot of web browser (opera) then opened jpg file in kolourpaint to find out top left & bottom right of video frame in browser . They were found out to be
24,129 & 669,524
which indicated 645x395 video dimension
So , I ran
ffmpeg -f x11grab -s 646x396  -r 30 -i :0.0+24,129 -sameq out.mpg
Posted in Uncategorized
Views 3255 Comments 1 sumeet inani is offline


All times are GMT -5. The time now is 11:15 AM.

Main Menu

Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration