HOWTO: Colors On Mac Terminal & Hash Checking (SHA1SUM & MD5SUM)

Colorize
Why color? This will increase productivity and reduce eye strain. A quick look and you can get a quick overview of the content being displayed.

  • Enable colorized file listing (ls) – add “alias ls=’ls -G’” to ~/.bash_profile
  • Enable colorized vim
    1. Run “sudo vi /usr/share/vim/vimrc”
    2. Add the following lines to the top:
      syntax on
      filetype plugin on
      set ruler

Hash Checking
Add the following lines to your “~/.bash_profiles”:
alias md5='md5 -r'
alias md5sum='md5 -r'
alias sha1sum='openssl sha1'

Tags: , , , , , , , , , , , , ,

[HOWTO] Locking Mac using the ⌘ (command) + L

  1. Download Spark
  2. File -> New Hotkey -> Applescript
  3. Click on shortcut and press ⌘ (command) + L
  4. Enter a name
  5. At the source section copy and paste the following code:
    tell application "ScreenSaverEngine" to activate
  6. Click Create

UPDATE: For OSX Lion you need to us the following code:
tell application "/System/Library/Frameworks/Screensaver.framework/Versions/A/Resources/ScreenSaverEngine.app" to activate

[HOWTO] Unable to Add Folders to Leopard’s ‘Change Background’

Symptoms:

  • There is a duplicate “Aperture Projects” on the left selection navigation when trying to change background.
  • When adding folders, you don’t see the folders being displayed on the left navigation box. If you try to add it again, you get the following error message:
    Duplicate Folder
    The folder you selected is already present in the picture source list.

Fix:
Open iPhoto and create an iPhoto library in the Pictures folders (you don’t have to put any pictures)

Tags: , , , ,

[HOWTO] iPhone Hacking – Custom Ringtone and SMS Notification

Following up on the earlier iPhone hacks is customizing the most common audio: ringtone and SMS notification. Apple has locked down custom ringtones and profit from them. The biggest problem is, their selection is scarce and sucks. Here’s a simple guide on how to upload the Ringtones:

  1. Choose an MP3 file and trim it to 30 seconds or less – I use Audacity (download link) to do it
  2. Import that MP3 into iTunes
  3. Goto iTunes -> Preferences (for Mac) or Edit -> Preferences (for PC)
  4. Navigate to Advanced -> Importing tab and set the “Import Using:” to AAC
  5. Find the trimmed MP3 file inside iTunes, right click and choose “Convert Selection to AAC”
  6. Right click the AAC version of the file and choose “Get Info”
  7. Note the path to the file as indicated by the “Where” section under the “Summary” tab
  8. Navigate to the location of the file and copy it to desktop
  9. Change the extension of the copied file to “.m4r”
  10. Open the files in iTunes and it should be automatically inserted under Ringtones category, which then can be transferred to iPhone

NOTE: I have tried to use “SoundConverter” and set the file type to be m4a. This actually doesn’t work. When I did it that way, the file will be uploaded but won’t be able to be played. It might have something to do with the file size generated by “SoundConverter” being too large. Read the rest of this entry »

Tags: , , , ,