Scripting Tmux Layouts

Tmux is an awesome replacement for Screen. I have a couple of standard terminal layouts for programming. One of them is show below. Vim editor on the left. Top right pane has the bpython interpreter. Bottom right pane has the bash prompt. I have a small tmux script in my ~/.tmux/pdev file that has the following lines selectp -t 0 # Select pane 0 splitw -h -p 50 'bpython' # Split pane 0 vertically by 50% selectp -t 1 # Select pane 1 splitw -v -p 25 # Split pane 1 horizontally by 25% selectp -t 0 # Select pane 0 In my tmux....

August 3, 2011 · 1 min

Downloading Specific Filetypes using 'wget'

I decided to prepare myself for the Intro to AI, a free online course offered by Stanford. I found the course website: http://www.stanford.edu/class/cs221/schedule.html and wanted to download all the slides. It’s time to pull all the ppt files from that page. wget -r -A.ppt http://www.stanford.edu/class/cs221/notes/ This created a tree of empty directories with one of them that had all the ppt files. Time to clean up the empty folders: find -depth -type d -empty -exec rmdir {} \; Ta-da!...

August 1, 2011 · 1 min

How to Find Local Tech Jobs

Looking for tech jobs can be daunting. Networking is touted as the magic bullet for job seekers. But where do you start? Here are some robust ways to build your network. Users Group: User groups are typically monthly meetings for geeks who get together to talk about their favorite programming language or operating system. Usually they are accompanied with a mailing list which is used to announce the meetings, ask questions and post job openings....

June 6, 2011 · 2 min

Contributing to Open Source

Last week I successfully submitted my first patch to an open source project and it was accepted. I like the bpython interpreter for all my python needs. It is quite handy for a python newbie like me. A few weeks ago I was in the middle of building an elaborate datastructure to learn list comprehension in python, when bpython crashed and took all the history with it. I whined about it on twitter and one of the developers of the project prompted me to submit a bug report....

May 4, 2011 · 3 min

Synchronize Panes in Tmux

Tmux is an alternative for screen. For anyone who doesn’t know screen, it is a terminal multiplexer which means, it allow multiple windows in terminal. It can split your window into multiple panes (vertical/horizontal), detach a session which can be attached at a later time. Detach/Attach is very useful for running a job in a remote server without having to keep the ssh open the whole time. Tmux can be configured by ~/....

April 25, 2011 · 2 min