Keyboard shortcuts in interactive psql
psql = PostgreSQL interactive terminal
I’ve read this article (http://www.depesz.com/index.php/2008/03/30/keyboard-shortcuts-in-psql) today and decided to try on my MacBook.
Interestingly, all shortcuts were working fine in normal shell, but no action as soon as run “psql db_name” and go into interactive psql prompt.
After searching google, found out that psql on Mac OS was [...]
How to create iTunes Store account without credit card details?
Recently we’ve bought an iPod Touch (8gb model) and obviously went to iTunes Store to check out/download some applications… On first access, it prompted me to create an account, so I followed on-screen instructions to do so. The problem came out when it asked me for credit card details. I do not have one, and [...]
Mac OS X and colorized Terminal.app
I used to like colorized bash prompt on my Linux boxes, whereas default Terminal.app prompt will give you a bit boring colors.
You can change that with below snippet of code in your .bashrc
PS1=’\[\033[01;32m\]\u\[\033[01;34m\] @ \[\033[01;31m\]\h \[\033[00;34m\][ \[\033[01;34m\]\W \[\033[00;34m\]]\[\033[01;32m\] \[\033[00m\]‘
If you want to test above prompt without doing any changes to your current/default prompt, you can [...]
Mac OS X VirtualBox and Shared Folders
I use eclipse to play around with some ruby/php/jsp code. And usually that’s ~/Projects/workspace/my_site
Now, let’s assume that I would like to host these files off my Ubuntu guest OS… What do I do?
1. Add the folder in “Shared Folders” screen as seen on the screenshot.
2. Boot the guest OS up and run this command:
root@virtuozo~$ mount [...]
VirtualBox on Mac OS X and port forwarding
I’ve been using VirtualBox for some time already, and frankly speaking I’ve got no problems.
I am able to run Linux & XP Pro guests.
Seamless mode is working fine after installing “Guest Additions”
Shared folder is working fine, the “/var/www/my_site” is mounted from Mac_OS_X->Projects/workspace/my_site, basically my development environment is Mac, whereas the LAMP stack (apache2 + postgresql) [...]
How to brute-force password protected zip file?
Imagine a situation when you need to unzip a password protected zip file. So, how do we do it?
Get a password file (file that will contain possible passwords one per line)
Write a bash script, total 8 lines of code
Run the script and wait… (depends on processing power, password file size, etc)
synack@deimos $ cat crack.sh#!/bin/bash# Author: [...]
Leopard upgrade
Well, it was 26th when I went to our local (read nearest) Mac shop, I knew that I’m not gonna be purchasing Leopard, it was more of to see what is gonna happen… Basically, when I reach the shop, the doors were half closed, and some sort of crowd was outside.
Next day onwards I’ve read [...]
WordPressDash – Dashboard widget to post to wordpress
I’m using WordPressDash, which is a Dashboard widget to get this post posted on my WP
macbook and mac os x
Recently got a brand new Intel-based MacBook, and these days are getting myself familiar with a new OS – Mac OS X… Here are some of the links that you might check out:
http://en.wikipedia.org/wiki/Mac_OS_X
http://docs.blacktree.com/quicksilver/overview
http://www.coconut-flavour.com/coconutwifi/index.html
http://www.apple.com/downloads/
Later on will try to put together some text about my experience… For now, trying to get my usual stuff running on gentoo [...]