- NTFS Support
- Install ntfs-3g-2010.10.2-macosx.dmg & Restart
- If it throws error, Install macfuse-core-10.5-2.1.9.dmg
- Hide Apps from Application Switcher
- Sometime you want to hide application e.g. torrent client activity when pressing Cmd+Tab
- Add the following in the respective Info file. E.g. In /Applications/uTorrent.app/Contents/Info.plist
- <key> LSUIElement </key> <string> 1 </string>
- Default Vim Syntax Highlight
- echo "syntax on" >> ~/.vimrc
- Default color Theme
- echo "colo desert" >> ~/.vimrc
- Default intend
- echo "filetype plugin indent on" >> ~/.vimrc
- ntfs support in mac
- Create /etc/fstab and write
- LABEL=DRIVE_NAME none ntfs rw,auto,nobrowse
- It is ready. However, If finder doesn't show in finder, use open DIR_NAME
Showing posts with label hacks. Show all posts
Showing posts with label hacks. Show all posts
Monday, September 7, 2015
Mac Tricks & Hacks
All Blogs :
http://timir126.blogspot.com
http://vishnu-agarwal.blogspot.com
http://jobkeeper.blogspot.com
http://gethouse.blogspot.com
http://vishnu-lamp.blogspot.com
Wednesday, January 2, 2013
Hacking Mac : Useful installations & shortcuts
Some of the software usually you'll love to have:
Mac Installers:
In Mac Terminal:
Some shorcuts:
Mac Installers:
- iSync (not available for Mountain Loin)
- Adobe Reader
- Adobe flash player
- Adobe Air
- Twhirl
- Evernote
- OneNote
- Picasa
- Adium
- Alfred
- Skype
- Chrome
- VLC
- Keepassx
- X11 and XQuartz (Macport)
- MySQL (mysql/php configuration)
- Skitch
- Sublime 2
- SilverLight
- ImageMagick
- Ntfs-3G
- Java & eclipse
- GreaseMonkey / TemperMonkey Script - firefox/chrome
- Install .dmg from Command Line : hdiutil mount cotvnc-20b4.dmg
In Mac Terminal:
- ls -lSr : list files (-S for sort by size)
- cd - : to swap directories to the previous working directory
- for f in *.txt;do echo $f;done : Looping over a set of files
- find . –name "*.txt" –mtime 5 : files & folders modified in the last 5 days
- rename –v 's/foo/bar/g' * : Rename files using regular expressions
- mv /path/to/file.{txt,xml} #rename just part of a filename
- cp /etc/rc.conf{,-old} #Backup of the file
- sudo !! #represent the last command you ran
- mkdir my{1,2,3} #will create my1,my2 & my3 folders
- Bash Shortcut
- Ctrl + U: Clears the line from the cursor point back to the beginning.
- Ctrl + A: Moves the cursor to the beginning of the line.
- Ctrl + E: Moves the cursor to the end of the line
- Ctrl + R: Allows you to search through the previous commands.
- Using Alias : Some useful examples
- alias agi='sudo apt-get install'
- alias emp='cd /usr/local/mysql/data/employee'
- alias grep='grep --color'
- alias ls='ls –l' # if you always wanted ls to actually do ls –l
Some shorcuts:
- Shift + Command + I : Compose outlook
- Shift + Command + N : New Folder
- Shift + Command + 4 : Screen Capture
- Command + Alt + D : Dock Hide / Unhide
- Command + Alt + Esc : Force Quit
- Command + M : Minimize
- Command + H : Hide
- Command + D : Clone in finder
- Command + Q : Quit
- Command + I : File Info
- Command + S/C/V : Save/Copy/Paste
- Command + Delete : Delete
- Enter / Return : Rename
- Space : Quick Info
- Command + Space : Spotlight
- Delete : Backspace
- Delete + fn : Delete
- Command + Z : Undo
- Command + Shift + Z : Undo
- Command + Left : beginning of line
- Command + Left : Ending of line
- Alt + arrow : jump by word
- Command + Alt + I : Inspector in Browser
- Shift + Ctrl + arrow: Word selection
- ctrl + arrow : Desktop switch
- Lock Screen : Enable Hot Corner
All Blogs :
http://timir126.blogspot.com
http://vishnu-agarwal.blogspot.com
http://jobkeeper.blogspot.com
http://gethouse.blogspot.com
http://vishnu-lamp.blogspot.com
Monday, May 9, 2011
Firefox Bookmark Keyword Hack
Previously I specified few firefox hacks to ease your daily internet surfing. Here I'm trying to explain how to use Firefox Bookmark Keyword hack.
Firefox provides a nice feature to Bookmark a URL and opening that for different input provided. E.g. If you want to search "Barack Osama", you can simply type "yahoo Barack Osama", and it will directly give your the search results.
Lets do it step wise.
- Open the desired URL e.g. http://search.yahoo.com/search?p=Barack+Osama
- Bookmark the page
- Go to Organise bookmarks (FF version < 4.0) or Show All Bookmarks (FF version >= 4.0)
- Search for the book-marked page here e.g. ysearch
- Expand the property of bookmark (below "tag")
- Replace the search string "Barack Osama" with %s
- Enter keyword using what you want to do the search e.g. "yahoo"
- DONE!
Type e.g. "yahoo < your name > " and enjoy the search results.
Don't limit yourself to this, create more bookmarks. Like for my personal use, I've setup many bookmarks like:
- Facebook name search "fb < name >" (http://www.facebook.com/search.php?type=users&q=%s),
- Bugzilla search "bug < bug id >",
- Yahoo search "yahoo < search string >",
- Microsoft bing search "bing < search string >",
- Google search "google < search string >".
All Blogs :
http://timir126.blogspot.com
http://vishnu-agarwal.blogspot.com
http://jobkeeper.blogspot.com
http://gethouse.blogspot.com
http://vishnu-lamp.blogspot.com
Saturday, January 23, 2010
Firefox hacks to make browsing easy
Undoubtedly, Firefox is the best browser available in the market. Virtually there is no limit of customization you can do with Firefox. Most of these comes as extensions (add-ons).
However, settings can also be customized easily by accessing convenient location using Firefox's "about:config" hack, which can be opened by typing it into the address bar. Steps to change settings can be followed as:
However, settings can also be customized easily by accessing convenient location using Firefox's "about:config" hack, which can be opened by typing it into the address bar. Steps to change settings can be followed as:
- Type "about:config" in the address bar, and press enter
- Search for the setting in the "Filter" bar within that
- If desired search result found, double click to change the value, which can be integer, Boolean or string type
- In case a setting doesn’t show up in the search, just right-click and select New to create it.
- Restart Firefox

By following the above steps, different customizations can be done. I'll list a few here which may be useful for you as well.
1. Stop sites to blink the Text : Some websites have blinking text which irritates a lot. It can be stopped as
- In Filter search, type: "browser.blink_allowed"
- Set its the value as "false"
2. Open search result in new tab : Search has become the integral part of our net surfing, and while using Firefox, I quickly hit "Ctrl + k" or "Command + k" (mac) to type the keywords to get the results. However, either it will over-write the existing page or I need to open new tab first, which means extra key strokes. The setting to open the search results in new tab can be done as
- In the Filter search, type: "browser.search.openintab"
- Set its value as "true"
3. RAM (Memory) optimization when Firefox is minimized (Windows only) : RAM is a precious commodity. All the applications carry out their processing in the RAM. Many applications in some operating systems, returns unused RAM when they are minimized. The problem with Firefox arises in the way it handles RAM - Not releasing it when minimized. It can be handled using config.trim_on_minimize setting. Please note that, it (Windows only) does not reduce the amount of memory used, it just swaps memory from RAM to disk.
- Create new Boolean variable "New -> Boolean" by doing right click
- Name it as "config.trim_on_minimize" and set the value as "true"
4. Maximum amount of pages to be stored in memory (more) Variable browser.sessionhistory.max_total_viewers can be set to some positive number in about:config to limit the amount of pages to be stored in the memory. Default is -1, which means it automatically determines the maximum number of pages. Users not facing any memory problem may set -1. To change it
- In the Filter search, type: "browser.sessionhistory.max_total_viewers"
- Double click, and change value to some positive number (number of pages allowed to be stored in memory)
5. Use Firefox Bookmark Keyword
Other References:
Labels:
Browser,
firefox,
hacks,
memory,
optimizaion,
performance
All Blogs :
http://timir126.blogspot.com
http://vishnu-agarwal.blogspot.com
http://jobkeeper.blogspot.com
http://gethouse.blogspot.com
http://vishnu-lamp.blogspot.com
Subscribe to:
Posts (Atom)


