Hollywood movies often have a tech geek entering commands and doing amazing things. While it may not be that easy to hack into public transport systems or or control the world like Eagle Eye, the command line is certainly a geeks playground.
Want to show off your command line prowess to your geeky friends but don’t know any cool tricks? Well you are in luck. The following websites will give you plenty of tricks and tips to satiate your hunger:

“Fu” is defined as possessing superior skills related to an art. Aptly named “Shell fu” houses user-submitted command line goodies, tips and tricks. You can vote entries up if you like them and vote them down if you find they are harmful or do not work as advertised.
If you have some tricks of your own you can even submit them and they will be added to the site after the moderators have a look at them.

Shell fu and Command-line fu are almost identical in concept. Command-line fu allows users to share their CLI wisdom with others and also vote up and down on submitted snippets.
Both shell-fu and command-line fu allow you to follow snippets through RSS and Twitter although I did find command-line fu offers a bit of extra control on RSS feeds.

Snipt is the “long term memory for coders”. Snipt is a collection of frequently used commands and code snippets. You can share these snippets with your co-workers or make them public. Public snippets are viewable to everyone and for our specific case, we are interested in the bash section. However feel free to browse other sections as well.

While all the other resources mentioned utilize the power of the crowds to build up content, this one is different. It is Peteris Krumins blog about programming, software and hacking.
What’s so special about it? The famous sed, awk one liners, vim tips, plugins and cheat sheets that Peteris has fabricated over time. The occasional musical geek friday is fun as well.
While it may not be updated as often as the others, but more often than not the content is worth the wait.
Pick up the basics
While the places mentioned above have plenty of content to keep you busy learning, they are not the best places to start your journey. If you want to start with basics have a look at Introduction to the Linux Command Line published on MakeUseOf earlier. You may also find command line basics here and here. For advanced topics you can read the Advanced Shell Scripting Guide.
That’s plenty of information to keep you involved and build up your Linux-fu! Do you know of any good sites to learn Linux commands? Or have you referred to a Linux command line tutorial that you really like? Share with the world in the comments!
http://www.makeuseof.com/tag/4-websites-to-learn-cool-linux-command-line-tricks/
Fudzilla is reporting that Intel will release Arrandale-based processors on January 3rd, 2010. Three in fact, branded as “Core i5″ and “Core i7,” ranging in speed from 2.4GHz to 2.66GHz.
There are two Core i5 models. One features 3MB of cache, a 2.4GHz frequency, two cores and four threads plus Turbo Mode, while the other features two cores, four threads, Turbo Mode, 3MB of L2 cache and a 2.53GHz frequency. Fudzilla prices them at $225US and $257, respectively.
Finally, the 2.66GHz Core i7 model features 4MB of cache and Turbo Mode and can run faster. Fudzilla expects them to sell for $332. You’ll remember that desktop Macs received Nehalem architecture processors earlier this year, which these Arrandale processors are based on. If built into Apple’s MacBook Pros, they’d represent a significant performance boost over the Core 2 Duo processors currently in use.
Posted 8 months, 2 weeks ago. Add a comment
At present there is no method native to 10.6 Snow Leopard to format a drive with a Linux filesystem such as EXT2 or EXT3. This hint uses a bootable open-source Linux CD-ROM running the gparted application in order to format and partition these and many other filesystems.
To create a bootable CD that you can use to manipulate Linux-formatted drive volumes, take the following steps.
- Download the latest version of gparted-live — make sure to get the ISO disk image.
- To boot into the CD, select it in the Startup Disk System Preferences pane and then restart. Warning! Use a USB keyboard and mouse, as this Linux OS cannot handle Bluetooth wireless.
- Be somewhat amazed as your Mac reboots and Unix code streams down the page. There are a couple of prompts for input along the way, before you arrive in the GUI of the OS.
- The gparted (Gnome Partition Editor) software launches automatically, and you can select any mounted volume for information and manipulation, and many filesystems are supported. There is extensive online documentation and support for this software.
- Be very careful! Formatting deletes all your data, so obviously the usual precautions about backing up apply. Be sure to select the correct volume on which to make any changes!
- Shut down when you have finished. Warning! Your Mac may not respond to the alt (option) key when you restart and you may have to manually eject the CD before you can reboot into OS X.
http://www.macosxhints.com/article.php?story=20091116024922149
Posted 9 months, 1 week ago. Add a comment
Wouldn’t it be nice to activate Exposé’s Show Desktop mode via an icon on the Dock? Here’s how to make one that does just that. However, be warned: this works only one way — it shows the Desktop, but on clicking again, it does not bring the windows back. To get out of Exposé’s Show Desktop mode, just click anywhere along the darkened screen border.
- Create an AppleScript application. Open AppleScript Editor (Applications » Utilities » AppleScript Editor in 10.6) and paste in this code:
(* Show Desktop AppleScript by Mohan Noone, 2009 *)
activate application "Finder"
do shell script "/Applications/Utilities/Expose.app/Contents/MacOS/Expose 1"
- Save the script, name it something like Show Desktop, set the File Format to Application, and select the Run Only option in the Save dialog.
- Optional: change the boring script icon. Select the saved file in Finder and hit Command-I to open the Get Info Window, then do the same for the file with the icon you’d like to use. Then select the better icon from its Get Info Window, copy it (Command-C), select the script icon in the other Get Info window, and paste (Command-V).
- Drag the saved file to the Dock.
Your Show Desktop icon is ready for use!
http://www.macosxhints.com/article.php?story=20091109075034143
Posted 9 months, 2 weeks ago. Add a comment


