Gaganpreet's blog

This content on this page was written a long time ago. It might not be accurate or has opinions which have changed/evolved over time.

Recent Posts

Streaming to twitch.tv from Linux

published on
I was looking to stream to twitch.tv from Linux, but none of the existing solutions were embedding the webcam over the captured desktop. Since twitch.tv works with rtmp, and existing scripts were using ffmpeg, it was easy to modify the script to add the camera as an overlay. Here’s the source for anyone interested: #!/bin/bash API_KEY="live_..." FPS="30" INRES="1920x1200" OUTRES="640x400" ffmpeg -f x11grab -s "$INRES" -r "$FPS" -i :0.0 \ -f alsa -ac 2 -i default -vcodec libx264 -s "$OUTRES" \ -acodec libmp3lame -ab 128k -ar 44100 -threads 0 \ -vf "movie=/dev/video0:f=video4linux2, scale=120:-1, setpts=PTS-STARTPTS [movie];[in] setpts=PTS-STARTPTS, [movie] overlay=main_w-overlay_w:main_h-overlay_h [out]" \ -f flv "rtmp://live. Read More...

zsh is really awesome

published on
A few months ago, I decided to try out zsh as my default shell. It’s very similar to bash, but is much more powerful. My favourite features so far: Shared command line history among all sessions. I usually have at least 4-5 shells open, and the command history being shared among them is awesome. Means I don’t have to hunt in which shell I typed that huge pipe command, it’s just available across all the shells! Read More...

Permission Denied

published on
Update: The problem is solved now, it was because the parent directory had the +i flag set. I ran into a weird problem today. I was cleaning up disk space and ran into a file that refused to delete. geekbox:/media/7/ # rm file.iso rm: cannot remove `file.iso’: Permission denied No problem, huh? Did everything I could think of: geekbox:/media/7/ # rm -f file.iso Permissions? **geekbox:/media/7/ # **chmod 777 file.iso **geekbox:/media/7/ # **chown root:root file. Read More...

TV Shows

published on
Inspired by Rohan, I too decided to make a list of the TV shows I have seen/currently seeing. And (hopefully) by the end of next three years, I will have caught up on him. 😉 (The numbers in the bracket are the number of seasons seen). Comedy: Friends (10/10) – It’s a good comedy, but the way people watch it over and over again makes me cringe. That 70’s Show (8/8) – I loved it, though it gets a bit boring halfway through. Read More...

The IT crowd

published on
…. is an awesome sitcom. 18 episodes of pure humor. If you have not seen it yet, go get it and watch it. And now, a true incident that happened today (inspired by The IT Crowd, of course). I happened to go to the server room today. JP: We are, izzin, having some issues, izzin, with the faculty mail server. It’s, izzin, giving input/output errors, izzin with the disk, izzin. Read More...

Categories

Bugs (1)

Computers (3)

Crypto (2)

Felicity (1)

Fun (7)

Funny (4)

Hacking (1)

Health (1)

Howto (1)

Iiit (21)

Internet (2)

Life (16)

Linux (3)

Photography (1)

Python (1)

Scripting (3)

Security (2)

Stumbled (1)

Tech (8)

Tv (1)

Uncategorized (11)

Tags

adler (1) anand-buddha-vihar (1) at_fdcwd (1) bash (1) bc (4) blowfish (1) bug (1) bugs (1) cbc (1) ccavenue (1) chmod (1) college (1) coreavc (1) cryptography (1) css (1) ctf (1) ctf3 (1) curl (1) ddos (1) direcpay (1) ebs (1) ecb (1) exam (1) exams (1) faq (1) favorite-stuff (1) february-09 (1) february-2009 (1) felicity (1) felicity-09 (1) ffmpeg (1) firebug (1) firefox (1) form (1) fun (3) funny (4) gaming (1) google (1) goraft (1) h264 (1) hack (1) hmac (1) homeopathic (1) homeopathy (1) howto (1) hsts (1) human-values (1) humor (1) hyderabad (1) iiit (11) iiit-hyderabad (1) incompetence (1) india (1) intervention (1) isas (1) it-crowd (1) jeevan-vidya (1) justin.tv (1) jv (1) kde (1) kwallet (1) life (5) linux (3) mac-os (1) madwifi (1) md5 (1) medicine (1) microsoft (1) ms-fanboy (1) music (1) night-out (1) opensuse (1) overflow (1) overlay (1) payment-gateways (1) payu (1) payzippy (1) permission-denied (1) photography (1) photography-club (1) pip (1) piss-off (1) pyqt (1) pyside (1) python (1) qdatastream (1) qsortfilterproxymodel (1) qt (1) qtreeview (1) rc4 (1) research (1) rm (1) scripting (1) scroll (1) security (1) server-room (1) sha (1) sha1 (2) sitcom (1) sleep (1) sqlcluster (1) stream (1) streaming (1) stripe (1) stripe-ctf (1) study (1) swine-flu (1) tag-post (1) the-unit (1) transecute (1) tv (1) twitch.tv (1) wallet (1) webcam (1) wifi (1) wikipedia (1) zaakpay (1)