These are instructions for compiling and installing 64-bit Ruby, Rubygems, and Ruby on Rails on Mac OS X 10.6, Snow Leopard.
The benefits of manually building a copy of Ruby in /usr/local are detailed here and here.
Prerequisites
Before following these instructions, you will need:
Mac OS X 10.6 Snow Leopard
The latest Xcode Tools (from the Snow Leopard DVD or downloaded from Apple — the 10.5 version won’t work)
Confidence running UNIX commands using the Terminal
If you want to learn more about UNIX and the command line, check out my PeepCode screencast on this topic.
Step 1: Set the PATH
Launch Terminal.app from the /Applications/Utilities folder.
The first thing we’ll do is set your shell’s PATH variable. The PATH variable determines where your system searches for command-line programs. You’ll need to set it so that it can find the new apps you’re about to install. Using the editor of your choice, create and edit a file in your home directory named .profile (note the “.” preceding the filename).
If you’re using TextMate like you should be and have installed the UNIX mate command, then you can create and start editing the file like this:
mate ~/.profile
To the end of this file, add the following line:
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"
Close and save the file and run this command to load the new setting into your current shell:
source ~/.profile
To verify that you’ve updated your path, enter the following command:
echo $PATH
You should see /usr/local/bin at the beginning of the line returned by the system.
Step 2: Download
We’re going to create a folder to contain the files we’re about to download and compile. If you want, you can delete this folder when you’re done, but keeping it around makes it easier to re-install (or uninstall) these apps later.
Make the new folder:
mkdir ~/src
cd ~/src
Download Ruby and Rubygems:
curl -O ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p174.tar.gz
curl -O http://files.rubyforge.vm.bytemark.co.uk/rubygems/rubygems-1.3.5.tgz
Step 3: Compile and Install
First, Ruby:
tar xzvf ruby-1.8.7-p174.tar.gz
cd ruby-1.8.7-p174
./configure --enable-shared --enable-pthread CFLAGS=-D_XOPEN_SOURCE=1
make
sudo make install
cd ..
To verify that Ruby is installed and in your path, just type:
which ruby
You should see:
/usr/local/bin/ruby
If you do, this means you now have a super-fast, 64-bit version of Ruby ready to go. If you saw something different, you haven’t set your path correctly. Go back and try again.
Compile and install RubyGems:
tar xzvf rubygems-1.3.5.tgz
cd rubygems-1.3.5
sudo /usr/local/bin/ruby setup.rb
cd ..
Install Rails:
sudo gem install rails
If you use MySQL, you can now install the MySQL gem. You’ll need to know the location of your MySQL installation, which is typically /usr/local/mysql. Install the gem like this:
sudo gem install mysql -- --with-mysql-dir=/usr/local/mysql
Congratulations, you now have a custom-built Ruby, RubyGems, and Rails configuration.
http://hivelogic.com/articles/compiling-ruby-rubygems-and-rails-on-snow-leopard/